diff options
author | joerg <joerg@pkgsrc.org> | 2008-06-12 02:14:13 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2008-06-12 02:14:13 +0000 |
commit | ba171a91fab519f587b027c1a2888cb6e3fce049 (patch) | |
tree | c12b9c282e2706cb6bac87456615dfdf2b256e55 /www/album_themes/Makefile | |
parent | 3ba79d294eb62e9c75cc32d37b4af7759af8c9d6 (diff) | |
download | pkgsrc-ba171a91fab519f587b027c1a2888cb6e3fce049.tar.gz |
Add DESTDIR support.
Diffstat (limited to 'www/album_themes/Makefile')
-rw-r--r-- | www/album_themes/Makefile | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/www/album_themes/Makefile b/www/album_themes/Makefile index 1faa6626e45..616811f18a3 100644 --- a/www/album_themes/Makefile +++ b/www/album_themes/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.11 2006/09/03 00:56:30 wiz Exp $ +# $NetBSD: Makefile,v 1.12 2008/06/12 02:14:54 joerg Exp $ # DISTNAME= album_themes @@ -11,6 +11,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://marginalhacks.com/Hacks/album/Download.html COMMENT= Themes for the album generator +PKG_DESTDIR_SUPPORT= user-destdir + DEPENDS+= album-[0-9]*:../../www/album NO_CONFIGURE= YES @@ -26,6 +28,8 @@ PLIST_SRC= ${WRKDIR}/PLIST MESSAGE_SUBST= A_DATADIR=${A_DATADIR} A_HTTPDIR=${A_HTTPDIR} +INSTALLATION_DIRS= ${A_DATADIR} + # dynamic PLIST generation pre-install: @${RM} -f ${PLIST_SRC} @@ -37,8 +41,7 @@ pre-install: @${ECHO} "@dirrm ${A_DATADIR}" >> ${PLIST_SRC} do-install: - ${INSTALL_DATA_DIR} ${PREFIX}/${A_DATADIR} - cd ${PREFIX}/${A_DATADIR}; \ + cd ${DESTDIR}${PREFIX}/${A_DATADIR}; \ ${TAR} -xzf ${DISTDIR}/${DISTFILES} .include "../../mk/bsd.pkg.mk" |