blob: 793a9c4e1554371a3d492e9e8e979feefa79fc87 (
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
|
# New ports collection makefile for: alephone
# Date created: 27 February 2001
# Whom: Michael Alyn Miller <malyn@strangeGizmo.com>
#
# $FreeBSD$
#
PORTNAME= alephone
PORTVERSION= 20060701
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= marathon
DISTNAME= AlephOne-${PORTVERSION}
MAINTAINER= ray@cultofray.net
COMMENT= The open source version of Bungie's Marathon game
BUILD_DEPENDS= ${LOCALBASE}/include/boost/function.hpp:${PORTSDIR}/devel/boost
LIB_DEPENDS= speex.3:${PORTSDIR}/audio/speex \
lua.5:${PORTSDIR}/lang/lua50
USE_BZIP2= yes
USE_X_PREFIX= yes
USE_GNOME= gnometarget
USE_SDL= image net sdl sound
USE_GL= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include
LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500035
CXXFLAGS+= -ftemplate-depth-30
.endif
.if ${OSVERSION} < 500000
BROKEN= does not compile
.endif
post-patch:
@${REINPLACE_CMD} -e 's|<SDL/SDL|<SDL|g' \
${WRKSRC}/Source_Files/Misc/thread_priority_sdl_posix.cpp
.if ${OSVERSION} < 500035
@${REINPLACE_CMD} -e 's|streambuf>|streambuf\.h>|' \
${WRKSRC}/Source_Files/CSeries/snprintf.h
@${REINPLACE_CMD} -e 's|m_buffer\.clear()|m_buffer.resize(0)|g ; \
s|m_displayBuffer\.clear()|m_displayBuffer.resize(0)|g' \
${WRKSRC}/Source_Files/Misc/Console.cpp
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|