svn commit: r550175 - head/graphics/exiv2
Thomas Zander
riggs at FreeBSD.org
Sat Sep 26 12:09:38 UTC 2020
Author: riggs
Date: Sat Sep 26 12:09:37 2020
New Revision: 550175
URL: https://svnweb.freebsd.org/changeset/ports/550175
Log:
Add NLS option.
PR: 248733
Submitted by: melanhit at gmail.com
Reviewed by: daniel.engberg.lists at pyret.net, riggs
Modified:
head/graphics/exiv2/Makefile
head/graphics/exiv2/pkg-plist
Modified: head/graphics/exiv2/Makefile
==============================================================================
--- head/graphics/exiv2/Makefile Sat Sep 26 12:01:47 2020 (r550174)
+++ head/graphics/exiv2/Makefile Sat Sep 26 12:09:37 2020 (r550175)
@@ -18,23 +18,23 @@ 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 iconv pathfix \
+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
-LDFLAGS+= -lintl
-
-CMAKE_ON= EXIV2_ENABLE_VIDEO \
- EXIV2_ENABLE_NLS
+CMAKE_ON= EXIV2_ENABLE_VIDEO
CMAKE_OFF= EXIV2_ENABLE_LIBXMP
-OPTIONS_DEFINE= SAMPLE TEST
+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
@@ -43,6 +43,13 @@ 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}|' \
Modified: head/graphics/exiv2/pkg-plist
==============================================================================
--- head/graphics/exiv2/pkg-plist Sat Sep 26 12:01:47 2020 (r550174)
+++ head/graphics/exiv2/pkg-plist Sat Sep 26 12:09:37 2020 (r550175)
@@ -74,20 +74,20 @@ lib/libexiv2.so.27
lib/libexiv2-xmp.a
libdata/pkgconfig/exiv2.pc
man/man1/exiv2.1.gz
-share/locale/bs/LC_MESSAGES/exiv2.mo
-share/locale/ca/LC_MESSAGES/exiv2.mo
-share/locale/de/LC_MESSAGES/exiv2.mo
-share/locale/es/LC_MESSAGES/exiv2.mo
-share/locale/fi/LC_MESSAGES/exiv2.mo
-share/locale/fr/LC_MESSAGES/exiv2.mo
-share/locale/gl/LC_MESSAGES/exiv2.mo
-share/locale/ms/LC_MESSAGES/exiv2.mo
-share/locale/nl/LC_MESSAGES/exiv2.mo
-share/locale/pl/LC_MESSAGES/exiv2.mo
-share/locale/pt/LC_MESSAGES/exiv2.mo
-share/locale/ru/LC_MESSAGES/exiv2.mo
-share/locale/sk/LC_MESSAGES/exiv2.mo
-share/locale/sv/LC_MESSAGES/exiv2.mo
-share/locale/ug/LC_MESSAGES/exiv2.mo
-share/locale/uk/LC_MESSAGES/exiv2.mo
-share/locale/vi/LC_MESSAGES/exiv2.mo
+%%NLS%%share/locale/bs/LC_MESSAGES/exiv2.mo
+%%NLS%%share/locale/ca/LC_MESSAGES/exiv2.mo
+%%NLS%%share/locale/de/LC_MESSAGES/exiv2.mo
+%%NLS%%share/locale/es/LC_MESSAGES/exiv2.mo
+%%NLS%%share/locale/fi/LC_MESSAGES/exiv2.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/exiv2.mo
+%%NLS%%share/locale/gl/LC_MESSAGES/exiv2.mo
+%%NLS%%share/locale/ms/LC_MESSAGES/exiv2.mo
+%%NLS%%share/locale/nl/LC_MESSAGES/exiv2.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/exiv2.mo
+%%NLS%%share/locale/pt/LC_MESSAGES/exiv2.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/exiv2.mo
+%%NLS%%share/locale/sk/LC_MESSAGES/exiv2.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/exiv2.mo
+%%NLS%%share/locale/ug/LC_MESSAGES/exiv2.mo
+%%NLS%%share/locale/uk/LC_MESSAGES/exiv2.mo
+%%NLS%%share/locale/vi/LC_MESSAGES/exiv2.mo
More information about the svn-ports-all
mailing list