1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/www/dalbum/Makefile
Dmitry Marakasov 2c0177e347 - Add LICENSE
- Add missing USES=php
- Move permission handling to plist
- Regenerate patches
2016-09-11 17:56:26 +00:00

44 lines
1.1 KiB
Makefile

# Created by: Sergey Matveychuk <sem@FreeBSD.org>
# $FreeBSD$
PORTNAME= dalbum
PORTVERSION= 140.152
PORTREVISION= 3
CATEGORIES= www
MASTER_SITES= http://www.dalbum.org/
DISTNAME= ${PORTNAME}${PORTVERSION:S/./_/}
MAINTAINER= ports@FreeBSD.org
COMMENT= Free, highly customizable PHP photo album
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/license.txt
RUN_DEPENDS= convert:graphics/ImageMagick
USES= cpe php
CPE_VERSION= ${PORTVERSION:C/^([0-9])([0-9][0-9]).*/\1.\2/}
CPE_UPDATE= ${PORTVERSION:C/^.*\.//}
USE_PHP= session pcre
NO_BUILD= yes
NO_ARCH= yes
DALBUM_DIR?= www/photo
NO_WRKSUBDIR= yes
PLIST_SUB+= DALBUM_DIR=${DALBUM_DIR} WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
SUB_LIST+= DALBUM_DIR=${DALBUM_DIR}
SUB_FILES= pkg-message
post-patch:
@${REINPLACE_CMD} "s#%%LOCALBASE%%#${LOCALBASE}#" ${WRKSRC}/config/config.php
@${RM} ${WRKSRC}/config/config.php.*
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/${DALBUM_DIR}
@cd ${WRKSRC} && ${FIND} .htaccess .private config images include pictures *.css *.js *.php *.txt -print | \
${CPIO} --quiet -pdum \
${STAGEDIR}${PREFIX}/${DALBUM_DIR}
.include <bsd.port.mk>