aboutsummaryrefslogtreecommitdiff
path: root/graphics/osg-devel/Makefile
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2002-05-25 17:38:07 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2002-05-25 17:38:07 +0000
commit7208062308330fbe2cef02391dae55e843df4302 (patch)
tree9d5e264bd1c16b3fad8e8b8ba6eea60e902c5dfc /graphics/osg-devel/Makefile
parent01715bdec8196d4bc755e3e19f3ea77b5b43384f (diff)
downloadports-7208062308330fbe2cef02391dae55e843df4302.tar.gz
ports-7208062308330fbe2cef02391dae55e843df4302.zip
Notes
Diffstat (limited to 'graphics/osg-devel/Makefile')
-rw-r--r--graphics/osg-devel/Makefile40
1 files changed, 12 insertions, 28 deletions
diff --git a/graphics/osg-devel/Makefile b/graphics/osg-devel/Makefile
index 93a7ceeddc04..7f04f6b1ab2e 100644
--- a/graphics/osg-devel/Makefile
+++ b/graphics/osg-devel/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= osg
-PORTVERSION= 0.8.44
+PORTVERSION= 0.8.45
CATEGORIES= graphics
MASTER_SITES= http://www.openscenegraph.org/download/snapshots/
@@ -18,37 +18,21 @@ LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
tiff.4:${PORTSDIR}/graphics/tiff \
freetype.9:${PORTSDIR}/print/freetype2
+DISTNAME= OpenSceneGraph-${PORTVERSION}
+
USE_X_PREFIX= yes
USE_MESA= yes
INSTALLS_SHLIB= yes
USE_GMAKE= yes
MAKE_ENV= OSGHOME=${WRKSRC}
-ALL_TARGET= freebsd
-
-pre-patch:
- @${PERL} -pi -e 's,<malloc.h>,<stdlib.h>,' \
- ${WRKSRC}/src/osgPlugins/flt/Input.cpp \
- ${WRKSRC}/src/osgPlugins/flt/Record.cpp \
- ${WRKSRC}/src/osgPlugins/obj/glm.cpp
-
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/bin/osgconv ${PREFIX}/bin
- ${INSTALL_PROGRAM} ${WRKSRC}/bin/sgv ${PREFIX}/bin
- ${FIND} ${WRKSRC}/include -name '*.orig' -delete
- ${CP} -r ${WRKSRC}/include/ ${PREFIX}/include/
- ${INSTALL_DATA} ${WRKSRC}/lib/libosg.so ${PREFIX}/lib/libosg.so.1
- ${INSTALL_DATA} ${WRKSRC}/lib/libosgDB.so ${PREFIX}/lib/libosgDB.so.1
- ${INSTALL_DATA} ${WRKSRC}/lib/libosgGLUT.so ${PREFIX}/lib/libosgGLUT.so.1
- ${INSTALL_DATA} ${WRKSRC}/lib/libosgText.so ${PREFIX}/lib/libosgText.so.1
- ${INSTALL_DATA} ${WRKSRC}/lib/libosgUtil.so ${PREFIX}/lib/libosgUtil.so.1
- ${LN} -sf ${PREFIX}/lib/libosg.so.1 ${PREFIX}/lib/libosg.so
- ${LN} -sf ${PREFIX}/lib/libosgDB.so.1 ${PREFIX}/lib/libosgDB.so
- ${LN} -sf ${PREFIX}/lib/libosgGLUT.so.1 ${PREFIX}/lib/libosgGLUT.so
- ${LN} -sf ${PREFIX}/lib/libosgText.so.1 ${PREFIX}/lib/libosgText.so
- ${LN} -sf ${PREFIX}/lib/libosgUtil.so.1 ${PREFIX}/lib/libosgUtil.so
- @${MKDIR} ${PREFIX}/lib/osgPlugins
- ${CP} -p ${WRKSRC}/lib/osgPlugins/* ${PREFIX}/lib/osgPlugins
- @${MKDIR} ${DOCSDIR}
- ${CP} -r ${WRKSRC}/doc/ ${DOCSDIR}
+
+# opt = optimized ($OPTF added); debug = debug ($DBGF added); opt is default
+ALL_TARGET= opt
+
+post-install:
+ ${LN} -sf ${PREFIX}/share/osg/bin/sgv ${PREFIX}/bin
+ ${LN} -sf ${PREFIX}/share/osg/bin/osgconv ${PREFIX}/bin
+ @${MKDIR} ${DOCSDIR}
+ ${CP} -r ${WRKSRC}/doc/ ${DOCSDIR}
.include <bsd.port.mk>