From owner-svn-ports-all@freebsd.org Mon Dec 18 11:05:42 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 08548E839A4; Mon, 18 Dec 2017 11:05:42 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BB99475257; Mon, 18 Dec 2017 11:05:41 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vBIB5eiT050342; Mon, 18 Dec 2017 11:05:40 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vBIB5eGp050341; Mon, 18 Dec 2017 11:05:40 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201712181105.vBIB5eGp050341@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Mon, 18 Dec 2017 11:05:40 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r456616 - head/graphics/mtpaint X-SVN-Group: ports-head X-SVN-Commit-Author: amdmi3 X-SVN-Commit-Paths: head/graphics/mtpaint X-SVN-Commit-Revision: 456616 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Dec 2017 11:05:42 -0000 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 +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 \