diff options
author | augustss <augustss@pkgsrc.org> | 2005-04-28 15:11:59 +0000 |
---|---|---|
committer | augustss <augustss@pkgsrc.org> | 2005-04-28 15:11:59 +0000 |
commit | d6a161ed41396d811912a9633849a118ca39a0ed (patch) | |
tree | 6b7bfcdc5c0929722df10d4fc6b8bf7d12f4bd8b /www/album_themes/Makefile | |
parent | 30c11390c518c4517ecf9a806521c516bb02e616 (diff) | |
download | pkgsrc-d6a161ed41396d811912a9633849a118ca39a0ed.tar.gz |
Add album, a web photo album generator.
Diffstat (limited to 'www/album_themes/Makefile')
-rw-r--r-- | www/album_themes/Makefile | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/www/album_themes/Makefile b/www/album_themes/Makefile new file mode 100644 index 00000000000..6b9ef79a91e --- /dev/null +++ b/www/album_themes/Makefile @@ -0,0 +1,41 @@ +# $NetBSD $ +# + +DISTNAME= album_themes +CATEGORIES= www +MASTER_SITES= http://marginalhacks.com/bin/ + +MAINTAINER= augustss@NetBSD.org +HOMEPAGE= http://marginalhacks.com/Hacks/album/Download.html +COMMENT= Themes for the album generator + +DEPENDS+= album-*:../../www/album + +NO_CONFIGURE= # defined +NO_BUILD= # defined +EXTRACT_ONLY= # defined + +A_DATADIR= share/Album +A_HTTPDIR= share/httpd/htdocs/Album + +PLIST_SRC= ${WRKDIR}/PLIST + +MESSAGE_SUBST= A_DATADIR=${A_DATADIR} A_HTTPDIR=${A_HTTPDIR} + +# dynamic PLIST generation +pre-install: + @${RM} -f ${PLIST_SRC} + @${TAR} -tvzf ${DISTDIR}/${DISTFILES} | \ + ${SED} -n -e 's,^-.* ,${A_DATADIR}/,p' >> ${PLIST_SRC} + @${TAR} -tvzf ${DISTDIR}/${DISTFILES} | \ + ${SED} -n -e 's,^d.* ,@dirrm ${A_DATADIR}/,p' | ${SORT} -r >> ${PLIST_SRC} + @${ECHO} "@dirrm ${A_DATADIR}/Themes" >> ${PLIST_SRC} + @${ECHO} "@dirrm ${A_DATADIR}" >> ${PLIST_SRC} + +do-install: + ${INSTALL_DATA_DIR} ${PREFIX}/${A_DATADIR} + cd ${PREFIX}/${A_DATADIR}; \ + ${TAR} -xzf ${DISTDIR}/${DISTFILES} + +.include "../../www/apache/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" |