freebsd-ports/graphics/xrml/Makefile
Martin Wilke 3e4ed01146 - Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+

Thanks to all Helpers:
	Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
	ehaupt, nox, itetcu, flz, pav

PR:		116263
Tested on:	pointyhat
Approved by:	portmgr (pav)
2008-04-19 17:56:05 +00:00

99 lines
2.8 KiB
Makefile

# New ports collection makefile for: xrml
# Date created: 23 July 2002
# Whom: Igor Pokrovsky <tiamat@telegraph.spb.ru>
#
# $FreeBSD$
#
PORTNAME= xrml
PORTVERSION= 0.5.3
PORTREVISION= 3
CATEGORIES= graphics
MASTER_SITES= ftp://ftp.cs.kuleuven.ac.be/pub/graphics/software/RenderPark/
DISTNAME= ${PORTNAME}
DIST_SUBDIR= RenderPark
MAINTAINER= ports@FreeBSD.org
COMMENT= Extensible scene graph library based on VRML'97
WRKSRC= ${WRKDIR}/${PORTNAME:U}
USE_GMAKE= yes
USE_GL= yes
USE_MOTIF= yes
USE_LDCONFIG= yes
USE_GCC= 2.95
NOT_FOR_ARCHS= amd64 sparc64 ia64
.if !defined(WITH_EXAMPLES)
PLIST_SUB= WITH_EXAMPLES="@comment "
.else
PLIST_SUB= WITH_EXAMPLES=""
.endif
.ifndef (WITH_EXAMPLES)
pre-everything::
@${ECHO_MSG} "You can define WITH_EXAMPLES=yes to install example VRML files"
.endif
pre-patch:
@${CP} -f ${WRKSRC}/Config.Linux ${WRKSRC}/Config.site
post-patch:
@${REINPLACE_CMD} -e 's|%%CC%%|${CC}|g ; \
s|%%CXX%%|${CXX}|g ; \
s|%%CXXFLAGS%%|${CXXFLAGS}|g ; \
s|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/Config.site
pre-build:
${GMAKE} -C ${WRKSRC}/FILTERS link_includes
${GMAKE} -C ${WRKSRC}/XRML link_includes
${GMAKE} -C ${WRKSRC}/PROGS/vrmldump clean
do-install:
@${MKDIR} ${PREFIX}/include/${PORTNAME}
${INSTALL_DATA} ${WRKSRC}/include/*.[hH] ${PREFIX}/include/${PORTNAME}
.for i in cso mgf nff vrml2_utf8
@${MKDIR} ${PREFIX}/include/${PORTNAME}/${i}
${INSTALL_DATA} ${WRKSRC}/include/${i}/* \
${PREFIX}/include/${PORTNAME}/${i}
.endfor
${INSTALL_PROGRAM} ${WRKSRC}/bin/* ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/lib/lib${PORTNAME}.so.0.5 \
${PREFIX}/lib/lib${PORTNAME}.so.0
${LN} -fs lib${PORTNAME}.so.0 ${PREFIX}/lib/lib${PORTNAME}.so
@${STRIP_CMD} ${WRKSRC}/lib/*.a
${INSTALL_DATA} ${WRKSRC}/lib/*.a ${PREFIX}/lib
.ifdef (WITH_EXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
.for i in wrl ppm gz mgf
${INSTALL_DATA} ${WRKSRC}/TEST/*.${i} ${EXAMPLESDIR}
.endfor
${INSTALL_DATA} ${WRKSRC}/TEST/plotfunc.c ${EXAMPLESDIR}
.endif
.ifndef (NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/DOC/*.html ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/DOC/nodeapi ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/DOC/nodegen ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/DOC/status ${DOCSDIR}
@${MKDIR} ${DOCSDIR}/PhBRML
${INSTALL_DATA} ${WRKSRC}/DOC/PhBRML/*.html ${DOCSDIR}/PhBRML
${INSTALL_DATA} ${WRKSRC}/DOC/PhBRML/2ndtextured.gif ${DOCSDIR}/PhBRML
${INSTALL_DATA} ${WRKSRC}/DOC/PhBRML/*.wrl ${DOCSDIR}/PhBRML
@${MKDIR} ${DOCSDIR}/VRML97
${INSTALL_DATA} ${WRKSRC}/DOC/VRML97/*.html ${DOCSDIR}/VRML97
@${MKDIR} ${DOCSDIR}/VRML97/Images
.for i in gif jpg
${INSTALL_DATA} ${WRKSRC}/DOC/VRML97/Images/*.${i} ${DOCSDIR}/VRML97/Images
.endfor
@${MKDIR} ${DOCSDIR}/VRML97/part1
.for i in html wrl wav
${INSTALL_DATA} ${WRKSRC}/DOC/VRML97/part1/*.${i} ${DOCSDIR}/VRML97/part1
.endfor
${LN} -sf VRML97 ${DOCSDIR}/VRML
.endif
.include <bsd.port.mk>