diff options
author | ghen <ghen@pkgsrc.org> | 2008-01-04 12:50:13 +0000 |
---|---|---|
committer | ghen <ghen@pkgsrc.org> | 2008-01-04 12:50:13 +0000 |
commit | 087cd21685485b87b58f5379957cd910a8564478 (patch) | |
tree | a10f1bf86f2fecbeb133ed1a67b9ff6990f7f8b6 | |
parent | 902bdbacb2a1709b74344592b2e7ba8b941a693f (diff) | |
download | pkgsrc-087cd21685485b87b58f5379957cd910a8564478.tar.gz |
Full DESTDIR support.
-rw-r--r-- | audio/cplay/Makefile | 19 | ||||
-rw-r--r-- | net/netcat6/Makefile | 4 |
2 files changed, 15 insertions, 8 deletions
diff --git a/audio/cplay/Makefile b/audio/cplay/Makefile index c68d5e80a55..0b3f270c62b 100644 --- a/audio/cplay/Makefile +++ b/audio/cplay/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2006/07/17 19:04:50 ghen Exp $ +# $NetBSD: Makefile,v 1.11 2008/01/04 12:54:34 ghen Exp $ DISTNAME= cplay-1.49 PKGREVISION= 3 @@ -9,6 +9,8 @@ MAINTAINER= ghen@NetBSD.org HOMEPAGE= http://mask.tf.hut.fi/~flu/hacks/cplay/ COMMENT= Curses front-end for various audio players +PKG_DESTDIR_SUPPORT= user-destdir + PYTHON_PATCH_SCRIPTS= cplay USE_PKGLOCALEDIR= yes @@ -24,6 +26,11 @@ SUBST_FILES.paths= cplay cplay.1 SUBST_SED.paths= -e 's,/etc/cplayrc,${PKG_SYSCONFDIR}/cplayrc,g' SUBST_SED.paths+= -e 's,/usr/local/share/locale,${PREFIX}/${PKGLOCALEDIR}/locale,g' +INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/examples/cplay +.for l in ${PKGLOCALES} +INSTALLATION_DIRS+= ${PKGLOCALEDIR}/locale/${l}/LC_MESSAGES +.endfor + do-build: cd ${WRKSRC} && ${MAKE_PROGRAM} cplayrc .for m in ${PKGLOCALES} @@ -31,13 +38,11 @@ do-build: .endfor do-install: - ${INSTALL_SCRIPT} ${WRKSRC}/cplay ${PREFIX}/bin/ - ${INSTALL_MAN} ${WRKSRC}/cplay.1 ${PREFIX}/${PKGMANDIR}/man1/ - ${INSTALL_DATA_DIR} ${EGDIR} - ${INSTALL_DATA} ${WRKSRC}/cplayrc ${EGDIR} + ${INSTALL_SCRIPT} ${WRKSRC}/cplay ${DESTDIR}${PREFIX}/bin/ + ${INSTALL_MAN} ${WRKSRC}/cplay.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/ + ${INSTALL_DATA} ${WRKSRC}/cplayrc ${DESTDIR}${EGDIR} .for l in ${PKGLOCALES} - ${INSTALL_DATA_DIR} ${PREFIX}/${PKGLOCALEDIR}/locale/${l}/LC_MESSAGES - ${INSTALL_DATA} ${WRKSRC}/po/${l}.mo ${PREFIX}/${PKGLOCALEDIR}/locale/${l}/LC_MESSAGES/cplay.mo + ${INSTALL_DATA} ${WRKSRC}/po/${l}.mo ${DESTDIR}${PREFIX}/${PKGLOCALEDIR}/locale/${l}/LC_MESSAGES/cplay.mo .endfor .include "../../lang/python/application.mk" diff --git a/net/netcat6/Makefile b/net/netcat6/Makefile index 6d8b90f1f79..266225f96af 100644 --- a/net/netcat6/Makefile +++ b/net/netcat6/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.4 2006/03/17 23:29:44 wiz Exp $ +# $NetBSD: Makefile,v 1.5 2008/01/04 12:50:13 ghen Exp $ DISTNAME= nc6-1.0 PKGNAME= ${DISTNAME:S/nc/netcat/} @@ -12,6 +12,8 @@ MAINTAINER= ghen@NetBSD.org COMMENT= Network swiss army knife HOMEPAGE= http://www.deepspace6.net/projects/netcat6.html +PKG_DESTDIR_SUPPORT= user-destdir + GNU_CONFIGURE= yes # don't auto-detect IPv6, use options.mk: |