diff options
author | mef <mef@pkgsrc.org> | 2015-01-08 05:25:29 +0000 |
---|---|---|
committer | mef <mef@pkgsrc.org> | 2015-01-08 05:25:29 +0000 |
commit | 9222d1a7e624bc3835a3afaee86d879d2a0c8f54 (patch) | |
tree | abca7618e04cadbd23bdffcdc850f6606e1b0c34 /www/album_themes/Makefile | |
parent | 1ccb95b16fb533c9a52604195f4b906fcf14c64a (diff) | |
download | pkgsrc-9222d1a7e624bc3835a3afaee86d879d2a0c8f54.tar.gz |
Update album_themes from 20050507 to 20081222
- The above date is picked from the timestamp of License.txt
- The release note/ChangeLog for this theme was unknown.
- Several changes on installation
REPLACE_PERL
find and chmod not to have execution bit on regular files
(etc)
Diffstat (limited to 'www/album_themes/Makefile')
-rw-r--r-- | www/album_themes/Makefile | 48 |
1 files changed, 37 insertions, 11 deletions
diff --git a/www/album_themes/Makefile b/www/album_themes/Makefile index 8661e204ebd..d03ee335dec 100644 --- a/www/album_themes/Makefile +++ b/www/album_themes/Makefile @@ -1,23 +1,22 @@ -# $NetBSD: Makefile,v 1.14 2012/10/28 06:30:01 asau Exp $ +# $NetBSD: Makefile,v 1.15 2015/01/08 05:25:29 mef Exp $ # -DISTNAME= album_themes -PKGNAME= album_themes-20050507 -PKGREVISION= 2 +DISTNAME= album_data +PKGNAME= album_themes-20081222 CATEGORIES= www MASTER_SITES= http://marginalhacks.com/bin/ +DIST_SUBDIR= ${PKGNAME_NOREV} MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://marginalhacks.com/Hacks/album/Download.html COMMENT= Themes for the album generator DEPENDS+= album-[0-9]*:../../www/album +WRKSRC= ${WRKDIR} -NO_CONFIGURE= YES NO_BUILD= YES -EXTRACT_ONLY= # none -USE_TOOLS+= tar +USE_TOOLS+= tar perl A_DATADIR= share/Album A_HTTPDIR= share/httpd/htdocs/Album @@ -28,14 +27,41 @@ MESSAGE_SUBST= A_DATADIR=${A_DATADIR} A_HTTPDIR=${A_HTTPDIR} INSTALLATION_DIRS= ${A_DATADIR} +EXTRACT_ELEMENTS= lang/banner +EXTRACT_ELEMENTS+= plugins/captions/exif/exiftool.pl +EXTRACT_ELEMENTS+= plugins/captions/exif/p +REPLACE_PERL= ${EXTRACT_ELEMENTS} + +# To activate REPLACE_PERL, not by NO_CONFIGURE= yes, but: +do-configure: + ${DO_NADA} # dynamic PLIST generation pre-install: - @${RM} -f ${PLIST_SRC} - @${TAR} -tvzf ${DISTDIR}/${DISTFILES} | \ - ${SED} -n -e 's,^-.* ,${A_DATADIR}/,p' >> ${PLIST_SRC} + ${RM} -f ${PLIST_SRC} + ${TAR} -tvzf ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES} | \ + ${SED} -n -e 's,^-.* ,${A_DATADIR}/,p' >> ${PLIST_SRC} do-install: cd ${DESTDIR}${PREFIX}/${A_DATADIR}; \ - ${TAR} -xzf ${DISTDIR}/${DISTFILES} + ${TAR} -xzf ${DISTDIR}/${DIST_SUBDIR}/${DISTFILES} + cd ${DESTDIR}${PREFIX} ; \ + ${FIND} . \( -name \*.png -or \ + -name \*.gif -or \ + -name \*.jpg -or \ + -name \*.js -or \ + -name \*.swf -or \ + -name \*.th -or \ + -name \*.css -or \ + -name \*.txt -or \ + -name \*hide_album -or \ + -name data-changelog \ + \) \ + -exec ${CHMOD} 0644 '{}' \; + +post-install: +# copy perl replaced scripts + cd ${DESTDIR}${PREFIX}/${A_DATADIR}; \ + (cd ${WRKSRC}; ${TAR} -cf - ${EXTRACT_ELEMENTS} ) | \ + ${TAR} -xf - .include "../../mk/bsd.pkg.mk" |