2005-10-03 18:30:09 +00:00
|
|
|
# New ports collection makefile for: cegui
|
|
|
|
# Date created: 03 Oct 2005
|
|
|
|
# Whom: Oliver Lehmann <oliver@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= cegui
|
2011-03-10 08:21:48 +00:00
|
|
|
PORTVERSION= 0.7.5
|
2005-10-03 18:30:09 +00:00
|
|
|
CATEGORIES= graphics devel
|
2011-03-10 08:21:48 +00:00
|
|
|
MASTER_SITES= SF/crayzedsgui/CEGUI%20Mk-2/0.7.5
|
2007-09-19 13:53:47 +00:00
|
|
|
DISTNAME= ${PORTNAME:U}-${PORTVERSION}
|
2005-10-03 18:30:09 +00:00
|
|
|
|
|
|
|
MAINTAINER= oliver@FreeBSD.org
|
|
|
|
COMMENT= A library providing windowing and widgets for graphics APIs
|
|
|
|
|
2009-02-20 17:11:06 +00:00
|
|
|
LIB_DEPENDS= IL.2:${PORTSDIR}/graphics/devil \
|
2008-03-24 23:21:25 +00:00
|
|
|
pcre.0:${PORTSDIR}/devel/pcre \
|
|
|
|
freetype.9:${PORTSDIR}/print/freetype2
|
2011-03-10 08:21:48 +00:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libOgreMain.so.1.7.2:${PORTSDIR}/graphics/ogre3d
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/lib/libOgreMain.so.1.7.2:${PORTSDIR}/graphics/ogre3d
|
2005-10-03 18:30:09 +00:00
|
|
|
|
2009-07-11 06:13:55 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S/2b/2/}
|
2011-03-10 08:21:48 +00:00
|
|
|
CONFIGURE_ARGS= --disable-toluacegui --disable-irrlicht-renderer \
|
2008-01-31 20:52:38 +00:00
|
|
|
--disable-corona --enable-devil --disable-freeimage --disable-silly \
|
2011-03-10 08:21:48 +00:00
|
|
|
--disable-libxml --disable-xerces-c --disable-expat --disable-samples
|
2008-01-31 20:52:38 +00:00
|
|
|
|
2008-07-13 18:38:39 +00:00
|
|
|
CONFIGURE_ENV+= Lua_LIBS="-L${LUA_LIBDIR} -llua -lm" \
|
2008-06-01 05:55:42 +00:00
|
|
|
Lua_CFLAGS="-I${LUA_INCDIR}" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -L${LUA_LIBDIR}" \
|
|
|
|
CPPFLAGS="-I${LOCALBASE}/include -I${LUA_INCDIR}"
|
2008-01-31 20:52:38 +00:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
USE_GL= yes
|
2008-07-13 18:38:39 +00:00
|
|
|
USE_LUA= 5.1
|
2011-03-10 08:21:48 +00:00
|
|
|
LUA_COMPS= toluaxx
|
|
|
|
USE_PYTHON= 2.6+
|
2005-10-03 18:30:09 +00:00
|
|
|
USE_GNOME= gnomehack
|
2011-03-10 08:21:48 +00:00
|
|
|
PLIST_SUB+= WITH_OGRE=""
|
2005-10-03 18:30:09 +00:00
|
|
|
|
2008-01-31 20:52:38 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
2011-03-10 08:21:48 +00:00
|
|
|
PORTDOCS= README COPYING
|
2008-01-31 20:52:38 +00:00
|
|
|
.endif
|
|
|
|
|
2005-10-03 18:30:09 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e ' \
|
|
|
|
s|"-lILU.*"|"-lm -L${LOCALBASE}/lib -lILU -lIL $$LIBS"|g; \
|
|
|
|
s|-lpthread|${PTHREAD_LIBS}|g; \
|
2008-06-01 05:55:42 +00:00
|
|
|
s|CEGUI_LUA_VER=..|CEGUI_LUA_VER=${USE_LUA:S/.//}|g; \
|
2011-03-10 08:21:48 +00:00
|
|
|
s|DevIL_CFLAGS=.*|DevIL_CFLAGS="-DUSE_DEVIL_LIBRARY -I${LOCALBASE}/include"|g; \
|
|
|
|
s|-release $$cegui_lib_version_suffix|-release ${PORTVERSION:C/\.[0-9]$//g} -version-number ${PORTVERSION:C/^[0-9]\.[0-9]\.//g}|g' \
|
2005-10-03 18:30:09 +00:00
|
|
|
${WRKSRC}/configure
|
2011-03-10 08:21:48 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|^SUBDIRS = tolua\+\+|SUBDIRS =|g' \
|
|
|
|
${WRKSRC}/cegui/include/ScriptingModules/LuaScriptModule/support/Makefile.in
|
2005-10-03 18:30:09 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2008-01-31 20:52:38 +00:00
|
|
|
.for docfile in ${PORTDOCS}
|
2011-03-10 08:21:48 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/${docfile} ${DOCSDIR}
|
2005-10-03 18:30:09 +00:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|