summaryrefslogtreecommitdiff
path: root/graphics/osg-devel/bsd.osg.mk
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/osg-devel/bsd.osg.mk')
-rw-r--r--graphics/osg-devel/bsd.osg.mk33
1 files changed, 33 insertions, 0 deletions
diff --git a/graphics/osg-devel/bsd.osg.mk b/graphics/osg-devel/bsd.osg.mk
new file mode 100644
index 000000000000..a457585b3029
--- /dev/null
+++ b/graphics/osg-devel/bsd.osg.mk
@@ -0,0 +1,33 @@
+# $Id$
+
+MASTER_SITES= http://www.openscenegraph.org/downloads/snapshots/
+DISTNAME= OSG_OP_OT-1.2
+
+MD5_FILE= ${.CURDIR}/../../graphics/osg/distinfo
+USE_ZIP= yes
+USE_GMAKE= yes
+USE_LDCONFIG= yes
+
+MAKEFILE= GNUmakefile
+MAKE_ARGS= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
+ PTHREAD_LIBS="${PTHREAD_LIBS}" \
+ CXX="${CXX}" \
+ INST_LOCATION="${PREFIX}" \
+ INST_EXAMPLES="${EXAMPLESDIR}/bin" \
+ INST_SRC="${EXAMPLESDIR}/src" \
+ INST_EXAMPLE_SRC="${EXAMPLESDIR}/src" \
+ INSTBINCMD="${INSTALL_PROGRAM}" \
+ INSTXCMD="${INSTALL_PROGRAM}" \
+ INSTDEVCMD="${INSTALL_DATA}" \
+ INSTRCMD="${INSTALL_DATA}"
+ALL_TARGET= opt
+
+post-patch: osg-post-patch
+
+osg-post-patch:
+ @${REINPLACE_CMD} -Ee 's|-O2|${CXXFLAGS}|; \
+ s|(-I\|-L\|-rpath )/usr/local|\1${LOCALBASE}|; \
+ s|(-I\|-L\|-rpath )/usr/X11R6|\1${X11BASE}|' \
+ ${WRKSRC}/Make/makedefs
+ @${REINPLACE_CMD} -e 's|DOF=$$(OPTF)|DOF="$$(OPTF)"|' \
+ ${WRKSRC}/Make/makerules