Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Feb 2009 17:29:14 GMT
From:      Ganael Laplanche <ganael.laplanche@martymac.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/131613: Port update: games/flightgear and devel/simgear - Add a switch to build against new osg-devel port
Message-ID:  <200902121729.n1CHTELj070201@www.freebsd.org>
Resent-Message-ID: <200902121730.n1CHU3bB067770@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         131613
>Category:       ports
>Synopsis:       Port update: games/flightgear and devel/simgear - Add a switch to build against new osg-devel port
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 12 17:30:02 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Ganael Laplanche
>Release:        8.0-CURRENT
>Organization:
http://contribs.martymac.com
>Environment:
FreeBSD home.martymac.com 8.0-CURRENT FreeBSD 8.0-CURRENT #29: Wed Feb 4 09:29:51 CET 2009 root@home.martymac.com:/usr/obj/usr/src/sys/MYKERNEL amd64
>Description:
This patch allows to build games/flightgear and devel/simgear against the new osg-devel port :

cd {PORTSDIR}/games/flightgear && make -DWITH_OSG_DEVEL install

Osg-2.7.x branch is recommended for games/flightgear to avoid rendering bugs, see : http://www.flightgear.org/version.html
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -aurN devel/simgear.orig/Makefile devel/simgear/Makefile
--- devel/simgear.orig/Makefile	2009-02-12 08:04:22.389825704 +0100
+++ devel/simgear/Makefile	2009-02-12 08:05:06.964157776 +0100
@@ -19,9 +19,14 @@
 LIB_DEPENDS=	openal.0:${PORTSDIR}/audio/openal \
 		jpeg.9:${PORTSDIR}/graphics/jpeg \
 		alut.1:${PORTSDIR}/audio/freealut \
-		osg.48:${PORTSDIR}/graphics/osg \
 		boost_thread.4:${PORTSDIR}/devel/boost
 
+.if defined(WITH_OSG_DEVEL)
+LIB_DEPENDS+=	osg.54:${PORTSDIR}/graphics/osg-devel
+.else
+LIB_DEPENDS+=	osg.48:${PORTSDIR}/graphics/osg
+.endif
+
 USE_XORG=	ice sm x11 xext xi xt xmu
 USE_GL=		gl glu glut
 GNU_CONFIGURE=	yes
diff -aurN games/flightgear.orig/Makefile games/flightgear/Makefile
--- games/flightgear.orig/Makefile	2009-02-12 07:57:30.117028183 +0100
+++ games/flightgear/Makefile	2009-02-12 08:03:57.635199766 +0100
@@ -22,7 +22,6 @@
 COMMENT=	The FlightGear flight simulator
 
 LIB_DEPENDS=	openal.0:${PORTSDIR}/audio/openal \
-		osg.48:${PORTSDIR}/graphics/osg \
 		boost_thread.4:${PORTSDIR}/devel/boost
 BUILD_DEPENDS=	${LOCALBASE}/lib/libplibsl.a:${PORTSDIR}/x11-toolkits/plib \
 		${LOCALBASE}/lib/libsgmisc.a:${PORTSDIR}/devel/simgear
@@ -30,6 +29,12 @@
 		${LOCALBASE}/lib/libsgmisc.a:${PORTSDIR}/devel/simgear \
 		${LOCALBASE}/share/FlightGear/version:${PORTSDIR}/games/flightgear-data
 
+.if defined(WITH_OSG_DEVEL)
+LIB_DEPENDS+=	osg.54:${PORTSDIR}/graphics/osg-devel
+.else
+LIB_DEPENDS+=	osg.48:${PORTSDIR}/graphics/osg
+.endif
+
 USE_XORG=	ice sm x11 xext xi xt xmu
 USE_GL=		gl glu glut
 USE_GMAKE=	yes


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902121729.n1CHTELj070201>