- Fix the build with recent GCC [1]

- Convert to OPTIONS
- Put MANx section apart from build-related knobs

Reported by:	pointyhat [1]
This commit is contained in:
Alexey Dokuchaev 2007-06-13 11:38:35 +00:00
parent d6c326cd68
commit c4d54d68b0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=193389

View file

@ -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>