1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-18 08:02:48 +00:00
freebsd-ports/graphics/exiv2/Makefile
Tobias C. Berner 7b0a52cd85 graphics/exiv2: update to 0.27.5
Highlights of Exiv2 v0.27.5
  *  BMFF bug fixes and CR3 previews
  *  Security fixes
  *  libFuzzer target for improved security testing
  *  Minor bugs and fixes

Exp-run by:	antoine
PR:		259365
2021-10-25 08:44:58 +02:00

62 lines
1.4 KiB
Makefile

# Created by: Michael Johnson <ahze@ahze.net>
PORTNAME= exiv2
DISTVERSION= 0.27.5
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.6+,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}/CMakeLists.txt
@${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>