aboutsummaryrefslogtreecommitdiff
path: root/graphics/pixie
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2013-07-20 21:34:14 +0000
committerMartin Wilke <miwi@FreeBSD.org>2013-07-20 21:34:14 +0000
commit6841aa6a4b1a941c836fc829693ca6e490e05376 (patch)
tree5ccfcf9c67f0bd2d8f6f9be587a1dde570560077 /graphics/pixie
parentd1b9e88cf0fe4d63f0fc7aeb641e0a7c62899b31 (diff)
downloadports-6841aa6a4b1a941c836fc829693ca6e490e05376.tar.gz
ports-6841aa6a4b1a941c836fc829693ca6e490e05376.zip
Notes
Diffstat (limited to 'graphics/pixie')
-rw-r--r--graphics/pixie/Makefile29
-rw-r--r--graphics/pixie/files/patch-src__ri__rib.l29
-rw-r--r--graphics/pixie/files/patch-src__ri__rib.y11
-rw-r--r--graphics/pixie/files/patch-src__ri__ribOut.cpp11
-rw-r--r--graphics/pixie/files/patch-src__ri__ribOut.h20
5 files changed, 89 insertions, 11 deletions
diff --git a/graphics/pixie/Makefile b/graphics/pixie/Makefile
index 8fa5fced693a..5d358f174fcd 100644
--- a/graphics/pixie/Makefile
+++ b/graphics/pixie/Makefile
@@ -3,21 +3,22 @@
PORTNAME= pixie
PORTVERSION= 2.2.6
-PORTREVISION= 5
+PORTREVISION= 6
CATEGORIES= graphics
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/Pixie%20${PORTVERSION}
DISTNAME= Pixie-src-${PORTVERSION}
EXTRACT_SUFX= .tgz
MAINTAINER= ports@FreeBSD.org
-COMMENT= A photorealistic renderer with Pixar's RenderMan-like interface
+COMMENT= Photorealistic renderer with Pixar's RenderMan-like interface
+
+LICENSE= LGPL21 # (or later)
-BUILD_DEPENDS= flex:${PORTSDIR}/textproc/flex
LIB_DEPENDS= IlmImf:${PORTSDIR}/graphics/OpenEXR \
- tiff.4:${PORTSDIR}/graphics/tiff \
- fltk_gl.1:${PORTSDIR}/x11-toolkits/fltk
+ tiff:${PORTSDIR}/graphics/tiff \
+ fltk_gl:${PORTSDIR}/x11-toolkits/fltk
-NOT_FOR_ARCHS= amd64
+OPTIONS_DEFINE= DOCS
WRKSRC= ${WRKDIR}/Pixie
@@ -40,8 +41,8 @@ MAN1= rndr.1 sdrc.1 sdrinfo.1 texmake.1
PORTDOCS= *
CFLAGS+= -fPIC
-CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
-LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
.include <bsd.port.pre.mk>
@@ -49,8 +50,14 @@ LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
BROKEN= Does not compile on sparc64
.endif
+.if ${OSVERSION} < 1000033
+BUILD_DEPENDS+= ${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex
+CONFIGURE_ENV+= ac_cv_path_FLEX="${LOCALBASE}/bin/flex"
+.endif
+
post-patch:
- @${REINPLACE_CMD} -e '/test/s|==|=|g' ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e '/test/s|==|=|g ; \
+ s|-lpthread|-pthread|g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e '/^SUBDIRS/s|doc||g ; \
/^install-data-am:/s|install-nobase_docDATA||g' ${WRKSRC}/Makefile.in
.for file in src/ri/Makefile.in src/sdr/Makefile.in
@@ -58,9 +65,9 @@ post-patch:
.endfor
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
-.for file in AUTHORS ChangeLog DEVNOTES LICENSE NEWS README
+.for file in AUTHORS ChangeLog DEVNOTES NEWS README
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
@(cd ${WRKSRC}/doc && ${FIND} . ! -name "*Makefile*" | \
diff --git a/graphics/pixie/files/patch-src__ri__rib.l b/graphics/pixie/files/patch-src__ri__rib.l
new file mode 100644
index 000000000000..9ed7ff5b6e95
--- /dev/null
+++ b/graphics/pixie/files/patch-src__ri__rib.l
@@ -0,0 +1,29 @@
+--- src/ri/rib.l.orig
++++ src/ri/rib.l
+@@ -17,7 +17,7 @@
+
+ // Overwrite the YYinput so that it uses libz
+ #undef YY_INPUT
+-#define YY_INPUT(buf, retval, maxlen) if ( (retval = gzread(ribin,buf,maxlen)) < 0) \
++#define YY_INPUT(buf, retval, maxlen) if ( (retval = gzread((gzFile)ribin,buf,maxlen)) < 0) \
+ YY_FATAL_ERROR( "input in flex scanner failed" );
+
+ #endif
+@@ -223,7 +223,7 @@
+ TRibFile *nextFile = ribStack->next;
+ rib_delete_buffer( YY_CURRENT_BUFFER );
+ #ifdef HAVE_ZLIB
+- gzclose(ribin);
++ gzclose((gzFile)ribin);
+ #else
+ fclose(ribin);
+ #endif
+@@ -243,7 +243,7 @@
+ rib_delete_buffer( YY_CURRENT_BUFFER );
+
+ #ifdef HAVE_ZLIB
+- gzclose(ribin);
++ gzclose((gzFile)ribin);
+ #else
+ fclose(ribin);
+ #endif
diff --git a/graphics/pixie/files/patch-src__ri__rib.y b/graphics/pixie/files/patch-src__ri__rib.y
new file mode 100644
index 000000000000..73b1b9cc1338
--- /dev/null
+++ b/graphics/pixie/files/patch-src__ri__rib.y
@@ -0,0 +1,11 @@
+--- src/ri/rib.y.orig
++++ src/ri/rib.y
+@@ -2940,7 +2940,7 @@
+
+ if (ribin != NULL) {
+ #ifdef HAVE_ZLIB
+- gzclose(ribin);
++ gzclose((gzFile)ribin);
+ #else
+ fclose(ribin);
+ #endif
diff --git a/graphics/pixie/files/patch-src__ri__ribOut.cpp b/graphics/pixie/files/patch-src__ri__ribOut.cpp
new file mode 100644
index 000000000000..9f4e2d08bdfa
--- /dev/null
+++ b/graphics/pixie/files/patch-src__ri__ribOut.cpp
@@ -0,0 +1,11 @@
+--- src/ri/ribOut.cpp.orig
++++ src/ri/ribOut.cpp
+@@ -162,7 +162,7 @@
+
+ #ifdef HAVE_ZLIB
+ if (outputCompressed) {
+- gzclose(outFile);
++ gzclose((gzFile)outFile);
+ } else {
+ fclose(outFile);
+ }
diff --git a/graphics/pixie/files/patch-src__ri__ribOut.h b/graphics/pixie/files/patch-src__ri__ribOut.h
new file mode 100644
index 000000000000..9442bdcf165d
--- /dev/null
+++ b/graphics/pixie/files/patch-src__ri__ribOut.h
@@ -0,0 +1,20 @@
+--- src/ri/ribOut.h.orig
++++ src/ri/ribOut.h
+@@ -237,7 +237,7 @@
+ const int l = vsprintf(scratch,mes,args);
+
+ #ifdef HAVE_ZLIB
+- if (outputCompressed) gzwrite(outFile,scratch,l);
++ if (outputCompressed) gzwrite((gzFile)outFile,scratch,l);
+ else fwrite(scratch,1,l,outFile);
+ #else
+ fwrite(scratch,1,l,outFile);
+@@ -258,7 +258,7 @@
+ const int l = vsprintf(scratch,mes,args);
+
+ #ifdef HAVE_ZLIB
+- if (outputCompressed) gzwrite(outFile,scratch,l);
++ if (outputCompressed) gzwrite((gzFile)outFile,scratch,l);
+ else fwrite(scratch,1,l,outFile);
+ #else
+ fwrite(scratch,1,l,outFile);