Lines 2-56
Link Here
|
2 |
# $FreeBSD: head/graphics/gnofract4d/Makefile 412346 2016-04-01 14:00:51Z mat $ |
2 |
# $FreeBSD: head/graphics/gnofract4d/Makefile 412346 2016-04-01 14:00:51Z mat $ |
3 |
|
3 |
|
4 |
PORTNAME= gnofract4d |
4 |
PORTNAME= gnofract4d |
5 |
PORTVERSION= 3.14.1 |
5 |
DISTVERSIONPREFIX= V_ |
6 |
PORTREVISION= 3 |
6 |
DISTVERSION= 3_14_1 |
|
|
7 |
PORTREVISION= 4 |
7 |
CATEGORIES= graphics gnome |
8 |
CATEGORIES= graphics gnome |
8 |
MASTER_SITES= SF |
|
|
9 |
|
9 |
|
10 |
MAINTAINER= ports@FreeBSD.org |
10 |
MAINTAINER= ports@FreeBSD.org |
11 |
COMMENT= Weird GNOME fractal generator |
11 |
COMMENT= Weird GNOME fractal generator |
12 |
|
12 |
|
13 |
BROKEN= unfetchable |
|
|
14 |
|
15 |
LICENSE= BSD3CLAUSE |
13 |
LICENSE= BSD3CLAUSE |
16 |
|
14 |
|
|
|
15 |
BUILD_DEPENDS= docbook-xsl>0:textproc/docbook-xsl |
17 |
LIB_DEPENDS= libpng.so:graphics/png |
16 |
LIB_DEPENDS= libpng.so:graphics/png |
|
|
17 |
RUN_DEPENDS= xdg-open:devel/xdg-utils |
18 |
|
19 |
USE_GITHUB= yes |
20 |
GH_ACCOUNT= edyoung |
18 |
|
21 |
|
19 |
USES= desktop-file-utils jpeg pathfix pkgconfig python shared-mime-info |
22 |
USES= desktop-file-utils display:build jpeg pathfix pkgconfig \ |
20 |
USE_GNOME= gnomeprefix intlhack libgnomeui pygtk2 |
23 |
python shared-mime-info |
|
|
24 |
USE_GNOME= intlhack libxslt:build pygtk2 |
21 |
USE_PYTHON= distutils autoplist |
25 |
USE_PYTHON= distutils autoplist |
22 |
USE_GCC= yes |
|
|
23 |
|
26 |
|
24 |
CFLAGS+= -I${LOCALBASE}/include |
27 |
CFLAGS+= -I${LOCALBASE}/include |
25 |
|
28 |
|
|
|
29 |
PORTDOCS= README |
26 |
PLIST_FILES= man/man1/gnofract4d.1.gz |
30 |
PLIST_FILES= man/man1/gnofract4d.1.gz |
27 |
|
31 |
|
28 |
PORTDOCS= README |
|
|
29 |
OPTIONS_DEFINE= DOCS |
32 |
OPTIONS_DEFINE= DOCS |
30 |
|
33 |
|
31 |
.include <bsd.port.options.mk> |
|
|
32 |
|
33 |
post-patch: |
34 |
post-patch: |
34 |
@${REINPLACE_CMD} -e 's|/usr/include/|${LOCALBASE}/include/|; \ |
35 |
@${REINPLACE_CMD} -e \ |
35 |
/# doc files/,+2d; /"html"/,+1d' \ |
36 |
's|/usr/include/|${LOCALBASE}/include/| ; \ |
|
|
37 |
s|"gcc"|"${CC}"| ; \ |
38 |
s|"g++"|"${CXX}"| ; \ |
39 |
s|.stdc++..|| ; \ |
40 |
/# doc files/,+2d' \ |
36 |
${WRKSRC}/setup.py |
41 |
${WRKSRC}/setup.py |
37 |
@${REINPLACE_CMD} -e 's|"CC"|"${CC}"|; s|"gcc"|"${CC}"|' \ |
42 |
@${REINPLACE_CMD} -e \ |
38 |
${WRKSRC}/setup.py \ |
43 |
's|/usr/.*/xhtml/|${LOCALBASE}/share/xsl/docbook/xhtml/|' \ |
39 |
${WRKSRC}/fract4d/test_fractconfig.py \ |
44 |
${WRKSRC}/doc/gnofract4d-manual/C/gnofract4d.xsl |
|
|
45 |
@${REINPLACE_CMD} -e \ |
46 |
's|"gcc"|"${CC}"| ; \ |
47 |
s|-g -O3||' \ |
40 |
${WRKSRC}/fract4d/fc.py |
48 |
${WRKSRC}/fract4d/fc.py |
41 |
@${REINPLACE_CMD} -e 's|gcc|${CC}|' \ |
49 |
@${REINPLACE_CMD} -e \ |
42 |
${WRKSRC}/fract4d/test_codegen.py \ |
50 |
"s|'gcc'|'${CC}'| ; \ |
|
|
51 |
s|firefox |xdg-open |" \ |
43 |
${WRKSRC}/fract4d/fractconfig.py |
52 |
${WRKSRC}/fract4d/fractconfig.py |
|
|
53 |
@${REINPLACE_CMD} -e \ |
54 |
's|"gcc |"${CC} |' \ |
55 |
${WRKSRC}/fract4d/test_codegen.py |
56 |
@${REINPLACE_CMD} -e \ |
57 |
's|"gcc"|"${CC}"|' \ |
58 |
${WRKSRC}/fract4d/test_fractconfig.py |
59 |
|
60 |
post-build: |
61 |
@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} createdocs.py) |
44 |
|
62 |
|
45 |
post-install: |
63 |
post-install: |
|
|
64 |
(cd ${WRKSRC}/doc && ${INSTALL_MAN} gnofract4d.1 \ |
65 |
${STAGEDIR}${MAN1PREFIX}/man/man1) |
46 |
.for l in fract4d_stdlib fract4dc |
66 |
.for l in fract4d_stdlib fract4dc |
47 |
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/fract4d/${l}.so |
67 |
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/fract4d/${l}.so |
48 |
.endfor |
68 |
.endfor |
49 |
|
69 |
|
50 |
${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 \ |
70 |
post-install-DOCS-on: |
51 |
${STAGEDIR}${MAN1PREFIX}/man/man1/ |
|
|
52 |
|
53 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
71 |
@${MKDIR} ${STAGEDIR}${DOCSDIR} |
54 |
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} |
72 |
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} \ |
|
|
73 |
${STAGEDIR}${DOCSDIR}) |
55 |
|
74 |
|
56 |
.include <bsd.port.mk> |
75 |
.include <bsd.port.mk> |