aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/cegui/Makefile
blob: 0fd6276871de9519beea29d1b22d09fb8ac1245a (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
# New ports collection makefile for:    cegui
# Date created:             03 Oct 2005
# Whom:                 Oliver Lehmann <oliver@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   cegui
PORTVERSION=    0.4.0
CATEGORIES= graphics devel
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=crayzedsgui
DISTNAME=   ${PORTNAME}_mk2-${PORTVERSION}

MAINTAINER= oliver@FreeBSD.org
COMMENT=    A library providing windowing and widgets for graphics APIs

LIB_DEPENDS=    IL.1:${PORTSDIR}/graphics/devil

WRKSRC=     ${WRKDIR}/${PORTNAME}_mk2
USE_REINPLACE=  YES
USE_LIBTOOL_VER=13
GNU_CONFIGURE=  YES
INSTALLS_SHLIB= YES
USE_GCC=    3.4
USE_BZIP2=  YES
USE_X_PREFIX=   YES
USE_GNOME=  gnomehack

post-patch:
    @${REINPLACE_CMD} -e ' \
        s|"-lxerces-c.*"|"-L${LOCALBASE}/lib -lxerces-c ${PTHREAD_LIBS} $$LIBS"|g; \
        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 's| Samples$$||g' ${WRKSRC}/Makefile.in
    @${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|' \
        ${WRKSRC}/include/CEGUIDataContainer.h
    @${REINPLACE_CMD} -e 's|__linux__)|& \|\| defined(__FreeBSD__)|g' \
        ${WRKSRC}/include/CEGUIFactoryModule.h \
        ${WRKSRC}/src/CEGUIFactoryModule.cpp
    @${REINPLACE_CMD} -e 's|(linux)|& \|\| defined(__FreeBSD__)|g' \
        ${WRKSRC}/Samples/common/src/CEGuiSample.cpp

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for docfile in README COPYING AUTHORS ChangeLog TODO
    @${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>