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

(-)graphics/pixie/Makefile (-83 / +37 lines)
Lines 6-12 Link Here
6
#
6
#
7
7
8
PORTNAME=	pixie
8
PORTNAME=	pixie
9
PORTVERSION=	2.2.4
9
PORTVERSION=	2.2.6
10
CATEGORIES=	graphics
10
CATEGORIES=	graphics
11
MASTER_SITES=	SF
11
MASTER_SITES=	SF
12
DISTNAME=	Pixie-src-${PORTVERSION}
12
DISTNAME=	Pixie-src-${PORTVERSION}
Lines 15-53 Link Here
15
MAINTAINER=	ports@FreeBSD.org
15
MAINTAINER=	ports@FreeBSD.org
16
COMMENT=	A photorealistic renderer with Pixar's RenderMan-like interface
16
COMMENT=	A photorealistic renderer with Pixar's RenderMan-like interface
17
17
18
BUILD_DEPENDS=	flex:${PORTSDIR}/textproc/flex \
18
BUILD_DEPENDS=	flex:${PORTSDIR}/textproc/flex
19
		bison:${PORTSDIR}/devel/bison
19
LIB_DEPENDS=	IlmImf.6:${PORTSDIR}/graphics/OpenEXR \
20
LIB_DEPENDS=	tiff.4:${PORTSDIR}/graphics/tiff \
20
		tiff.4:${PORTSDIR}/graphics/tiff \
21
		fltk_gl.1:${PORTSDIR}/x11-toolkits/fltk \
21
		fltk_gl.1:${PORTSDIR}/x11-toolkits/fltk
22
		IlmImf.6:${PORTSDIR}/graphics/OpenEXR
23
22
24
NOT_FOR_ARCHS=	amd64
23
NOT_FOR_ARCHS=	amd64
25
24
26
PORTDOCS=*
27
USE_GL=		yes
28
ACLOCAL_ARGS=	--acdir=${ACLOCAL_DIR} -I ${LOCALBASE}/share/aclocal
29
USE_AUTOTOOLS=	autoconf:262 aclocal:19 automake:19 libtool:15
30
CONFIGURE_ENV=	CFLAGS="-O0 -fPIC -pipe -I${LOCALBASE}/include" \
31
		CXXFLAGS="-O0 -pipe -fPIC -I${LOCALBASE}/include \
32
			-I${LOCALBASE}/include/OpenEXR" \
33
		LDFLAGS="-L${LOCALBASE}/lib" \
34
		LIBS="${PTHREAD_LIBS}"
35
CONFIGURE_ARGS+=	--with-docdir=${PREFIX}/share/doc/${PORTNAME} \
36
	--with-shaderdir=${PREFIX}/share/${PORTNAME}/shaders \
37
	--with-modeldir=${PREFIX}/share/${PORTNAME} \
38
	--with-texturedir=${PREFIX}/share/${PORTNAME} \
39
	--with-proceduraldir=${PREFIX}/share/${PORTNAME} \
40
	--with-displaysdir=${PREFIX}/lib/${PORTNAME} \
41
	--with-openexr=${LOCALBASE}/lib \
42
	--enable-openexr-threads --disable-openexrtest
43
44
USE_LDCONFIG=	${LOCALBASE}/lib/${PORTNAME}
45
WRKSRC=		${WRKDIR}/Pixie
25
WRKSRC=		${WRKDIR}/Pixie
46
26
47
PIXIE_EXES=	precomp rndr sdrc sdrinfo show texmake
27
USE_GNOME=	gnomehack
48
PIXIE_SHLIBS=	file framebuffer rgbe
28
USE_GL=		glu
49
29
USE_BISON=	build
50
SUB_LIST+=	PORTNAME=${PORTNAME}
30
USE_AUTOTOOLS=	libtool:15
31
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
32
CONFIGURE_ARGS=	--includedir=${PREFIX}/include/pixie \
33
		--libdir=${PREFIX}/lib/pixie \
34
		--with-docdir=${DOCSDIR} \
35
		--with-shaderdir=${DATADIR}/shaders \
36
		--with-ribdir=${DATADIR}/ribs \
37
		--with-texturedir=${DATADIR}/textures \
38
		--with-displaysdir=${PREFIX}/lib/pixie/displays \
39
		--with-modulesdir=${PREFIX}/lib/pixie/modules \
40
		--with-openexr-prefix=${LOCALBASE} \
41
		--enable-openexr-threads
42
USE_LDCONFIG=	${PREFIX}/lib/${PORTNAME}
43
44
MAN1=		rndr.1 sdrc.1 sdrinfo.1 texmake.1
45
PORTDOCS=	*
46
47
CFLAGS+=	-fPIC
48
CPPFLAGS=	-I${LOCALBASE}/include ${PTHREAD_CFLAGS}
49
LDFLAGS=	-L${LOCALBASE}/lib ${PTHREAD_LIBS}
51
50
52
.include <bsd.port.pre.mk>
51
.include <bsd.port.pre.mk>
53
52
Lines 56-117 Link Here
56
.endif
55
.endif
57
56
58
post-patch:
57
post-patch:
59
	@${FIND} -X ${WRKSRC} -name '*.cpp' -or -name '*.h' | \
58
	@${REINPLACE_CMD} -e '/test/s|==|=|g' ${WRKSRC}/configure
60
		${XARGS} ${REINPLACE_CMD} -i '' -e 's|malloc\.h|stdlib\.h|g'
59
	@${REINPLACE_CMD} -e '/^SUBDIRS/s|doc||g' ${WRKSRC}/Makefile.in
61
60
.for file in src/ri/Makefile.in src/sdr/Makefile.in
62
pre-configure:
61
	@${REINPLACE_CMD} -e '/^includedir/s|=.*$$|= @includedir@|g' ${WRKSRC}/${file}
63
	@${REINPLACE_CMD} -e '/^_LT_AC_SHELL_INIT/d' ${WRKSRC}/aclocal.m4
64
65
do-install:
66
# exes
67
.for i in ${PIXIE_EXES}
68
	if [ "`${FILE} -b ${WRKSRC}/src/${i}/${i} | ${GREP} script`" ]; then \
69
	  ${INSTALL_PROGRAM} ${WRKSRC}/src/${i}/.libs/${i} ${PREFIX}/bin; \
70
	else \
71
	  ${INSTALL_PROGRAM} ${WRKSRC}/src/${i}/${i} ${PREFIX}/bin; \
72
	fi;
73
.endfor
74
75
# libs
76
	# avoid conflicts by installing in separate dir
77
	@${INSTALL} -d ${PREFIX}/lib/${PORTNAME}
78
.for i in common
79
	${INSTALL_DATA} ${WRKSRC}/src/${i}/.libs/libpixie${i}.a \
80
		${PREFIX}/lib/${PORTNAME}
81
	${INSTALL_PROGRAM} ${WRKSRC}/src/${i}/.libs/libpixie${i}.so.0 \
82
		${PREFIX}/lib/${PORTNAME}
83
	${LN} -sf ${PREFIX}/lib/${PORTNAME}/libpixie${i}.so.0 \
84
		${PREFIX}/lib/${PORTNAME}/libpixie${i}.so
85
.endfor
86
.for i in sdr ri
87
	${INSTALL_DATA} ${WRKSRC}/src/${i}/.libs/lib${i}.a \
88
		${PREFIX}/lib/${PORTNAME}
89
	${INSTALL_PROGRAM} ${WRKSRC}/src/${i}/.libs/lib${i}.so.0 \
90
		${PREFIX}/lib/${PORTNAME}
91
	${LN} -sf ${PREFIX}/lib/${PORTNAME}/lib${i}.so.0 \
92
		${PREFIX}/lib/${PORTNAME}/lib${i}.so
93
.endfor
94
95
.for i in ${PIXIE_SHLIBS}
96
	${INSTALL_PROGRAM} ${WRKSRC}/src/${i}/.libs/${i}.so \
97
		${PREFIX}/lib/${PORTNAME}
98
.endfor
99
100
# includes
101
	@${INSTALL} -d ${PREFIX}/include/${PORTNAME}
102
	@${INSTALL_DATA} ${WRKSRC}/src/sdr/sdr.h ${PREFIX}/include/${PORTNAME}
103
.for i in dlo dsply implicit ri shadeop
104
	${INSTALL_DATA} ${WRKSRC}/src/ri/${i}.h ${PREFIX}/include/${PORTNAME}
105
.endfor
62
.endfor
106
63
107
# shaders
64
post-install:
108
	@${INSTALL} -d ${DATADIR}
65
.if !defined(NOPORTDOCS)
109
	@${INSTALL} -d ${DATADIR}/shaders
66
	@${MKDIR} ${DOCSDIR}
110
	@${INSTALL_DATA} ${WRKSRC}/shaders/* ${DATADIR}/shaders
67
	@(cd ${WRKSRC}/doc && ${FIND} . ! -name "*Makefile*" | \
111
68
		${CPIO} -dump -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR})
112
# docs
113
.ifndef (NOPORTDOCS)
114
	@cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${DOCSDIR}
115
.endif
69
.endif
116
70
117
.include <bsd.port.post.mk>
71
.include <bsd.port.post.mk>
(-)graphics/pixie/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (Pixie-src-2.2.4.tgz) = adc0be52806a885910456886322fec41
1
MD5 (Pixie-src-2.2.6.tgz) = e2063e35d88c25c4b22b954af31ad87d
2
SHA256 (Pixie-src-2.2.4.tgz) = a998906d0640ca6838baaae55ec394eb24d851719969a28e7e66bb9db7a1debf
2
SHA256 (Pixie-src-2.2.6.tgz) = ffbbc404265aff3d4c0303ec91549708ffba8edefc0368ac119ae2e588f35037
3
SIZE (Pixie-src-2.2.4.tgz) = 10106615
3
SIZE (Pixie-src-2.2.6.tgz) = 9993504
(-)graphics/pixie/pkg-descr (-1 / +1 lines)
Lines 18-24 Link Here
18
* Global illumination
18
* Global illumination
19
* Photon mapping
19
* Photon mapping
20
20
21
WWW:	http://pixie.sourceforge.net/
21
WWW:	http://www.renderpixie.com/
22
22
23
- Igor Pokrovsky
23
- Igor Pokrovsky
24
tiamat@comset.net
24
tiamat@comset.net
(-)graphics/pixie/pkg-plist (-4 / +21 lines)
Lines 1-4 Link Here
1
bin/precomp
2
bin/rndr
1
bin/rndr
3
bin/sdrc
2
bin/sdrc
4
bin/sdrinfo
3
bin/sdrinfo
Lines 7-27 Link Here
7
include/pixie/dlo.h
6
include/pixie/dlo.h
8
include/pixie/dsply.h
7
include/pixie/dsply.h
9
include/pixie/implicit.h
8
include/pixie/implicit.h
9
include/pixie/ptcapi.h
10
include/pixie/ri.h
10
include/pixie/ri.h
11
include/pixie/sdr.h
11
include/pixie/sdr.h
12
include/pixie/shadeop.h
12
include/pixie/shadeop.h
13
lib/pixie/file.so
13
lib/pixie/displays/file.a
14
lib/pixie/framebuffer.so
14
lib/pixie/displays/file.la
15
lib/pixie/displays/file.so
16
lib/pixie/displays/framebuffer.a
17
lib/pixie/displays/framebuffer.la
18
lib/pixie/displays/framebuffer.so
19
lib/pixie/displays/openexr.a
20
lib/pixie/displays/openexr.la
21
lib/pixie/displays/openexr.so
22
lib/pixie/displays/rgbe.a
23
lib/pixie/displays/rgbe.la
24
lib/pixie/displays/rgbe.so
15
lib/pixie/libpixiecommon.a
25
lib/pixie/libpixiecommon.a
26
lib/pixie/libpixiecommon.la
16
lib/pixie/libpixiecommon.so
27
lib/pixie/libpixiecommon.so
17
lib/pixie/libpixiecommon.so.0
28
lib/pixie/libpixiecommon.so.0
18
lib/pixie/libri.a
29
lib/pixie/libri.a
30
lib/pixie/libri.la
19
lib/pixie/libri.so
31
lib/pixie/libri.so
20
lib/pixie/libri.so.0
32
lib/pixie/libri.so.0
21
lib/pixie/libsdr.a
33
lib/pixie/libsdr.a
34
lib/pixie/libsdr.la
22
lib/pixie/libsdr.so
35
lib/pixie/libsdr.so
23
lib/pixie/libsdr.so.0
36
lib/pixie/libsdr.so.0
24
lib/pixie/rgbe.so
37
lib/pixie/modules/gui.a
38
lib/pixie/modules/gui.la
39
lib/pixie/modules/gui.so
25
%%DATADIR%%/shaders/ambientindirect.sdr
40
%%DATADIR%%/shaders/ambientindirect.sdr
26
%%DATADIR%%/shaders/ambientindirect.sl
41
%%DATADIR%%/shaders/ambientindirect.sl
27
%%DATADIR%%/shaders/ambientlight.sdr
42
%%DATADIR%%/shaders/ambientlight.sdr
Lines 78-82 Link Here
78
%%DATADIR%%/shaders/spotlight.sl
93
%%DATADIR%%/shaders/spotlight.sl
79
@dirrm %%DATADIR%%/shaders
94
@dirrm %%DATADIR%%/shaders
80
@dirrm %%DATADIR%%
95
@dirrm %%DATADIR%%
96
@dirrm lib/pixie/modules
97
@dirrm lib/pixie/displays
81
@dirrm lib/pixie
98
@dirrm lib/pixie
82
@dirrm include/pixie
99
@dirrm include/pixie

Return to bug 137010