aboutsummaryrefslogtreecommitdiff
path: root/graphics/giram
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2007-06-13 11:38:35 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2007-06-13 11:38:35 +0000
commitc4d54d68b0a02b5038248babd5045e79b08d1bf3 (patch)
tree84e39f2eb99368cd00bf7b30435ebb81a3e01d71 /graphics/giram
parentd6c326cd680b28631e4eb59ae5dfe2ee4ae1e5e9 (diff)
downloadports-c4d54d68b0a02b5038248babd5045e79b08d1bf3.tar.gz
ports-c4d54d68b0a02b5038248babd5045e79b08d1bf3.zip
- Fix the build with recent GCC [1]
- Convert to OPTIONS - Put MANx section apart from build-related knobs Reported by: pointyhat [1]
Notes
Notes: svn path=/head/; revision=193389
Diffstat (limited to 'graphics/giram')
-rw-r--r--graphics/giram/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/graphics/giram/Makefile b/graphics/giram/Makefile
index 42d8ff805bf5..ba6979eb044a 100644
--- a/graphics/giram/Makefile
+++ b/graphics/giram/Makefile
@@ -29,7 +29,10 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
CONFIGURE_ARGS= --datadir="${PREFIX}/lib" \
--with-tutorial-path="${DOCSDIR}" \
--with-lib3ds-prefix="${LOCALBASE}"
-MAN1= giram.1
+
+OPTIONS= POVRAY31 "Build against POV-Ray 3.1" off
+
+.include <bsd.port.pre.mk>
.if defined(WITH_POVRAY31)
BUILD_DEPENDS+= povray:${PORTSDIR}/graphics/povray31
@@ -39,10 +42,15 @@ BUILD_DEPENDS+= povray:${PORTSDIR}/graphics/povray
RUN_DEPENDS+= povray:${PORTSDIR}/graphics/povray
.endif
+MAN1= giram.1
+
+post-patch:
+ @${REINPLACE_CMD} -e '36s,static ,,' ${WRKSRC}/src/tools/tool_disc.c
+
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/samples/*.pov ${EXAMPLESDIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>