aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2014-04-28 09:21:00 +0000
committerPawel Pekala <pawel@FreeBSD.org>2014-04-28 09:21:00 +0000
commitb71bfa27112dfc85d3d2f250a9376bba76050e67 (patch)
treed64ede78f33f297517d067181462b1a932e7db51
parent1eb9d015abef11541c805aaad9b850e1b1f92e26 (diff)
downloadports-b71bfa27112dfc85d3d2f250a9376bba76050e67.tar.gz
ports-b71bfa27112dfc85d3d2f250a9376bba76050e67.zip
- Add staging support
- Convert to new LIB_DEPENDS format, USES=tar:bzip2 - Use options subs - Needs desktop-file-utils
Notes
Notes: svn path=/head/; revision=352476
-rw-r--r--graphics/mtpaint/Makefile46
-rw-r--r--graphics/mtpaint/pkg-plist1
2 files changed, 19 insertions, 28 deletions
diff --git a/graphics/mtpaint/Makefile b/graphics/mtpaint/Makefile
index 4605c0d58257..d564cb4f29be 100644
--- a/graphics/mtpaint/Makefile
+++ b/graphics/mtpaint/Makefile
@@ -3,7 +3,7 @@
PORTNAME= mtpaint
PORTVERSION= 3.40
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= graphics
MASTER_SITES= SF
@@ -13,68 +13,58 @@ COMMENT= Simple painting program
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
-LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg \
- png15:${PORTSDIR}/graphics/png \
- tiff.4:${PORTSDIR}/graphics/tiff \
- gif.5:${PORTSDIR}/graphics/giflib \
+LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg \
+ libpng15.so:${PORTSDIR}/graphics/png \
+ libtiff.so:${PORTSDIR}/graphics/tiff \
+ libgif.so:${PORTSDIR}/graphics/giflib \
libfreetype.so:${PORTSDIR}/print/freetype2
-OPTIONS_DEFINE= LCMS2 OPENJPEG NLS
-OPTIONS_DEFAULT= LCMS2 OPENJPEG
-OPENJPEG_DESC= Enable OpenJPEG support
-
-USE_BZIP2= yes
USE_GNOME= gtk20
-USES= gmake pkgconfig iconv
+USES= desktop-file-utils gmake iconv pkgconfig tar:bzip2
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
-MAN1= ${PORTNAME}.1
+OPTIONS_DEFINE= LCMS2 OPENJPEG NLS
+OPTIONS_DEFAULT= LCMS2 OPENJPEG
+OPTIONS_SUB= yes
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MLCMS2}
-LIB_DEPENDS+= lcms2.2:${PORTSDIR}/graphics/lcms2
+LIB_DEPENDS+= liblcms2.so:${PORTSDIR}/graphics/lcms2
CONFIGURE_ARGS+=lcms2
.else
CONFIGURE_ARGS+=nolcms
.endif
.if ${PORT_OPTIONS:MOPENJPEG}
-LIB_DEPENDS+= openjpeg.2:${PORTSDIR}/graphics/openjpeg
+LIB_DEPENDS+= libopenjpeg.so:${PORTSDIR}/graphics/openjpeg
CONFIGURE_ARGS+=jp2
.else
-LIB_DEPENDS+= jasper.4:${PORTSDIR}/graphics/jasper
+LIB_DEPENDS+= libjasper.so:${PORTSDIR}/graphics/jasper
CONFIGURE_ARGS+=jasper
.endif
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
CONFIGURE_ARGS+=intl
-PLIST_SUB+= NLS=""
-.else
-PLIST_SUB+= NLS="@comment "
.endif
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} \
- ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 \
- ${MANPREFIX}/man/man1
+ ${STAGEDIR}${MANPREFIX}/man/man1
${INSTALL_DATA} ${WRKSRC}/doc/${PORTNAME}.desktop \
- ${PREFIX}/share/applications
+ ${STAGEDIR}${DESKTOPDIR}
${INSTALL_DATA} ${WRKSRC}/doc/${PORTNAME}.png \
- ${PREFIX}/share/pixmaps
-.if ${PORT_OPTIONS:MNLS}
+ ${STAGEDIR}${PREFIX}/share/pixmaps
.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} ${PREFIX}/share/locale/${lang}/LC_MESSAGES
+ @${MKDIR} ${STAGEDIR}${PREFIX}/share/locale/${lang}/LC_MESSAGES
${INSTALL_DATA} ${WRKSRC}/po/${lang}.mo \
- ${PREFIX}/share/locale/${lang}/LC_MESSAGES/mtpaint.mo
+ ${STAGEDIR}${PREFIX}/share/locale/${lang}/LC_MESSAGES/mtpaint.mo
.endfor
-.endif
.include <bsd.port.mk>
diff --git a/graphics/mtpaint/pkg-plist b/graphics/mtpaint/pkg-plist
index 5e3c284e068c..98cc6716f425 100644
--- a/graphics/mtpaint/pkg-plist
+++ b/graphics/mtpaint/pkg-plist
@@ -1,4 +1,5 @@
bin/mtpaint
+man/man1/mtpaint.1.gz
share/applications/mtpaint.desktop
%%NLS%%share/locale/cs/LC_MESSAGES/mtpaint.mo
%%NLS%%share/locale/de/LC_MESSAGES/mtpaint.mo