2001-05-31 06:10:36 -04:00
|
|
|
# New ports collection makefile for: Open Scene Graph
|
|
|
|
# Date created: 26 Apr 2001
|
|
|
|
# Whom: Randall Hopper <aa8vb@nc.rr.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= osg
|
|
|
|
PORTVERSION= 0.8.38
|
|
|
|
CATEGORIES= graphics
|
|
|
|
MASTER_SITES= http://www.openscenegraph.org/download/snapshots/
|
|
|
|
DISTNAME= ${PORTNAME}_src-0.8-38
|
|
|
|
|
|
|
|
MAINTAINER= aa8vb@nc.rr.com
|
|
|
|
|
2001-09-10 22:22:51 -04:00
|
|
|
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
|
2001-09-10 16:47:25 -04:00
|
|
|
jpeg.9:${PORTSDIR}/graphics/jpeg
|
2001-09-01 05:03:20 -04:00
|
|
|
|
2001-05-31 06:10:36 -04:00
|
|
|
WRKSRC= ${WRKDIR}/OpenSceneGraph-0.8
|
|
|
|
|
|
|
|
USE_X_PREFIX= yes
|
|
|
|
USE_MESA= yes
|
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
MAKE_ENV= CXX="${CXX}" \
|
|
|
|
PTHREAD_LIBS="${PTHREAD_LIBS}" \
|
|
|
|
PTHREAD_CFLAGS="${PTHREAD_CFLAGS}"
|
|
|
|
|
|
|
|
ALL_TARGET= freebsd
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
.for suf in defs rules
|
|
|
|
@${LN} -sf ${WRKSRC}/Make/make${suf}.linux \
|
|
|
|
${WRKSRC}/Make/make${suf}.freebsd
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/bin/* ${PREFIX}/bin
|
|
|
|
${TAR} -C ${WRKSRC}/include -c -f - . | \
|
|
|
|
${TAR} -C ${PREFIX}/include --unlink -x -f -
|
|
|
|
.for lib in osg osgUtil osgGLUT
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/lib/lib${lib}.so \
|
|
|
|
${PREFIX}/lib/lib${lib}.so.1
|
|
|
|
${LN} -sf lib${lib}.so.1 ${PREFIX}/lib/lib${lib}.so
|
|
|
|
.endfor
|
|
|
|
${MKDIR} ${PREFIX}/lib/osgPlugins
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/lib/osgPlugins/*.so \
|
|
|
|
${PREFIX}/lib/osgPlugins
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/osg
|
|
|
|
${TAR} -C ${WRKSRC}/doc -c -f - . | \
|
|
|
|
${TAR} -C ${PREFIX}/share/doc/osg --unlink -x -f -
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|