|
Lines 6-28
Link Here
|
| 6 |
# |
6 |
# |
| 7 |
|
7 |
|
| 8 |
PORTNAME= warzone2100 |
8 |
PORTNAME= warzone2100 |
| 9 |
PORTVERSION= 2.0.10 |
9 |
PORTVERSION= 2.2.0 |
| 10 |
PORTREVISION= 2 |
|
|
| 11 |
CATEGORIES= games |
10 |
CATEGORIES= games |
| 12 |
MASTER_SITES= http://download.gna.org/warzone/releases/2.0/ |
11 |
MASTER_SITES= SF \ |
|
|
12 |
http://download.gna.org/warzone/releases/${PORTVERSION:C/^([0-9]+\.[0-9]+)\..*$/\1/}/ |
| 13 |
|
13 |
|
| 14 |
MAINTAINER= alepulver@FreeBSD.org |
14 |
MAINTAINER= alepulver@FreeBSD.org |
| 15 |
COMMENT= Innovative 3D real-time strategy game |
15 |
COMMENT= Innovative 3D real-time strategy game |
| 16 |
|
16 |
|
| 17 |
BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip \ |
17 |
BUILD_DEPENDS= zip:${PORTSDIR}/archivers/zip \ |
| 18 |
unzip:${PORTSDIR}/archivers/unzip |
18 |
unzip:${PORTSDIR}/archivers/unzip \ |
|
|
19 |
${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex |
| 19 |
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \ |
20 |
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \ |
| 20 |
mad.2:${PORTSDIR}/audio/libmad \ |
21 |
mad.2:${PORTSDIR}/audio/libmad \ |
| 21 |
ogg.5:${PORTSDIR}/audio/libogg \ |
22 |
ogg.5:${PORTSDIR}/audio/libogg \ |
| 22 |
openal.0:${PORTSDIR}/audio/openal \ |
23 |
openal.0:${PORTSDIR}/audio/openal \ |
| 23 |
physfs.1:${PORTSDIR}/devel/physfs \ |
24 |
physfs.1:${PORTSDIR}/devel/physfs \ |
| 24 |
png.5:${PORTSDIR}/graphics/png \ |
25 |
png.5:${PORTSDIR}/graphics/png \ |
| 25 |
vorbis.4:${PORTSDIR}/audio/libvorbis |
26 |
vorbis.4:${PORTSDIR}/audio/libvorbis \ |
|
|
27 |
GLC.0:${PORTSDIR}/graphics/quesoglc \ |
| 28 |
theora.0:${PORTSDIR}/multimedia/libtheora \ |
| 29 |
popt.0:${PORTSDIR}/devel/popt |
| 26 |
|
30 |
|
| 27 |
USE_BISON= build |
31 |
USE_BISON= build |
| 28 |
GNU_CONFIGURE= yes |
32 |
GNU_CONFIGURE= yes |
|
Lines 33-43
Link Here
|
| 33 |
CONFIGURE_ARGS= --program-transform-name="" --with-distributor="FreeBSD ports" |
37 |
CONFIGURE_ARGS= --program-transform-name="" --with-distributor="FreeBSD ports" |
| 34 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ |
38 |
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ |
| 35 |
LDFLAGS="-L${LOCALBASE}/lib" \ |
39 |
LDFLAGS="-L${LOCALBASE}/lib" \ |
| 36 |
LIBS="${PTHREAD_LIBS}" |
40 |
LIBS="${PTHREAD_LIBS}" \ |
|
|
41 |
PATH="${LOCALBASE}/bin:$$PATH" |
| 37 |
REINPLACE_ARGS= -i '' |
42 |
REINPLACE_ARGS= -i '' |
|
|
43 |
MAKE_JOBS_SAFE= yes |
| 44 |
PORTDOCS= * |
| 45 |
|
| 46 |
.if !defined(WITHOUT_NLS) |
| 47 |
USE_GETTEXT= yes |
| 48 |
PLIST_SUB+= NLS="" |
| 49 |
.else |
| 50 |
CONFIGURE_ARGS+=--disable-nls |
| 51 |
PLIST_SUB+= NLS="@comment " |
| 52 |
.endif |
| 53 |
|
| 54 |
.include <bsd.port.pre.mk> |
| 55 |
|
| 56 |
.if ${OSVERSION} < 700004 |
| 57 |
BROKEN= Does not build |
| 58 |
.endif |
| 38 |
|
59 |
|
| 39 |
post-patch: |
60 |
post-patch: |
| 40 |
@${REINPLACE_CMD} -e 's|-m32||' ${WRKSRC}/configure |
61 |
@${REINPLACE_CMD} -e '/_XOPEN_SOURCE/ d' ${WRKSRC}/config.h.in |
|
|
62 |
@${REINPLACE_CMD} -e 's|NSIG|32|g; s|SIGPOLL|SIGIO|g' \ |
| 63 |
${WRKSRC}/lib/exceptionhandler/exceptionhandler.c |
| 64 |
@${REINPLACE_CMD} -e '/include.*alloca/ d' \ |
| 65 |
${WRKSRC}/lib/framework/config-macosx.h \ |
| 66 |
${WRKSRC}/lib/framework/resource_parser.tab.c \ |
| 67 |
${WRKSRC}/lib/framework/strres_parser.tab.c \ |
| 68 |
${WRKSRC}/lib/framework/wzglobal.h \ |
| 69 |
${WRKSRC}/lib/gamelib/audp_parser.tab.c \ |
| 70 |
${WRKSRC}/lib/script/chat_parser.tab.c \ |
| 71 |
${WRKSRC}/lib/script/script_parser.tab.c \ |
| 72 |
${WRKSRC}/src/message_parser.tab.c \ |
| 73 |
${WRKSRC}/src/scriptvals_parser.tab.c |
| 74 |
@${REINPLACE_CMD} -e 's|-m32||; s|-Werror||g' ${WRKSRC}/configure |
| 41 |
@${REINPLACE_CMD} -e 's|AUTHORS||; s|COPYING COPYING\.README||' \ |
75 |
@${REINPLACE_CMD} -e 's|AUTHORS||; s|COPYING COPYING\.README||' \ |
| 42 |
${WRKSRC}/Makefile.in |
76 |
${WRKSRC}/Makefile.in |
| 43 |
.if defined(NOPORTDOCS) |
77 |
.if defined(NOPORTDOCS) |
|
Lines 48-51
Link Here
|
| 48 |
.else |
82 |
.else |
| 49 |
.endif |
83 |
.endif |
| 50 |
|
84 |
|
| 51 |
.include <bsd.port.mk> |
85 |
.include <bsd.port.post.mk> |