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 |