ports/www/igal2/Makefile
Tobias C. Berner 45526ecbee framework: Add new USES 'magick' for graphics/ImageMagick*
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
2021-12-11 14:50:53 +01:00

42 lines
935 B
Makefile

# Created by: gahr
PORTNAME= igal2
PORTVERSION= 2.2
PORTREVISION= 3
CATEGORIES= www graphics
MASTER_SITES= http://igal.trexler.at/
MAINTAINER= ports@bsdserwis.com
COMMENT= Simple CLI image gallery generator
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
CONFLICTS= igal-1.*
USES= perl5
NO_BUILD= yes
NO_ARCH= yes
MAKE_ENV+= DESTDIR=${STAGEDIR}
OPTIONS_DEFINE= EXIF
EXIF_DESC= Support EXIF data (-e option)
OPTIONS_RADIO= IMAGICK
OPTIONS_RADIO_IMAGICK=IMAGICK_NOX11 IMAGICK_X11
OPTIONS_DEFAULT=IMAGICK_NOX11
IMAGICK_DESC= ${IMAGEMAGICK_DESC}
IMAGICK_NOX11_DESC=Without X11 support
IMAGICK_X11_DESC=With X11 support
EXIF_RUN_DEPENDS= p5-Image-ExifTool>=7.0:graphics/p5-Image-ExifTool
IMAGICK_X11_USES= magick:6,run
IMAGICK_NOX11_USES= magick:6,run,nox11
post-patch:
${REINPLACE_CMD} -e 's|%%LIBDIR%%|${PREFIX}/lib/igal2|' ${WRKSRC}/igal2
post-install:
${LN} -sf igal2 ${STAGEDIR}${PREFIX}/bin/igal
.include <bsd.port.mk>