aboutsummaryrefslogtreecommitdiffstats
path: root/devel/clanlib/Makefile
blob: 79a96f87af71cde8e26f819d510e2c16ed488cfa (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
# New ports collection makefile for:    clanlib
# Date created:             10 May 2000
# Whom:                 Maxim Sobolev <sobomax@FreeBSD.org>
#
# $Carpetsmoker: ports/devel/clanlib/Makefile,v 1.3 2008/03/18 13:48:24 carpetsmoker Exp $
# $FreeBSD$
#

PORTNAME=   clanlib
PORTVERSION=    0.8.1
PORTREVISION=   10
PORTEPOCH=  1
CATEGORIES= devel
MASTER_SITES=   http://www.clanlib.org/download/releases-0.8/
DISTNAME=   ClanLib-${PORTVERSION}
EXTRACT_SUFX=   .tgz

MAINTAINER= ports@FreeBSD.org
COMMENT=    Cross-platform game SDK

LIB_DEPENDS=    jpeg.11:${PORTSDIR}/graphics/jpeg \
        png.6:${PORTSDIR}/graphics/png \
        mikmod:${PORTSDIR}/audio/libmikmod \
        vorbis:${PORTSDIR}/audio/libvorbis

WRKSRC=     ${WRKDIR}/ClanLib-${PORTVERSION}
CPPFLAGS+=  -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+=   -L${LOCALBASE}/lib ${PTHREAD_LIBS}
USE_AUTOTOOLS=  libtool
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --disable-clanJavaScript --disable-docs
USE_GMAKE=  yes
USE_XORG=   x11 xmu xi
USE_GNOME=  gnomehack pkgconfig
USE_LDCONFIG=   yes
USE_SDL=    gfx
USE_GL=     yes

.include <bsd.port.pre.mk>

post-patch:
    @${GREP} -lR "SDL/SDL" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
        's|SDL/SDL|SDL|g'
    @${REINPLACE_CMD} -e 's|(CLvoid)|()|' \
        ${WRKSRC}/Sources/API/GL/opengl_wrap.h
    @${REINPLACE_CMD} -e 's|-lasound||' \
        ${WRKSRC}/Sources/Sound/Makefile.in
    @${REINPLACE_CMD} -e 's|@perl_exec@|${PERL}|g' \
        ${WRKSRC}/Documentation/Utilities/webbuilder.pl.in

.include <bsd.port.post.mk>