Thu Feb 4 02:31:29 2010 UTC ()
DESTDIR support


(joerg)
diff -r1.12 -r1.13 pkgsrc/mail/mpop/Makefile

cvs diff -r1.12 -r1.13 pkgsrc/mail/mpop/Makefile (expand / switch to context diff)
--- pkgsrc/mail/mpop/Makefile 2009/05/19 08:59:22 1.12
+++ pkgsrc/mail/mpop/Makefile 2010/02/04 02:31:29 1.13
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2009/05/19 08:59:22 wiz Exp $
+# $NetBSD: Makefile,v 1.13 2010/02/04 02:31:29 joerg Exp $
 #
 
 DISTNAME=	mpop-1.0.12
@@ -12,6 +12,8 @@
 COMMENT=	Small, fast and portable POP3 client
 LICENSE=	gnu-gpl-v3
 
+PKG_DESTDIR_SUPPORT=	user-destdir
+
 GNU_CONFIGURE=		yes
 USE_PKGLOCALEDIR=	yes
 USE_TOOLS+=		pkg-config
@@ -20,13 +22,13 @@
 CONFIGURE_ARGS+=	--enable-nls
 
 EGDIR=		${PREFIX}/share/examples/mpop
+INSTALLATION_DIRS+=	${EGDIR}
 
 .include "options.mk"
-.include "../../devel/gettext-lib/buildlink3.mk"
-.include "../../devel/libgetopt/buildlink3.mk"
 
 post-install:
-	${INSTALL_DATA_DIR} ${EGDIR}
-	${INSTALL_DATA} ${WRKSRC}/doc/mpoprc.example ${EGDIR}
+	${INSTALL_DATA} ${WRKSRC}/doc/mpoprc.example ${DESTDIR}${EGDIR}
 
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../devel/libgetopt/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"