freebsd-ports/graphics/nomacs/Makefile
Antoine Brodin 939c782269 - Update to 1.6.0
- Use new LIB_DEPENDS syntax
- Options are already described in bsd.options.desc.mk
- Convert to STAGEDIR

PR:		ports/183011
Submitted by:	Jens K. Loewe (maintainer)
2013-10-16 18:37:03 +00:00

47 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= nomacs
PORTVERSION= 1.6.0
CATEGORIES= graphics
MASTER_SITES= SF/nomacs/nomacs-${PORTVERSION}/
DISTNAME= ${PORTNAME}-${PORTVERSION}-source
MAINTAINER= bsd@tuxproject.de
COMMENT= Small, fast and free image viewer
LICENSE= GPLv3
LIB_DEPENDS= libexiv2.so:${PORTSDIR}/graphics/exiv2 \
libsysinfo.so:${PORTSDIR}/devel/libsysinfo
USE_BZIP2= yes
USES= cmake desktop-file-utils pkgconfig
USE_QT4= gui network linguist_build moc_build \
qmake_build rcc_build uic_build
LDFLAGS+= -lsysinfo -lkvm
WRKTOP= ${WRKDIR}
WRKSUBDIR= ${DISTNAME:S,-source,,}
WRKSRC= ${WRKTOP}/${WRKSUBDIR}
OPTIONS_DEFINE= RAW TIFF
OPTIONS_DEFAULT= RAW TIFF
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MRAW}
LIB_DEPENDS+= libraw.so:${PORTSDIR}/graphics/libraw \
libopencv_legacy.so:${PORTSDIR}/graphics/opencv
.else
CMAKE_ARGS+= -DENABLE_RAW=0
.endif
.if ${PORT_OPTIONS:MTIFF}
LIB_DEPENDS+= libtiff.so:${PORTSDIR}/graphics/tiff
.else
CMAKE_ARGS+= -DENABLE_TIFF=0
.endif
post-extract:
@${REINPLACE_CMD} -e 's|share/man/man1|man/man1|' ${WRKSRC}/CMakeLists.txt
.include <bsd.port.mk>