Changeset View
Changeset View
Standalone View
Standalone View
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 | |||||
PATHFIX_CMAKELISTSTXT= CMakeChecks.txt | |||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
.if ${ARCH} == powerpc64 | .if ${ARCH} == powerpc64 | ||||
CFLAGS+= -mminimal-toc | CFLAGS+= -mminimal-toc | ||||
.endif | .endif | ||||
rakuco: Food for thought for another commit: you can replace this whole block with `CFLAGS_powerpc64=… | |||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} -e 's,LDFLAGS -no-undefined -lpsapi",& ;; \ | # Do not link against -ldl | ||||
rakucoUnsubmitted Done Inline ActionsPersonally I'm not a big fan of these sed calls, they tend to remain in the Makefile long after the things they are patching have been fixed upstream. This is not a blocker, but I'd rather have a proper patch in files/ replacing dl with ${CMAKE_DL_LIBS} (this is also a good candidate for upstreaming). rakuco: Personally I'm not a big fan of these sed calls, they tend to remain in the `Makefile` long… | |||||
dragonfly* | freebsd*),' ${WRKSRC}/configure | @${REINPLACE_CMD} -e '/TARGET_LINK_LIBRARIES/s| dl | |g' \ | ||||
@${REINPLACE_CMD} -e \ | ${PATCH_WRKSRC}/src/CMakeLists.txt | ||||
'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> | ||||
Not Done Inline ActionsThis is USES=pathfix. mat: This is `USES=pathfix`. |
Food for thought for another commit: you can replace this whole block with CFLAGS_powerpc64= -mminimal-toc.