Changeset View
Changeset View
Standalone View
Standalone View
head/graphics/exiv2/Makefile
# Created by: Michael Johnson <ahze@ahze.net> | # Created by: Michael Johnson <ahze@ahze.net> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= exiv2 | PORTNAME= exiv2 | ||||
PORTVERSION= 0.24 | PORTVERSION= 0.25 | ||||
PORTREVISION= 2 | |||||
PORTEPOCH= 1 | PORTEPOCH= 1 | ||||
CATEGORIES= graphics | CATEGORIES= graphics | ||||
MASTER_SITES= http://www.exiv2.org/ | MASTER_SITES= http://www.exiv2.org/ | ||||
MAINTAINER= multimedia@FreeBSD.org | MAINTAINER= multimedia@FreeBSD.org | ||||
COMMENT= Exif, IPTC, and XMP metadata manipulation library and tools | COMMENT= Exif, IPTC, and XMP metadata manipulation library and tools | ||||
LICENSE= GPLv2 | LICENSE= GPLv2 | ||||
LICENSE_FILE= ${WRKSRC}/COPYING | LICENSE_FILE= ${WRKSRC}/COPYING | ||||
LIB_DEPENDS= libexpat.so:textproc/expat2 | LIB_DEPENDS= libexpat.so:textproc/expat2 | ||||
GNU_CONFIGURE= yes | USES= cmake:outsource cpe gettext iconv pathfix | ||||
USES= cpe gettext gmake iconv libtool | |||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
MAKE_JOBS_UNSAFE=yes | |||||
CPPFLAGS+= -I${LOCALBASE}/include | CMAKE_ARGS= -DEXIV2_ENABLE_VIDEO:BOOL=TRUE \ | ||||
LDFLAGS+= -L${LOCALBASE}/lib | -DEXIV2_ENABLE_BUILD_PO:BOOL=TRUE \ | ||||
-DEXIV2_ENABLE_BUILD_SAMPLES:BOOL=FALSE | |||||
.include <bsd.port.options.mk> | PATHFIX_CMAKELISTSTXT= CMakeChecks.txt | ||||
.if ${ARCH} == powerpc64 | CFLAGS_powerpc64= -mminimal-toc | ||||
CFLAGS+= -mminimal-toc | |||||
.endif | |||||
post-patch: | |||||
@${REINPLACE_CMD} -e 's,LDFLAGS -no-undefined -lpsapi",& ;; \ | |||||
dragonfly* | freebsd*),' ${WRKSRC}/configure | |||||
@${REINPLACE_CMD} -e \ | |||||
's,(libdir)/pkgconfig,(prefix)/libdata/pkgconfig,' \ | |||||
${WRKSRC}/src/Makefile | |||||
post-install: | |||||
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/exiv2 \ | |||||
${STAGEDIR}${PREFIX}/lib/libexiv2.so.13 | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |