Lines 6-46
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= mtpaint |
8 |
PORTNAME= mtpaint |
9 |
PORTVERSION= 3.21 |
9 |
PORTVERSION= 3.30 |
10 |
CATEGORIES= graphics |
10 |
CATEGORIES= graphics |
11 |
MASTER_SITES= SF |
11 |
MASTER_SITES= SF |
12 |
|
12 |
|
13 |
MAINTAINER= ports@FreeBSD.org |
13 |
MAINTAINER= ports@FreeBSD.org |
14 |
COMMENT= Simple painting program |
14 |
COMMENT= Simple painting program |
15 |
|
15 |
|
16 |
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \ |
16 |
LIB_DEPENDS= ungif.5:${PORTSDIR}/graphics/libungif \ |
17 |
ungif.5:${PORTSDIR}/graphics/libungif \ |
17 |
jasper.4:${PORTSDIR}/graphics/jasper \ |
18 |
jpeg.9:${PORTSDIR}/graphics/jpeg \ |
18 |
jpeg.9:${PORTSDIR}/graphics/jpeg \ |
19 |
tiff.4:${PORTSDIR}/graphics/tiff \ |
|
|
20 |
openjpeg.2:${PORTSDIR}/graphics/openjpeg \ |
19 |
openjpeg.2:${PORTSDIR}/graphics/openjpeg \ |
|
|
20 |
png.5:${PORTSDIR}/graphics/png \ |
21 |
tiff.4:${PORTSDIR}/graphics/tiff \ |
21 |
freetype.9:${PORTSDIR}/print/freetype2 |
22 |
freetype.9:${PORTSDIR}/print/freetype2 |
22 |
|
23 |
|
23 |
USE_BZIP2= yes |
24 |
USE_BZIP2= yes |
24 |
USE_GNOME= gtk20 |
25 |
USE_GNOME= gtk20 |
25 |
HAS_CONFIGURE= yes |
26 |
HAS_CONFIGURE= yes |
26 |
CPPFLAGS= -I${LOCALBASE}/include |
|
|
27 |
LDFLAGS= -L${LOCALBASE}/lib |
28 |
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" |
29 |
CONFIGURE_ARGS= --prefix=${PREFIX} --mandir=${MAN1PREFIX}/man/man1 \ |
27 |
CONFIGURE_ARGS= --prefix=${PREFIX} --mandir=${MAN1PREFIX}/man/man1 \ |
30 |
--locale=${PREFIX}/share/locale gif jpeg tiff slow \ |
28 |
--locale=${PREFIX}/share/locale \ |
31 |
gtk2 intl man |
29 |
gtk2 cflags slow asneeded gif jpeg jp2 tiff man |
32 |
MAN1= ${PORTNAME}.1 |
30 |
|
33 |
MANCOMPRESSED= yes |
31 |
MANCOMPRESSED= yes |
|
|
32 |
MAN1= ${PORTNAME}.1 |
34 |
|
33 |
|
35 |
.if !defined(WITHOUT_NLS) |
34 |
CFLAGS+= -DU_FREETYPE |
|
|
35 |
|
36 |
.if defined(WITHOUT_NLS) |
37 |
PLIST_SUB+= NLS="@comment " |
38 |
.else |
36 |
USE_GETTEXT= yes |
39 |
USE_GETTEXT= yes |
|
|
40 |
CONFIGURE_ARGS+=intl |
37 |
PLIST_SUB+= NLS="" |
41 |
PLIST_SUB+= NLS="" |
38 |
.else |
|
|
39 |
CONFIGURE_ARGS+=--disable-nls |
40 |
PLIST_SUB+= NLS="@comment " |
41 |
.endif |
42 |
.endif |
42 |
|
43 |
|
43 |
post-patch: |
44 |
post-patch: |
44 |
@${REINPLACE_CMD} -e 's|-o /dev/null|-o `mktemp -t /tmp`|' ${WRKSRC}/configure |
45 |
@${REINPLACE_CMD} -e 's|="/usr"|="${LOCALBASE}"|g ; \ |
|
|
46 |
s|/usr/X11R6|${LOCALBASE}|g ; \ |
47 |
s|GTK_LIB -s|GTK_LIB|g' ${WRKSRC}/configure |
48 |
|
49 |
do-install: |
50 |
${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} \ |
51 |
${PREFIX}/bin |
52 |
${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1.gz \ |
53 |
${MANPREFIX}/man/man1 |
54 |
@${MKDIR} ${PREFIX}/share/applications |
55 |
${INSTALL_DATA} ${WRKSRC}/doc/${PORTNAME}.desktop \ |
56 |
${PREFIX}/share/applications |
57 |
${INSTALL_DATA} ${WRKSRC}/doc/${PORTNAME}.png \ |
58 |
${PREFIX}/share/pixmaps |
59 |
.if !defined(WITHOUT_NLS) |
60 |
.for lang in cs de es fr gl it ja nl pl pt pt_BR ru sk sv tr zh_CN zh_TW |
61 |
@${MKDIR} ${PREFIX}/share/locale/${lang}/LC_MESSAGES |
62 |
${INSTALL_DATA} ${WRKSRC}/po/${lang}.mo \ |
63 |
${PREFIX}/share/locale/${lang}/LC_MESSAGES/mtpaint.mo |
64 |
.endfor |
65 |
.endif |
45 |
|
66 |
|
46 |
.include <bsd.port.mk> |
67 |
.include <bsd.port.mk> |