View | Details | Raw Unified | Return to bug 164159
Collapse All | Expand All

(-)graphics/mtpaint/Makefile (-19 / +40 lines)
Lines 6-38 Link Here
6
#
6
#
7
7
8
PORTNAME=	mtpaint
8
PORTNAME=	mtpaint
9
PORTVERSION=	3.31
9
PORTVERSION=	3.40
10
PORTREVISION=	5
11
CATEGORIES=	graphics
10
CATEGORIES=	graphics
12
MASTER_SITES=	SF
11
MASTER_SITES=	SF
13
12
14
MAINTAINER=	ports@FreeBSD.org
13
MAINTAINER=	ports@FreeBSD.org
15
COMMENT=	Simple painting program
14
COMMENT=	Simple painting program
16
15
17
LIB_DEPENDS=	gif.5:${PORTSDIR}/graphics/giflib \
16
LICENSE=	GPLv3
18
		jasper.4:${PORTSDIR}/graphics/jasper \
17
LICENSE_FILE=	${WRKSRC}/COPYING
19
		jpeg.11:${PORTSDIR}/graphics/jpeg \
18
20
		openjpeg.2:${PORTSDIR}/graphics/openjpeg \
19
LIB_DEPENDS=	jpeg.11:${PORTSDIR}/graphics/jpeg \
21
		png.6:${PORTSDIR}/graphics/png \
20
		png.6:${PORTSDIR}/graphics/png \
22
		tiff.4:${PORTSDIR}/graphics/tiff \
21
		tiff.4:${PORTSDIR}/graphics/tiff \
23
		freetype.9:${PORTSDIR}/print/freetype2
22
		freetype.9:${PORTSDIR}/print/freetype2
24
23
24
OPTIONS=	GIFLIB "Enable LZW-compressed GIF support" off \
25
		LCMS2 "Enable ICC color management support" on \
26
		OPENJPEG "Enable OpenJPEG support" on \
27
		NLS "Enable Native Language support" on
28
25
USE_BZIP2=	yes
29
USE_BZIP2=	yes
26
USE_GNOME=	gtk20
30
USE_GNOME=	gtk20
31
USE_GMAKE=	yes
27
HAS_CONFIGURE=	yes
32
HAS_CONFIGURE=	yes
28
CONFIGURE_ARGS=	--prefix=${PREFIX} --mandir=${MAN1PREFIX}/man/man1 \
33
CONFIGURE_ARGS=	--prefix=${PREFIX} --mandir=${MAN1PREFIX}/man/man1 \
29
		--locale=${PREFIX}/share/locale \
34
		--localedir=${PREFIX}/share/locale \
30
		gtk2 cflags slow asneeded GIF jpeg jp2 tiff man
35
		gtk2 cflags asneeded ft jpeg tiff man
36
MAKE_JOBS_SAFE=	yes
31
37
32
MANCOMPRESSED=	yes
33
MAN1=		${PORTNAME}.1
38
MAN1=		${PORTNAME}.1
34
39
35
CFLAGS+=	-DU_FREETYPE
40
.include <bsd.port.options.mk>
41
42
.if defined(WITH_GIFLIB)
43
LIB_DEPENDS+=	gif.5:${PORTSDIR}/graphics/giflib
44
CONFIGURE_ARGS+=GIF
45
.else
46
LIB_DEPENDS+=	ungif.5:${PORTSDIR}/graphics/libungif
47
CONFIGURE_ARGS+=gif
48
.endif
49
50
.if defined(WITHOUT_LCMS2)
51
CONFIGURE_ARGS+=nolcms
52
.else
53
LIB_DEPENDS+=	lcms2.2:${PORTSDIR}/graphics/lcms2
54
CONFIGURE_ARGS+=lcms2
55
.endif
56
57
.if defined(WITHOUT_OPENJPEG)
58
LIB_DEPENDS+=	jasper.4:${PORTSDIR}/graphics/jasper
59
CONFIGURE_ARGS+=jasper
60
.else
61
LIB_DEPENDS+=	openjpeg.2:${PORTSDIR}/graphics/openjpeg
62
CONFIGURE_ARGS+=jp2
63
.endif
36
64
37
.if defined(WITHOUT_NLS)
65
.if defined(WITHOUT_NLS)
38
PLIST_SUB+=	NLS="@comment "
66
PLIST_SUB+=	NLS="@comment "
Lines 42-58 Link Here
42
PLIST_SUB+=	NLS=""
70
PLIST_SUB+=	NLS=""
43
.endif
71
.endif
44
72
45
post-patch:
46
	@${REINPLACE_CMD} -e 's|="/usr"|="${LOCALBASE}"|g ; \
47
		 s|/usr/X11R6|${LOCALBASE}|g ; \
48
		 s|GTK_LIB -s|GTK_LIB|g' ${WRKSRC}/configure
49
	@${REINPLACE_CMD} -e 's|png_set_gray_1_2_4_to_8|png_set_expand_gray_1_2_4_to_8|' \
50
		${WRKSRC}/src/png.c
51
52
do-install:
73
do-install:
53
	${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} \
74
	${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} \
54
		${PREFIX}/bin
75
		${PREFIX}/bin
55
	${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1.gz \
76
	${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 \
56
		${MANPREFIX}/man/man1
77
		${MANPREFIX}/man/man1
57
	@${MKDIR} ${PREFIX}/share/applications
78
	@${MKDIR} ${PREFIX}/share/applications
58
	${INSTALL_DATA} ${WRKSRC}/doc/${PORTNAME}.desktop \
79
	${INSTALL_DATA} ${WRKSRC}/doc/${PORTNAME}.desktop \
Lines 60-66 Link Here
60
	${INSTALL_DATA} ${WRKSRC}/doc/${PORTNAME}.png \
81
	${INSTALL_DATA} ${WRKSRC}/doc/${PORTNAME}.png \
61
		${PREFIX}/share/pixmaps
82
		${PREFIX}/share/pixmaps
62
.if !defined(WITHOUT_NLS)
83
.if !defined(WITHOUT_NLS)
63
.for lang in cs de es fr gl it ja nl pl pt pt_BR ru sk sv tr zh_CN zh_TW
84
.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
64
	@${MKDIR} ${PREFIX}/share/locale/${lang}/LC_MESSAGES
85
	@${MKDIR} ${PREFIX}/share/locale/${lang}/LC_MESSAGES
65
	${INSTALL_DATA} ${WRKSRC}/po/${lang}.mo \
86
	${INSTALL_DATA} ${WRKSRC}/po/${lang}.mo \
66
		${PREFIX}/share/locale/${lang}/LC_MESSAGES/mtpaint.mo
87
		${PREFIX}/share/locale/${lang}/LC_MESSAGES/mtpaint.mo
(-)graphics/mtpaint/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (mtpaint-3.31.tar.bz2) = 6274c93c36ec5c1fdc68dcf9fbf7b43b81c443e0f1059907b6c6143ce0ba7284
1
SHA256 (mtpaint-3.40.tar.bz2) = ef321d2b404839c7b909bdf5283eb22a37fbdd35b4cc9e380ddc400573d7c890
2
SIZE (mtpaint-3.31.tar.bz2) = 501744
2
SIZE (mtpaint-3.40.tar.bz2) = 600857
(-)graphics/mtpaint/files/patch-configure (+19 lines)
Line 0 Link Here
1
--- configure.bak	2011-12-30 03:08:17.000000000 +0900
2
+++ configure	2012-01-06 05:25:11.000000000 +0900
3
@@ -68,6 +68,7 @@
4
 	"tiff" )	NTIFF=YES;;
5
 	"notiff" )	NTIFF=NO;;
6
 	"statictiff" )	STATIC_TIFF=TIFF;;
7
+	"ft" )		NFT=YES;;
8
 	"noft" )	NFT=NO;;
9
 	"staticft" )	STATIC_FT=FreeType;;
10
 	"lcms" )	NCMS=LittleCMS;;
11
@@ -471,7 +472,7 @@
12
 	MARCH=
13
 	# And leave CFLAGS alone
14
 fi
15
-[ "$OPTS" != DEBUG ] && LDFLAGS="-s $LDFLAGS" # Strip debug info
16
+# [ "$OPTS" != DEBUG ] && LDFLAGS="-s $LDFLAGS" # Strip debug info
17
 # Set Windows-specific flags
18
 if [ "$OS" != "${OS#MinGW/}" ]
19
 then
(-)graphics/mtpaint/pkg-plist (+2 lines)
Lines 5-10 Link Here
5
%%NLS%%share/locale/es/LC_MESSAGES/mtpaint.mo
5
%%NLS%%share/locale/es/LC_MESSAGES/mtpaint.mo
6
%%NLS%%share/locale/fr/LC_MESSAGES/mtpaint.mo
6
%%NLS%%share/locale/fr/LC_MESSAGES/mtpaint.mo
7
%%NLS%%share/locale/gl/LC_MESSAGES/mtpaint.mo
7
%%NLS%%share/locale/gl/LC_MESSAGES/mtpaint.mo
8
%%NLS%%share/locale/hu/LC_MESSAGES/mtpaint.mo
8
%%NLS%%share/locale/it/LC_MESSAGES/mtpaint.mo
9
%%NLS%%share/locale/it/LC_MESSAGES/mtpaint.mo
9
%%NLS%%share/locale/ja/LC_MESSAGES/mtpaint.mo
10
%%NLS%%share/locale/ja/LC_MESSAGES/mtpaint.mo
10
%%NLS%%share/locale/nl/LC_MESSAGES/mtpaint.mo
11
%%NLS%%share/locale/nl/LC_MESSAGES/mtpaint.mo
Lines 14-19 Link Here
14
%%NLS%%share/locale/ru/LC_MESSAGES/mtpaint.mo
15
%%NLS%%share/locale/ru/LC_MESSAGES/mtpaint.mo
15
%%NLS%%share/locale/sk/LC_MESSAGES/mtpaint.mo
16
%%NLS%%share/locale/sk/LC_MESSAGES/mtpaint.mo
16
%%NLS%%share/locale/sv/LC_MESSAGES/mtpaint.mo
17
%%NLS%%share/locale/sv/LC_MESSAGES/mtpaint.mo
18
%%NLS%%share/locale/tl/LC_MESSAGES/mtpaint.mo
17
%%NLS%%share/locale/tr/LC_MESSAGES/mtpaint.mo
19
%%NLS%%share/locale/tr/LC_MESSAGES/mtpaint.mo
18
%%NLS%%share/locale/zh_CN/LC_MESSAGES/mtpaint.mo
20
%%NLS%%share/locale/zh_CN/LC_MESSAGES/mtpaint.mo
19
%%NLS%%share/locale/zh_TW/LC_MESSAGES/mtpaint.mo
21
%%NLS%%share/locale/zh_TW/LC_MESSAGES/mtpaint.mo

Return to bug 164159