1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/www/igal2/Makefile
Tobias Kortkamp d9f71af5af www/igal2: Fix EXIF option
Options helpers are ineffective when set after bsd.port.options.mk.
Convert the port to options helpers to fix this.

Reported by:	tobik (in D19553)
2019-03-15 04:41:06 +00:00

44 lines
1.0 KiB
Makefile

# Created by: gahr
# $FreeBSD$
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_RUN_DEPENDS= ${LOCALBASE}/bin/convert:graphics/ImageMagick6
IMAGICK_NOX11_RUN_DEPENDS= ${LOCALBASE}/bin/convert:graphics/ImageMagick6-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>