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

(-)graphics/gnofract4d/Makefile (-22 / +41 lines)
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>
(-)graphics/gnofract4d/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (gnofract4d-3.14.1.tar.gz) = dea77e4119a488cdc5ae29dc64f2975eaaa7bbaca84e1c02aa016ff1eb5c59dc
1
SHA256 (edyoung-gnofract4d-V_3_14_1_GH0.tar.gz) = 29f05d9b07f7b53bf250b0f81f74b76dbd68efc5d6ba71f4d55ef332f6b6f83d
2
SIZE (gnofract4d-3.14.1.tar.gz) = 884442
2
SIZE (edyoung-gnofract4d-V_3_14_1_GH0.tar.gz) = 4660808
(-)graphics/gnofract4d/pkg-descr (-5 / +5 lines)
Lines 1-7 Link Here
1
Gnofract 4D is a free, open source program which allows anyone to create
1
Gnofract 4D is a free, open source program which allows anyone to create
2
beautiful images called fractals. The images are automatically created by
2
beautiful images called fractals. The images are automatically created
3
the computer based on mathematical principles. These include the Mandelbrot
3
by the computer based on mathematical principles. These include the
4
and Julia sets and many more. You don't need to do any math: you can explore
4
Mandelbrot and Julia sets and many more. You don't need to do any math:
5
a universe of images just using a mouse.
5
you can explore a universe of images just using a mouse.
6
6
7
WWW: http://gnofract4d.sourceforge.net/
7
WWW: https://github.com/edyoung/gnofract4d

Return to bug 208712