blob: cdad29890437d7c429e50dba20f835371f4163f7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# New ports collection makefile for: dalbum
# Date created: 21 October 2005
# Whom: 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= 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
PLIST_SUB+= DALBUM_DIR=${DALBUM_DIR}
SUB_LIST+= DALBUM_DIR=${DALBUM_DIR}
SUB_FILES= pkg-message
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}
.include <bsd.port.mk>
|