1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/graphics/exiv2/Makefile
2021-04-06 16:31:07 +02:00

60 lines
1.4 KiB
Makefile

# Created by: Michael Johnson <ahze@ahze.net>
PORTNAME= exiv2
DISTVERSION= 0.27.3
DISTVERSIONSUFFIX= -Source
PORTEPOCH= 1
CATEGORIES= graphics
MASTER_SITES= https://www.exiv2.org/builds/
MAINTAINER= multimedia@FreeBSD.org
COMMENT= Exif, IPTC, and XMP metadata manipulation library and tools
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libexpat.so:textproc/expat2
TEST_DEPENDS= bash:shells/bash
TEST_LIB_DEPENDS= libgtest.so:devel/googletest
USES= cmake compiler:c++11-lang cpe dos2unix gettext-tools pathfix \
python:3.5+,test localbase:ldflags
USE_LDCONFIG= yes
DOS2UNIX_FILES= cmake/compilerFlags.cmake
TEST_TARGET= tests
CMAKE_ON= EXIV2_ENABLE_VIDEO
CMAKE_OFF= EXIV2_ENABLE_LIBXMP
OPTIONS_DEFINE= NLS SAMPLE TEST
OPTIONS_SUB= yes
TEST_IMPLIES= SAMPLE
NLS_CMAKE_BOOL= EXIV2_ENABLE_NLS
NLS_USES= gettext-runtime
SAMPLE_DESC= Include sample applications
SAMPLE_CMAKE_BOOL= EXIV2_BUILD_SAMPLES
TEST_CMAKE_BOOL= EXIV2_BUILD_UNIT_TESTS
PATHFIX_CMAKELISTSTXT= CMakeChecks.txt
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}-Source
.include <bsd.port.options.mk>
LDFLAGS_powerpc= -lintl
LDFLAGS_powerpc64= -lintl
LDFLAGS_mips= -lintl
LDFLAGS_mips64= -lintl
post-patch:
@${REINPLACE_CMD} -e 's|python3|${PYTHON_CMD}|' \
${WRKSRC}/test/Makefile
@${REINPLACE_CMD} -e 's|python3|${PYTHON_CMD}|' \
${WRKSRC}/test/functions.source
.include <bsd.port.mk>