Hello
I'm FreeBSD Maintainer for Gnofract 4D
http://www.freshports.org/graphics/gnofract4d/
I must use in Makefile that good works Gnofract 4D 3.14.1 in FreeBSD.
Patch that not install unconditionally Documentation.
Add DOCS and Option
PORTDOCS= README OPTIONS_DEFINE= DOCS
Remove DOCS that are not default installed and that is used proper /usr/local/include
@${REINPLACE_CMD} -e 's|/usr/include/|${LOCALBASE}/include/|; \ /# doc files/,+2d' \ ${WRKSRC}/setup.py
Patch bad gcc usage, better is to use ${CC} instead of gcc or CC :)
@${REINPLACE_CMD} -e 's|"CC"|"${CC}"|; s|"gcc"|"${CC}"|' \ ${WRKSRC}/setup.py \ ${WRKSRC}/fract4d/test_fractconfig.py \ ${WRKSRC}/fract4d/fc.py @${REINPLACE_CMD} -e 's|gcc|${CC}|' \ ${WRKSRC}/fract4d/test_codegen.py \ ${WRKSRC}/fract4d/fractconfig.py
Strip library
post-install: .for l in fract4d_stdlib fract4dc ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/fract4d/${l}.so .endfor
And proper install man page and Documentation
${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 \ ${STAGEDIR}${MAN1PREFIX}/man/man1/ @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}