blob: cf44ed7c3d04f735ecbfe88d0b48aea68d254fdf (
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
|
# New ports collection makefile for: asc
# Date created: 16 February 2000
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= asc
PORTVERSION= 1.13.8.0
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= asc-hq
DISTNAME= ${PORTNAME}-source-${PORTVERSION}
.if defined(WITH_MUSIC)
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} frontiers.mp3 time_to_strike.mp3 machine_wars.mp3
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
.endif
MAINTAINER= yinjieh@csie.nctu.edu.tw
COMMENT= A turn based, multiplayer strategic game with very nice graphics
LIB_DEPENDS= paragui.4:${PORTSDIR}/x11-toolkits/paragui
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USE_SDL= image mm mixer sdl
USE_GMAKE= yes
USE_REINPLACE= yes
USE_LIBTOOL= yes
USE_GETOPT_LONG= yes
CONFIGURE_ENV= CPPFLAGS="`${SDL_CONFIG} --cflags`" \
CXXFLAGS="-D_UNICODE_BROKEN_" \
LIBS="`${SDL_CONFIG} --libs` -lm"
CONFIGURE_ARGS= --disable-paraguitest
.if defined(WITH_MUSIC)
PLIST_SUB+= MUSIC:=""
.else
PLIST_SUB+= MUSIC:="@comment "
.endif
pre-configure:
.if defined(WITH_MUSIC)
${CP} ${DISTDIR}/frontiers.mp3 ${WRKSRC}/data/music
${CP} ${DISTDIR}/time_to_strike.mp3 ${WRKSRC}/data/music
${CP} ${DISTDIR}/machine_wars.mp3 ${WRKSRC}/data/music
.endif
pre-build:
@${FIND} ${WRKSRC}/source -name \*.cpp | ${XARGS} ${REINPLACE_CMD} \
-e 's|<malloc.h>|<stdlib.h>|'
@${FIND} ${WRKSRC}/source -name \*.h | ${XARGS} ${REINPLACE_CMD} \
-e 's|<malloc.h>|<stdlib.h>|'
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|