diff options
author | marino <marino@FreeBSD.org> | 2014-05-30 08:43:17 +0800 |
---|---|---|
committer | marino <marino@FreeBSD.org> | 2014-05-30 08:43:17 +0800 |
commit | 804dc7216cd6374692280d9bba16d347bb8477df (patch) | |
tree | 421711690982a81f1f71669f89fa3e660542e5b9 /www | |
parent | 3d272894e419c51693391bb40f2e11a466169c56 (diff) | |
download | freebsd-ports-gnome-804dc7216cd6374692280d9bba16d347bb8477df.tar.gz freebsd-ports-gnome-804dc7216cd6374692280d9bba16d347bb8477df.tar.zst freebsd-ports-gnome-804dc7216cd6374692280d9bba16d347bb8477df.zip |
www/dalbum: Add stage support
* Remove unnecessary post-extract target by use of NO_WRKSUBDIR
* Wrap to 80 columns
* pet portlint a bit
Diffstat (limited to 'www')
-rw-r--r-- | www/dalbum/Makefile | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/www/dalbum/Makefile b/www/dalbum/Makefile index f1478ef9a96e..afaa761a10ac 100644 --- a/www/dalbum/Makefile +++ b/www/dalbum/Makefile @@ -12,33 +12,25 @@ MAINTAINER= sem@FreeBSD.org COMMENT= Free, highly customizable PHP photo album RUN_DEPENDS= convert:${PORTSDIR}/graphics/ImageMagick + USE_PHP= session pcre NO_BUILD= yes DALBUM_DIR?= www/photo +NO_WRKSUBDIR= yes PLIST_SUB+= DALBUM_DIR=${DALBUM_DIR} SUB_LIST+= DALBUM_DIR=${DALBUM_DIR} SUB_FILES= pkg-message -NO_STAGE= yes -do-extract: - @${RM} -rf ${WRKDIR} - @${MKDIR} -p ${WRKSRC} - @if ! (cd ${WRKSRC} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/${DISTFILES} ${EXTRACT_AFTER_ARGS});\ - then \ - exit 1; \ - fi - post-patch: @${REINPLACE_CMD} "s#%%LOCALBASE%%#${LOCALBASE}#" ${WRKSRC}/config/config.php @${RM} ${WRKSRC}/config/config.php.* do-install: - @${MKDIR} -m 0775 ${PREFIX}/${DALBUM_DIR} - @cd ${WRKSRC} && ${FIND} . -print | ${CPIO} --quiet -pdum -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${DALBUM_DIR} - -post-install: - @${CAT} ${PKGMESSAGE} + @${MKDIR} -m 0775 ${STAGEDIR}${PREFIX}/${DALBUM_DIR} + @cd ${WRKSRC} && ${FIND} . -print | \ + ${CPIO} --quiet -pdum -R ${WWWOWN}:${WWWGRP} \ + ${STAGEDIR}${PREFIX}/${DALBUM_DIR} .include <bsd.port.mk> |