Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Dec 2017 11:05:40 +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: r456616 - head/graphics/mtpaint
Message-ID:  <201712181105.vBIB5eGp050341@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Mon Dec 18 11:05:40 2017
New Revision: 456616
URL: https://svnweb.freebsd.org/changeset/ports/456616

Log:
  - Switch to options helpers
  - Pet portlint

Modified:
  head/graphics/mtpaint/Makefile

Modified: head/graphics/mtpaint/Makefile
==============================================================================
--- head/graphics/mtpaint/Makefile	Mon Dec 18 11:03:13 2017	(r456615)
+++ head/graphics/mtpaint/Makefile	Mon Dec 18 11:05:40 2017	(r456616)
@@ -18,40 +18,31 @@ LIB_DEPENDS=	libpng.so:graphics/png \
 		libgif.so:graphics/giflib \
 		libfreetype.so:print/freetype2
 
-USE_GNOME=	gtk20
 USES=		desktop-file-utils gmake iconv jpeg pkgconfig tar:bzip2
+USE_GNOME=	gtk20
 HAS_CONFIGURE=	yes
-LDFLAGS+=	-L${LOCALBASE}/lib ${ICONV_LIB}
 CONFIGURE_ARGS=	--prefix=${PREFIX} --mandir=${MAN1PREFIX}/man/man1 \
 		--localedir=${PREFIX}/share/locale \
 		gtk2 cflags asneeded ft jpeg tiff man GIF
 
+LDFLAGS+=	-L${LOCALBASE}/lib ${ICONV_LIB}
+
 OPTIONS_DEFINE=	LCMS2 OPENJPEG NLS
 OPTIONS_DEFAULT=	LCMS2 OPENJPEG
 OPTIONS_SUB=	yes
 
-.include <bsd.port.options.mk>
+LCMS2_LIB_DEPENDS=	liblcms2.so:graphics/lcms2
+LCMS2_CONFIGURE_ON=	lcms2
+LCMS2_CONFIGURE_OFF=	nolcms
 
-.if ${PORT_OPTIONS:MLCMS2}
-LIB_DEPENDS+=	liblcms2.so:graphics/lcms2
-CONFIGURE_ARGS+=lcms2
-.else
-CONFIGURE_ARGS+=nolcms
-.endif
+OPENJPEG_LIB_DEPENDS=	libopenjpeg.so:graphics/openjpeg15
+OPENJPEG_CONFIGURE_ON=	jp2
+OPENJPEG_LIB_DEPENDS_OFF=libjasper.so:graphics/jasper
+OPENJPEG_CONFIGURE_OFF=	jasper
 
-.if ${PORT_OPTIONS:MOPENJPEG}
-LIB_DEPENDS+=	libopenjpeg.so:graphics/openjpeg15
-CONFIGURE_ARGS+=jp2
-.else
-LIB_DEPENDS+=	libjasper.so:graphics/jasper
-CONFIGURE_ARGS+=jasper
-.endif
+NLS_USES=		gettext
+NLS_CONFIGURE_ON=	intl
 
-.if ${PORT_OPTIONS:MNLS}
-USES+=		gettext
-CONFIGURE_ARGS+=intl
-.endif
-
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
 	${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 \
@@ -60,6 +51,8 @@ do-install:
 		${STAGEDIR}${DESKTOPDIR}
 	${INSTALL_DATA} ${WRKSRC}/doc/${PORTNAME}.png \
 		${STAGEDIR}${PREFIX}/share/pixmaps
+
+do-install-NLS-on:
 .for lang in cs de es fr gl hu it ja nl pl pt pt_BR ru sk sv tl tr zh_CN zh_TW
 	@${MKDIR} ${STAGEDIR}${PREFIX}/share/locale/${lang}/LC_MESSAGES
 	${INSTALL_DATA} ${WRKSRC}/po/${lang}.mo \



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