summaryrefslogtreecommitdiff
path: root/graphics/clanlib/Makefile
blob: b97693589569924375b594399c4d5ec86b0c76ed (plain)
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
# $NetBSD: Makefile,v 1.2 1999/08/10 10:30:59 agc Exp $

DISTNAME=		ClanLib-0.1.15
CATEGORIES=		games x11
MASTER_SITES=		http://dark.x.dtu.dk/clansoft/clanlib/download/

MAINTAINER=		root@garbled.net
HOMEPAGE=		http://www.clanlib.org/

DEPENDS+=		Hermes-1.2.5:../../graphics/hermes
DEPENDS+=		Mesa-3.0:../../graphics/Mesa
DEPENDS+=		png-1.0.3:../../graphics/png

USE_X11BASE=		yes
GNU_CONFIGURE=		yes
USE_GMAKE=		yes
USE_PERL5=		yes

LDFLAGS+=		-L${LOCALBASE}/lib
CFLAGS+=		-I${LOCALBASE}/include/Hermes
CONFIGURE_ARGS+=	--disable-asm386 \
			--enable-libpng \
			--enable-clansound \
			--enable-dyn \
			--enable-network --enable-mesa

CONFIGURE_ENV+=		LOCALBASE="${LOCALBASE}"# CC='cc ${CFLAGS} ${LDFLAGS}'
MAKE_ENV+=		LDFLAGS="${LDFLAGS}"

.include "../../mk/bsd.prefs.mk"

.if ${OPSYS} == "NetBSD"
BROKEN_LIBZ!=ar t /usr/lib/libz.a | grep -w example.o || echo "false"
.if !empty(BROKEN_LIBZ:Mexample.o)
BROKEN= "Update to NetBSD 1.4.1, or recompile /usr/lib/libz without example.c"
.endif
.endif

.include "../../mk/bsd.pkg.mk"