aboutsummaryrefslogtreecommitdiff
path: root/graphics/zphoto
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2016-12-29 14:08:02 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2016-12-29 14:08:02 +0000
commiteaa4b8b032f58d59aadd177c93fa4bc572f7b54e (patch)
tree2138894f4f34123a78eedb8c9844d52bd260a207 /graphics/zphoto
parentb9b8afc9bcdffa57cc4b9911fe39795b9682b101 (diff)
downloadports-eaa4b8b032f58d59aadd177c93fa4bc572f7b54e.tar.gz
ports-eaa4b8b032f58d59aadd177c93fa4bc572f7b54e.zip
- Switch to USES=localbase
- Properly optionize NLS
Notes
Notes: svn path=/head/; revision=429916
Diffstat (limited to 'graphics/zphoto')
-rw-r--r--graphics/zphoto/Makefile22
-rw-r--r--graphics/zphoto/pkg-plist4
2 files changed, 14 insertions, 12 deletions
diff --git a/graphics/zphoto/Makefile b/graphics/zphoto/Makefile
index cdbcb6d34a6b..5cf20c790997 100644
--- a/graphics/zphoto/Makefile
+++ b/graphics/zphoto/Makefile
@@ -10,23 +10,25 @@ MASTER_SITES= http://namazu.org/~satoru/zphoto/
MAINTAINER= ports@FreeBSD.org
COMMENT= Zooming photo album generator
-OPTIONS_DEFINE= ZIP
-OPTIONS_DEFAULT= ZIP
-ZIP_DESC= Enable zip support
-
LIB_DEPENDS= libming.so:graphics/ming \
libpopt.so:devel/popt \
libImlib2.so:graphics/imlib2
+USES= alias gmake localbase perl5
+USE_PERL5= build
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --disable-avifile
+
+OPTIONS_DEFINE= ZIP NLS
+OPTIONS_DEFAULT= ZIP
+OPTIONS_SUB= yes
+
+ZIP_DESC= Enable zip support
ZIP_RUN_DEPENDS= zip:archivers/zip
ZIP_CONFIGURE_OFF= --disable-zip
-GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --disable-avifile
-CPPFLAGS+= -I${LOCALBASE}/include
-LIBS+= -L${LOCALBASE}/lib
-USES= alias gmake perl5
-USE_PERL5= build
+NLS_USES= gettext
+NLS_CONFIGURE_ENABLE= nls
post-patch:
@${REINPLACE_CMD} -e 's|<ming.h>|<ming/ming.h>|g' ${WRKSRC}/*.c ${WRKSRC}/configure
diff --git a/graphics/zphoto/pkg-plist b/graphics/zphoto/pkg-plist
index 032daaa03a52..97597d24960b 100644
--- a/graphics/zphoto/pkg-plist
+++ b/graphics/zphoto/pkg-plist
@@ -1,6 +1,6 @@
bin/zphoto
-share/locale/ja/LC_MESSAGES/zphoto.mo
-share/locale/ja_JP.SJIS/LC_MESSAGES/zphoto.mo
+%%NLS%%share/locale/ja/LC_MESSAGES/zphoto.mo
+%%NLS%%share/locale/ja_JP.SJIS/LC_MESSAGES/zphoto.mo
%%DATADIR%%/doc/images/wxzphoto-linux-mini.png
%%DATADIR%%/doc/images/wxzphoto-linux.png
%%DATADIR%%/doc/images/wxzphoto-mini.png