Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Dec 2016 14:08:02 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r429916 - head/graphics/zphoto
Message-ID:  <201612291408.uBTE82pg030145@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Thu Dec 29 14:08:02 2016
New Revision: 429916
URL: https://svnweb.freebsd.org/changeset/ports/429916

Log:
  - Switch to USES=localbase
  - Properly optionize NLS

Modified:
  head/graphics/zphoto/Makefile
  head/graphics/zphoto/pkg-plist

Modified: head/graphics/zphoto/Makefile
==============================================================================
--- head/graphics/zphoto/Makefile	Thu Dec 29 14:03:37 2016	(r429915)
+++ head/graphics/zphoto/Makefile	Thu Dec 29 14:08:02 2016	(r429916)
@@ -10,23 +10,25 @@ MASTER_SITES=	http://namazu.org/~satoru/
 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

Modified: head/graphics/zphoto/pkg-plist
==============================================================================
--- head/graphics/zphoto/pkg-plist	Thu Dec 29 14:03:37 2016	(r429915)
+++ head/graphics/zphoto/pkg-plist	Thu Dec 29 14:08:02 2016	(r429916)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612291408.uBTE82pg030145>