blob: a91fc25626e18bb04d8f2e7343f4f6392d18999e (
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
# New ports collection makefile for: clanlib
# Date created: 10 May 2000
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= clanlib
PORTVERSION= 0.7.4.1
CATEGORIES= devel
MASTER_SITES= http://clanlib.org/~sphair/download/
DISTNAME= ClanLib-${PORTVERSION:R}-${PORTVERSION:E}
MAINTAINER= ports@FreeBSD.org
COMMENT= Cross-platform game SDK
LIB_DEPENDS= Hermes.1:${PORTSDIR}/graphics/Hermes \
jpeg.9:${PORTSDIR}/graphics/jpeg \
png.5:${PORTSDIR}/graphics/png
WRKSRC= ${WRKDIR}/ClanLib-${PORTVERSION:R}
USE_BZIP2= yes
USE_PERL5_BUILD= yes
USE_XLIB= yes
USE_GNOME= gnomehack gnometarget pkgconfig
USE_GMAKE= yes
USE_LIBTOOL= yes
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --disable-clanJavaScript --disable-docs
INSTALLS_SHLIB= yes
CPPFLAGS= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500032
BUILD_DEPENDS+= ${LOCALBASE}/lib/libstlport_gcc.so:${PORTSDIR}/devel/stlport
RUN_DEPENDS+= ${LOCALBASE}/lib/libstlport_gcc.so:${PORTSDIR}/devel/stlport
CPPFLAGS+= -I${LOCALBASE}/include/stlport
LDFLAGS+= -lstlport_gcc
CFLAGS+= -O0
.endif
.if defined(WITHOUT_SDL)
CONFIGURE_ARGS+= --disable-clanSDL
PLIST_SUB+= SDL="@comment "
.else
USE_SDL= yes
CONFIGURE_ARGS+= --disable-sdltest
PLIST_SUB+= SDL=""
.endif
.if defined(WITHOUT_OPENGL)
CONFIGURE_ARGS+= --disable-clanGL
PLIST_SUB+= OPENGL="@comment "
.else
USE_MESA= yes
PLIST_SUB+= OPENGL=""
.endif
.if defined(WITHOUT_LIBMIKMOD)
CONFIGURE_ARGS+= --disable-clanMikMod
PLIST_SUB+= LIBMIKMOD="@comment "
.else
LIB_DEPENDS+= mikmod.2:${PORTSDIR}/audio/libmikmod
PLIST_SUB+= LIBMIKMOD=""
.endif
.if defined(WITHOUT_LIBVORBIS)
CONFIGURE_ARGS+= --disable-clanVorbis
PLIST_SUB+= LIBVORBIS="@comment "
.else
LIB_DEPENDS+= vorbis.2:${PORTSDIR}/audio/libvorbis
PLIST_SUB+= LIBVORBIS=""
.endif
pre-everything:
@${ECHO_MSG} "ClanLib has the following tunables option(s):"
@${ECHO_MSG} ""
@${ECHO_MSG} " WITHOUT_SDL=yes Turns off SDL support"
@${ECHO_MSG} " WITHOUT_OPENGL=yes Turns off OpenGL support"
@${ECHO_MSG} " WITHOUT_LIBMIKMOD=yes Turns off libmikmod support"
@${ECHO_MSG} " WITHOUT_LIBVORBIS=yes Turns off libvorbis support"
@${ECHO_MSG} ""
post-patch:
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
's|-lpthread||g'
@${REINPLACE_CMD} -e 's|@perl_exec@|${PERL}|g' \
${WRKSRC}/Documentation/Utilities/webbuilder.pl.in
.include <bsd.port.post.mk>
|