opnsense-ports/graphics/feh/Makefile
Franco Fichtner 4cfa9d122e */*: sync with upstream
Taken from: HardenedBSD
2018-11-27 07:04:52 +01:00

52 lines
1.1 KiB
Makefile

# Created by: Jeremy Norris <ishmael127@home.com>
# $FreeBSD$
PORTNAME= feh
PORTVERSION= 3.1
CATEGORIES= graphics
MASTER_SITES= http://feh.finalrewind.org/ \
LOCAL/uqs
MAINTAINER= zeising@FreeBSD.org
COMMENT= Image viewer that utilizes Imlib2
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libcurl.so:ftp/curl \
libImlib2.so:graphics/imlib2 \
libpng.so:graphics/png
USE_HARDENING= cfi safestack
USES= compiler:c++11-lang cpe desktop-file-utils gmake localbase:ldflags \
tar:bzip2
USE_XORG= x11 xt xinerama
USE_PERL5= run
CPE_VENDOR= daniel_friesel
MAKE_ENV+= LDFLAGS="${LDFLAGS}" verscmp=0
OPTIONS_DEFINE= DCRAW DOCS EXAMPLES EXIF
EXIF_DESC= Support EXIF tags
DCRAW_DESC= Use dcraw to display raw file previews
OPTIONS_DEFAULT=EXIF
OPTIONS_SUB= yes
EXIF_LIB_DEPENDS= libexif.so:graphics/libexif
EXIF_MAKE_ENV= exif=1
DCRAW_RUN_DEPENDS= dcraw:graphics/dcraw
post-patch-DOCS-off:
@${REINPLACE_CMD} -e 's|install-doc||' \
${WRKSRC}/Makefile
post-patch-EXAMPLES-off:
@${REINPLACE_CMD} -e 's|install-examples||' \
${WRKSRC}/Makefile
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/feh
.include <bsd.port.mk>