02560809f7
This reelase is compatible with PHP 7.x Changes are listed at http://piwigo.org/basics/archive
53 lines
1.3 KiB
Makefile
53 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.7 2017/07/25 08:37:20 manu Exp $
|
|
#
|
|
|
|
PWVER= 2.9.1
|
|
DISTNAME= piwigo-${PWVER}
|
|
PKGNAME= ${PHP_PKG_PREFIX}-${DISTNAME}
|
|
CATEGORIES= www
|
|
MASTER_SITES= -http://piwigo.org/download/dlcounter.php?code=${PWVER}
|
|
EXTRACT_SUFX= .zip
|
|
|
|
MAINTAINER= ryoon@NetBSD.org
|
|
HOMEPAGE= http://piwigo.org/
|
|
COMMENT= Piwigo is photo gallery software for the web
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-gd>=5.2.0:../../graphics/php-gd
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-exif>=5.2.0:../../graphics/php-exif
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-mysqli>=5.2.0:../../databases/php-mysqli
|
|
|
|
WRKSRC= ${WRKDIR}/piwigo
|
|
USE_LANGUAGES= # none
|
|
|
|
NO_BUILD= yes
|
|
USE_TOOLS+= pax
|
|
|
|
PW_DIR= share/piwigo
|
|
INSTALLATION_DIRS= ${PW_DIR} ${PW_DIR}/upload
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
APACHE_USER?= www
|
|
APACHE_GROUP?= www
|
|
PKG_GROUPS= ${APACHE_GROUP}
|
|
PKG_USERS= ${APACHE_USER}:${APACHE_GROUP}
|
|
|
|
PKG_USERS_VARS= APACHE_USER
|
|
PKG_GROUPS_VARS= APACHE_GROUP
|
|
|
|
BUILD_DEFS+= APACHE_GROUP APACHE_USER
|
|
FILES_SUBST+= WWWGRP=${APACHE_GROUP} WWWOWN=${APACHE_USER} \
|
|
PW_DIR=${PW_DIR}
|
|
|
|
post-extract:
|
|
cd ${WRKSRC} && ${FIND} ${WRKSRC} -type f -exec ${CHMOD} -x {} \;
|
|
|
|
do-install:
|
|
cd ${WRKSRC} && ${FIND} . -type f \! -name '*.orig' -print | \
|
|
pax -rw ${DESTDIR}${PREFIX}/${PW_DIR}
|
|
|
|
touch ${DESTDIR}${PREFIX}/${PW_DIR}/upload/.empty
|
|
|
|
.include "../../lang/php/phpversion.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|