blob: 3252eb61ec36e68a52e8e81d8520b262bc3e3809 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# New ports collection makefile for: cegui
# Date created: 03 Oct 2005
# Whom: Oliver Lehmann <oliver@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= cegui
PORTVERSION= 0.5.0b
PORTREVISION= 2
CATEGORIES= graphics devel
MASTER_SITES= SF
MASTER_SITE_SUBDIR=crayzedsgui
DISTNAME= ${PORTNAME:U}-${PORTVERSION}
MAINTAINER= oliver@FreeBSD.org
COMMENT= A library providing windowing and widgets for graphics APIs
LIB_DEPENDS= IL.1:${PORTSDIR}/graphics/devil \
pcre.0:${PORTSDIR}/devel/pcre \
freetype.9:${PORTSDIR}/print/freetype2
WRKSRC= ${WRKDIR}/${DISTNAME:S/0b/0/}
CONFIGURE_ARGS= --enable-toluacegui --disable-irrlicht-renderer \
--disable-corona --enable-devil --disable-freeimage --disable-silly \
--disable-libxml --disable-xerces-c --disable-expat
CONFIGURE_ENV+= Lua_LIBS="-L${LOCALBASE}/lib/lua50 -llua -llualib -lm" \
Lua_CFLAGS="-I${LOCALBASE}/include/lua50" \
LDFLAGS="-L${LOCALBASE}/lib -L${LOCALBASE}/lib/lua50" \
CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/lua50"
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
USE_GL= yes
USE_LUA= 5.0
USE_GNOME= gnomehack
.if !defined(NOPORTDOCS)
PORTDOCS= README COPYING AUTHORS ChangeLog TODO
.endif
post-patch:
@${REINPLACE_CMD} -e ' \
s|"-lILU.*"|"-lm -L${LOCALBASE}/lib -lILU -lIL $$LIBS"|g; \
s|-lpthread|${PTHREAD_LIBS}|g; \
s|DevIL_CFLAGS=.*|DevIL_CFLAGS="-DUSE_DEVIL_LIBRARY -I${LOCALBASE}/include"|g' \
${WRKSRC}/configure
@${REINPLACE_CMD} -e '/SUBDIRS/ s| Samples||g' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|__linux__)|& \|\| defined(__FreeBSD__)|g' \
${WRKSRC}/include/CEGUIDynamicModule.h \
${WRKSRC}/src/CEGUIDynamicModule.cpp
@${REINPLACE_CMD} -e 's|(linux)|& \|\| defined(__FreeBSD__)|g' \
${WRKSRC}/Samples/common/src/CEGuiSample.cpp
@${REINPLACE_CMD} -e 's|INCLUDES = |&-I${LOCALBASE}/include/lua50 |' \
${WRKSRC}/ScriptingModules/CEGUILua/tolua++bin/Makefile.in \
${WRKSRC}/ScriptingModules/CEGUILua/LuaScriptModule/src/Makefile.in
@${REINPLACE_CMD} -e 's|ILvoid|void|g' \
${WRKSRC}/ImageCodecModules/DevILImageCodec/CEGUIDevILImageCodec.cpp
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for docfile in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>
|