diff options
author | ghen <ghen> | 2008-01-04 12:50:13 +0000 |
---|---|---|
committer | ghen <ghen> | 2008-01-04 12:50:13 +0000 |
commit | 0d3f7a359b7625b63c5d46da09bb20bb1cc76370 (patch) | |
tree | a10f1bf86f2fecbeb133ed1a67b9ff6990f7f8b6 /audio/cplay/Makefile | |
parent | 1f515f0746a3262421f47c9fe917f5f46eea5560 (diff) | |
download | pkgsrc-0d3f7a359b7625b63c5d46da09bb20bb1cc76370.tar.gz |
Full DESTDIR support.
Diffstat (limited to 'audio/cplay/Makefile')
-rw-r--r-- | audio/cplay/Makefile | 19 |
1 files changed, 12 insertions, 7 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" |