aboutsummaryrefslogtreecommitdiff
path: root/graphics/zphoto
diff options
context:
space:
mode:
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