diff options
author | joerg <joerg> | 2008-06-12 02:14:13 +0000 |
---|---|---|
committer | joerg <joerg> | 2008-06-12 02:14:13 +0000 |
commit | 39d7fb93432416d872ed34e0025741cc93068c06 (patch) | |
tree | c12b9c282e2706cb6bac87456615dfdf2b256e55 /www/album_themes | |
parent | cce8b72ae5b66d3a54ac565ef8ac6780597301bc (diff) | |
download | pkgsrc-39d7fb93432416d872ed34e0025741cc93068c06.tar.gz |
Add DESTDIR support.
Diffstat (limited to 'www/album_themes')
-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" |