# 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.9.8
CATEGORIES=	graphics
MASTER_SITES=	http://www.openscenegraph.org/downloads/snapshots/
DISTNAME=	OSG_OP_OT-${PORTVERSION}-2

MAINTAINER=	rrghphar@bigpond.net.au
COMMENT=	C++ OpenGL scene graph library for real-time rendering

BUILD_DEPENDS=	${LOCALBASE}/lib/libOpenThreads.so:${PORTSDIR}/devel/openthreads \
		${X11BASE}/lib/libProducer.so:${PORTSDIR}/graphics/openproducer
RUN_DEPENDS=	${LOCALBASE}/lib/libOpenThreads.so:${PORTSDIR}/devel/openthreads \
		${X11BASE}/lib/libProducer.so:${PORTSDIR}/graphics/openproducer
LIB_DEPENDS=	png.5:${PORTSDIR}/graphics/png \
		jpeg.9:${PORTSDIR}/graphics/jpeg \
		ungif.5:${PORTSDIR}/graphics/libungif \
		tiff.4:${PORTSDIR}/graphics/tiff \
		freetype.9:${PORTSDIR}/print/freetype2 \
		xml2.5:${PORTSDIR}/textproc/libxml2

USE_ZIP=	yes
USE_REINPLACE=	yes
USE_X_PREFIX=	yes
USE_GL=		yes
INSTALLS_SHLIB=	yes
USE_GMAKE=	yes
MAKE_ENV=	OSGHOME="${WRKSRC}" \
		PTHREAD_LIBS="${PTHREAD_LIBS}" \
		EXAMPLESDIR="${EXAMPLESDIR}" \
		DOCSDIR="${DOCSDIR}" \
		DATADIR="${DATADIR}" \
		OPTF="${CXXFLAGS}"
MAKEFILE=	GNUmakefile
WRKSRC=		${WRKDIR}/${DISTNAME}/OpenSceneGraph

# opt = optimized ($OPTF added); debug = debug ($DBGF added); opt is default
ALL_TARGET=	opt

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500035
EXTRA_PATCHES=	${FILESDIR}/freebsd4-osg-patches
.endif

.if !defined(NOPORTDOCS)

BUILD_DEPENDS+=	doxygen:${PORTSDIR}/devel/doxygen	\
		dot:${PORTSDIR}/graphics/graphviz
PORTDOCS=	html

pre-patch:
	${REINPLACE_CMD} -e 's,[[:cntrl:]]*$$,,' \
		${WRKSRC}/examples/osgtesselate/osgtesselate.cpp

post-build:
	cd ${WRKSRC}/doc/Doxyfiles && OSGHOME=${WRKSRC} doxygen all_Doxyfile

pre-install:
	${FIND} ${WRKSRC} -name '*.orig' -delete

post-install:
	@${MKDIR} ${DOCSDIR}
	${CP} -r ${WRKSRC}/doc/doxygen/ ${DOCSDIR}

.endif

.include <bsd.port.post.mk>
ron4/files/ini-1.3.7'>dependabot/npm_and_yarn/devel/electron4/files/ini-1.3.7</option>
<option value='dependabot/npm_and_yarn/devel/electron4/files/lodash-4.17.19'>dependabot/npm_and_yarn/devel/electron4/files/lodash-4.17.19</option>
<option value='dependabot/npm_and_yarn/devel/electron4/files/lodash.merge-4.6.2'>dependabot/npm_and_yarn/devel/electron4/files/lodash.merge-4.6.2</option>
<option value='dependabot/npm_and_yarn/devel/electron4/files/minimist-1.2.2'>dependabot/npm_and_yarn/devel/electron4/files/minimist-1.2.2</option>
<option value='dependabot/npm_and_yarn/devel/electron4/files/minimist-1.2.3'>dependabot/npm_and_yarn/devel/electron4/files/minimist-1.2.3</option>
<option value='dependabot/npm_and_yarn/devel/electron4/files/node-fetch-2.6.1'>dependabot/npm_and_yarn/devel/electron4/files/node-fetch-2.6.1</option>
<option value='dependabot/npm_and_yarn/devel/electron4/files/serve-10.1.2'>dependabot/npm_and_yarn/devel/electron4/files/serve-10.1.2</option>
<option value='dependabot/npm_and_yarn/devel/electron4/files/y18n-3.2.2'>dependabot/npm_and_yarn/devel/electron4/files/y18n-3.2.2</option>
<option value='dependabot/npm_and_yarn/devel/electron6/files/elliptic-6.5.3'>dependabot/npm_and_yarn/devel/electron6/files/elliptic-6.5.3</option>
<option value='dependabot/npm_and_yarn/devel/electron6/files/elliptic-6.5.4'>dependabot/npm_and_yarn/devel/electron6/files/elliptic-6.5.4</option>
<option value='dependabot/npm_and_yarn/devel/electron6/files/ini-1.3.8'>dependabot/npm_and_yarn/devel/electron6/files/ini-1.3.8</option>
<option value='dependabot/npm_and_yarn/devel/electron6/files/lodash-4.17.19'>dependabot/npm_and_yarn/devel/electron6/files/lodash-4.17.19</option>
<option value='dependabot/npm_and_yarn/devel/electron6/files/lodash.merge-4.6.2'>dependabot/npm_and_yarn/devel/electron6/files/lodash.merge-4.6.2</option>
<option value='dependabot/npm_and_yarn/devel/electron6/files/node-fetch-2.6.1'>dependabot/npm_and_yarn/devel/electron6/files/node-fetch-2.6.1</option>
<option value='dependabot/npm_and_yarn/devel/electron6/files/serve-10.1.2'>dependabot/npm_and_yarn/devel/electron6/files/serve-10.1.2</option>
<option value='gnome-3.22'>gnome-3.22</option>
<option value='gnome-3.24'>gnome-3.24</option>
<option value='gnome-3.26'>gnome-3.26</option>
<option value='gnome-3.28'>gnome-3.28</option>
<option value='gnome-3.32'>gnome-3.32</option>
<option value='gnome-3.36'>gnome-3.36</option>
<option value='gstreamer'>gstreamer</option>
<option value='gstreamer-1.16'>gstreamer-1.16</option>
<option value='gstreamer0.10-removal' selected='selected'>gstreamer0.10-removal</option>
<option value='main'>main</option>
<option value='master'>master</option>
<option value='mate-1.16'>mate-1.16</option>
<option value='mate-1.18'>mate-1.18</option>
<option value='mate-1.20'>mate-1.20</option>
<option value='mate-1.22'>mate-1.22</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)</td><td class='sub right'></td></tr></table>
<table class='tabs'><tr><td>
<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/about/?h=gstreamer0.10-removal'>about</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/?h=gstreamer0.10-removal'>summary</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/refs/?h=gstreamer0.10-removal&amp;id=2c70230681aaf34879d460a161bcdd190a3de98e'>refs</a><a class='active' href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/science/mpb?h=gstreamer0.10-removal'>log</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/tree/science/mpb?h=gstreamer0.10-removal&amp;id=2c70230681aaf34879d460a161bcdd190a3de98e'>tree</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/science/mpb?h=gstreamer0.10-removal&amp;id=2c70230681aaf34879d460a161bcdd190a3de98e'>commit</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/diff/science/mpb?h=gstreamer0.10-removal&amp;id=2c70230681aaf34879d460a161bcdd190a3de98e'>diff</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/stats/science/mpb?h=gstreamer0.10-removal'>stats</a></td><td class='form'><form class='right' method='get' action='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/science/mpb'>
<input type='hidden' name='h' value='gstreamer0.10-removal'/><input type='hidden' name='id' value='2c70230681aaf34879d460a161bcdd190a3de98e'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/?h=gstreamer0.10-removal&amp;id=2c70230681aaf34879d460a161bcdd190a3de98e'>root</a>/<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/science?h=gstreamer0.10-removal&amp;id=2c70230681aaf34879d460a161bcdd190a3de98e'>science</a>/<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/science/mpb?h=gstreamer0.10-removal&amp;id=2c70230681aaf34879d460a161bcdd190a3de98e'>mpb</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th></th><th class='left'>Commit message (<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/log/science/mpb?h=gstreamer0.10-removal&amp;id=2c70230681aaf34879d460a161bcdd190a3de98e&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Age</th><th class='left'>Files</th><th class='left'>Lines</th></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/science/mpb?h=gstreamer0.10-removal&amp;id=7f8310c19047680bae15660f11e6acf9bda01aa7'>- Bump PORTREVISION to chase the update of libctl</a></td><td>wen</td><td><span title='2010-01-24 10:14:17 +0800'>2010-01-24</span></td><td>1</td><td><span class='deletions'>-2</span>/<span class='insertions'>+2</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/science/mpb?h=gstreamer0.10-removal&amp;id=1c3907bb1d0398521432edac556a43517c23e5e3'>Bump PORTREVISION for everything that sets USE_FORTRAN=yes which now</a></td><td>gerald</td><td><span title='2009-09-13 08:08:01 +0800'>2009-09-13</span></td><td>1</td><td><span class='deletions'>-1</span>/<span class='insertions'>+1</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/science/mpb?h=gstreamer0.10-removal&amp;id=dd6951f125ec0dcd46ba50f18525aff648b2b706'>- Chase lang/guile shlib bump</a></td><td>miwi</td><td><span title='2009-01-23 00:04:11 +0800'>2009-01-23</span></td><td>1</td><td><span class='deletions'>-2</span>/<span class='insertions'>+2</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/science/mpb?h=gstreamer0.10-removal&amp;id=6e7adcecc062e709ee062c1c0a38e30a838b3d24'>No longer pass FC, F77 and FFLAGS to CONFIGURE_ENV, this is now done via</a></td><td>gerald</td><td><span title='2009-01-10 18:56:40 +0800'>2009-01-10</span></td><td>1</td><td><span class='deletions'>-2</span>/<span class='insertions'>+1</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/science/mpb?h=gstreamer0.10-removal&amp;id=497285e825f95a643ac4b1c339571479651cf9f7'>Bump PORTREVISION due to change of USE_FORTRAN=yes to GCC 4.3.</a></td><td>gerald</td><td><span title='2009-01-08 00:34:27 +0800'>2009-01-08</span></td><td>1</td><td><span class='deletions'>-1</span>/<span class='insertions'>+1</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/science/mpb?h=gstreamer0.10-removal&amp;id=2a64d11744e98b858a68221ebdb694303902a188'>- Chase lang/guile share library version bump (.18 -&gt; .19)</a></td><td>rafan</td><td><span title='2008-07-21 12:49:09 +0800'>2008-07-21</span></td><td>1</td><td><span class='deletions'>-2</span>/<span class='insertions'>+2</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/science/mpb?h=gstreamer0.10-removal&amp;id=11edc5451416c23af13418fc8391548f68dd629b'>Bump portrevision due to upgrade of devel/gettext.</a></td><td>edwin</td><td><span title='2008-06-06 22:17:21 +0800'>2008-06-06</span></td><td>1</td><td><span class='deletions'>-1</span>/<span class='insertions'>+1</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/science/mpb?h=gstreamer0.10-removal&amp;id=d400b22686f5507e8bf197aa75e2980de43bdc6f'> - Chase libctl version bump</a></td><td>gahr</td><td><span title='2008-04-16 18:42:58 +0800'>2008-04-16</span></td><td>1</td><td><span class='deletions'>-7</span>/<span class='insertions'>+7</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/science/mpb?h=gstreamer0.10-removal&amp;id=6127ef4c19b3753b5c840084cb831d63174d1be5'>Chase libguile shared lib version.</a></td><td>marcus</td><td><span title='2008-03-01 14:22:42 +0800'>2008-03-01</span></td><td>1</td><td><span class='deletions'>-2</span>/<span class='insertions'>+2</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/science/mpb?h=gstreamer0.10-removal&amp;id=63a5c440c67b1aa82fbe49fd23e5cc12646cbde0'>Now we use USE_FORTRAN=yes to use FORTRAN compiler.</a></td><td>maho</td><td><span title='2007-07-14 10:56:36 +0800'>2007-07-14</span></td><td>1</td><td><span class='deletions'>-4</span>/<span class='insertions'>+1</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/science/mpb?h=gstreamer0.10-removal&amp;id=1ba21479303fca18d142059f5d396c8c1d3c791f'>In preparation to deprecate shells/bash2:</a></td><td>bsam</td><td><span title='2007-02-01 07:57:18 +0800'>2007-02-01</span></td><td>1</td><td><span class='deletions'>-1</span>/<span class='insertions'>+1</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/science/mpb?h=gstreamer0.10-removal&amp;id=f5124ed84ba45f96cbfa87cfdac5082bdfe2738f'>* Migrate to gfortran.</a></td><td>maho</td><td><span title='2007-01-17 11:18:17 +0800'>2007-01-17</span></td><td>1</td><td><span class='deletions'>-6</span>/<span class='insertions'>+23</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/science/mpb?h=gstreamer0.10-removal&amp;id=25dcf463b5734d2e03be6f216482578013e111cd'>Remove USE_REINPLACE from all categories starting with S</a></td><td>edwin</td><td><span title='2006-05-13 12:15:53 +0800'>2006-05-13</span></td><td>1</td><td><span class='deletions'>-1</span>/<span class='insertions'>+0</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/science/mpb?h=gstreamer0.10-removal&amp;id=e31bed690b2fba4714686b691a351a51b98d80e8'>Replace ugly "@unexec rmdir %D... 2&gt;/dev/null || true" with @dirrmtry</a></td><td>edwin</td><td><span title='2006-01-22 11:01:03 +0800'>2006-01-22</span></td><td>1</td><td><span class='deletions'>-1</span>/<span class='insertions'>+1</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/science/mpb?h=gstreamer0.10-removal&amp;id=9557551b1d917be83656c33e338c6d5535cb0ab4'>- Add SHA256</a></td><td>pav</td><td><span title='2005-11-26 01:44:39 +0800'>2005-11-26</span></td><td>1</td><td><span class='deletions'>-0</span>/<span class='insertions'>+1</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/science/mpb?h=gstreamer0.10-removal&amp;id=da033595b0ceac4a9453f57a6a08a072178bcdd9'>Chase repomove graphics/hdf* -&gt; science/hdf*</a></td><td>pav</td><td><span title='2004-02-26 06:55:55 +0800'>2004-02-26</span></td><td>1</td><td><span class='deletions'>-1</span>/<span class='insertions'>+1</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/science/mpb?h=gstreamer0.10-removal&amp;id=249bd3cd229cb6929b78711ad0ebf48c3b92d564'>SIZEify.</a></td><td>trevor</td><td><span title='2004-01-30 00:13:06 +0800'>2004-01-30</span></td><td>1</td><td><span class='deletions'>-0</span>/<span class='insertions'>+1</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/science/mpb?h=gstreamer0.10-removal&amp;id=22153277e4c08891ead20753c9cef33cc219a2ed'>- Make it do actually something useful.</a></td><td>pav</td><td><span title='2003-12-07 09:12:25 +0800'>2003-12-07</span></td><td>1</td><td><span class='deletions'>-4</span>/<span class='insertions'>+9</span></td></tr>
<tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-gnome/commit/science/mpb?h=gstreamer0.10-removal&amp;id=f2957143a59075805ac0945e29236840562c899e'>Chase guile's shared lib version.</a></td><td>marcus</td><td><span title='2003-05-02 11:29:26 +0800'>2003-05-02</span></td><td>1</td><td><span class='deletions'>-1</span>/<span class='insertions'>+1</span></td></tr>