mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-25 09:34:11 +00:00
45526ecbee
A new USES has been added to depend on ImageMagick. USES=magick adds a LIB_DEPENDS on graphics/ImageMagick${IMAGEMAGICK_DEFAULT}. If a specific version is required, use for example USES=magick:6 resp. USES=magick:7 If only a build, run or test is required, use for example USES=magick:build resp. USES=magick:6,build,test If a dependency on the nox11 flavor is required, use for example USES=magick:nox11 resp. USES=magick:7,nox11,run,test See magick.mk for more details on the available flags. The tree has been completely converted to make use of this. Approved by: bapt Differential Revision: https://reviews.freebsd.org/D32754
46 lines
1001 B
Makefile
46 lines
1001 B
Makefile
PORTNAME= coppermine
|
|
PORTVERSION= 1.6.12
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= www
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Web picture gallery script
|
|
|
|
LICENSE= GPLv3
|
|
|
|
USES= php
|
|
|
|
OPTIONS_DEFINE= DOCS IMAGEMAGICK
|
|
IMAGEMAGICK_DESC= Use ImageMagick instead of PHP GD extension
|
|
|
|
IMAGEMAGICK_USES= magick:6,run
|
|
IMAGEMAGICK_USE_OFF= PHP=gd
|
|
|
|
USE_PHP= ctype hash json mysqli pcre xml
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= coppermine-gallery
|
|
GH_PROJECT= cpg1.6.x
|
|
|
|
NO_BUILD= yes
|
|
NO_ARCH= yes
|
|
PORTDOCS= CHANGELOG.txt LICENSE.txt README.txt
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
pre-everything::
|
|
@${ECHO_MSG} ""
|
|
@${ECHO_MSG} "By default, coppermine depends on PHP with GD support."
|
|
@${ECHO_MSG} "You may select IMAGEMAGICK to depend on ImageMagick instead of GD."
|
|
@${ECHO_MSG} ""
|
|
|
|
pre-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}/
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
|
|
|
|
do-install:
|
|
cd ${WRKSRC}/ && ${RM} ${PORTDOCS}
|
|
cd ${WRKSRC}/ && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}/
|
|
|
|
.include <bsd.port.mk>
|