# New ports collection makefile for: ogre3d # Date created: 03 Oct 2005 # Whom: Oliver Lehmann # # $FreeBSD$ # PORTNAME= ogre3d PORTVERSION= 1.4.9 PORTREVISION= 1 CATEGORIES= graphics devel MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR=ogre DISTNAME= ogre-v${PORTVERSION:S/./-/g} MAINTAINER= oliver@FreeBSD.org COMMENT= A scene-oriented, flexible 3D engine written in C++ LIB_DEPENDS= zzip.13:${PORTSDIR}/devel/zziplib \ CEGUIBase.2:${PORTSDIR}/graphics/cegui \ IL.1:${PORTSDIR}/graphics/devil WRKSRC= ${WRKDIR}/ogre CONFIGURE_ARGS= --disable-cg --program-transform-name= --enable-static \ --with-cppunit-prefix=/nonexistent --disable-freeimage CONFIGURE_ENV+= ZZIPLIB_CFLAGS="-I${LOCALBASE}/include" \ ZZIPLIB_LIBS="-L${LOCALBASE}/lib -lzzip" 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 USE_LDCONFIG= YES USE_BZIP2= YES USE_GNOME= gnomehack USE_GMAKE= YES USE_SDL= sdl USE_XORG= xaw .include .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 PLIST_SUB+= WITH_GTK="" .else CONFIGURE_ARGS+=--with-gui=Xt PLIST_SUB+= WITH_GTK="@comment " .endif post-patch: @${REINPLACE_CMD} -e '\ s|sdl-config|${SDL_CONFIG}|g; \ s|-lpthread|${PTHREAD_LIBS}|g; \ s|"-lIL|"-L${LOCALBASE}/lib -lIL|g; \ s|-lGL -lGLU|-L${X11BASE}/lib &|g; \ s|" == "x|" = "x|g; \ s|-lfreeimage|-L${LOCALBASE}/lib &|g' \ ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|