pkgsrc/www/album_themes/Makefile
rillig b71a1d488b Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
2005-12-05 20:49:47 +00:00

43 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.8 2005/12/05 20:51:10 rillig Exp $
#
DISTNAME= album_themes
PKGNAME= album_themes-20050507
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-[0-9]*:../../www/album
NO_CONFIGURE= YES
NO_BUILD= YES
EXTRACT_ONLY= # none
USE_TOOLS+= tar
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 "../../mk/bsd.pkg.mk"