make compiling demos and the debug mode OPTIONal
PR: ports/124742 Submitted by: amdmi3
This commit is contained in:
parent
7408a4cbd4
commit
e9af27fefe
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=216085
1 changed files with 17 additions and 3 deletions
|
@ -23,11 +23,12 @@ LIB_DEPENDS= zzip.13:${PORTSDIR}/devel/zziplib \
|
|||
WRKSRC= ${WRKDIR}/ogre
|
||||
CONFIGURE_ARGS= --disable-cg --program-transform-name= --enable-static \
|
||||
--with-cppunit-prefix=/nonexistent --disable-freeimage
|
||||
CONFIGURE_ENV+= CPPFLAGS="-I${X11BASE}/include -DNDEBUG" \
|
||||
ZZIPLIB_CFLAGS="-I${LOCALBASE}/include" \
|
||||
CONFIGURE_ENV+= ZZIPLIB_CFLAGS="-I${LOCALBASE}/include" \
|
||||
ZZIPLIB_LIBS="-L${LOCALBASE}/lib -lzzip"
|
||||
|
||||
OPTIONS= GTK "Use GTK instead of Xt gui" off
|
||||
OPTIONS= GTK "Use GTK instead of Xt gui" off \
|
||||
DEBUG "Enable debug mode" off \
|
||||
DEMOS "Build OGRE demos" off
|
||||
|
||||
GNU_CONFIGURE= YES
|
||||
USE_AUTOTOOLS= libtool:15
|
||||
|
@ -40,6 +41,19 @@ USE_XORG= xaw
|
|||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if !defined(WITH_DEBUG)
|
||||
CONFIGURE_ENV+= CPPFLAGS="-I${X11BASE}/include -DNDEBUG"
|
||||
.else
|
||||
CONFIGURE_ENV+= CPPFLAGS="-I${X11BASE}/include"
|
||||
.endif
|
||||
|
||||
.if defined(WITH_DEMOS)
|
||||
BUILD_DEPENDS+= ${LOCALBASE}/lib/libOIS.so:${PORTSDIR}/devel/ois
|
||||
RUN_DEPENDS+= ${LOCALBASE}/lib/libOIS.so:${PORTSDIR}/devel/ois
|
||||
.else
|
||||
CONGIGURE_ARGS+= --disable-ogre-demos
|
||||
.endif
|
||||
|
||||
.if defined(WITH_GTK)
|
||||
USE_GNOME+= gtk20
|
||||
CONFIGURE_ARGS+=--with-gui=gtk
|
||||
|
|
Loading…
Reference in a new issue