summaryrefslogtreecommitdiff
path: root/games/asc/Makefile
blob: 469b2a600b23f188b739ed1d8b64e31f040a3310 (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
40
41
42
43
44
45
46
47
48
49
50
51
# $NetBSD: Makefile,v 1.44 2010/01/18 09:58:50 wiz Exp $

DISTNAME=	asc-source-1.16.4.0
PKGNAME=	${DISTNAME:S/-source//}
PKGREVISION=	4
CATEGORIES=	games
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=asc-hq/}
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.asc-hq.org/
COMMENT=	Turn based strategy game

PKG_DESTDIR_SUPPORT=	user-destdir

DIST_SUBDIR=		asc
DISTFILES=		${DISTNAME}${EXTRACT_SUFX} frontiers.mp3 \
			machine_wars.mp3 time_to_strike.mp3
.for file in frontiers.mp3 machine_wars.mp3 time_to_strike.mp3
SITES.${file}=	http://asc-hq.org/
.endfor
WRKSRC=			${WRKDIR}/${PKGNAME_NOREV}
USE_LANGUAGES=		c c++
USE_LIBTOOL=		yes
USE_PKGLOCALEDIR=	yes
USE_TOOLS+=		gmake perl:build pkg-config
REPLACE_PERL=		checkfordata.pl
GNU_CONFIGURE=		yes
CPPFLAGS.NetBSD+=	-D_UNICODE_BROKEN_

MAKE_ENV+=		top_src_dir=.

# ../weaponguide.cpp:1205: virtual memory exhausted
UNLIMIT_RESOURCES=	datasize

post-extract:
	mv ${WRKDIR}/*.mp3 ${WRKSRC}/data/music

# bug in 1.16.4.0, remove on update
post-install:
	${INSTALL_DATA} ${WRKSRC}/data/asc.gfx ${DESTDIR}${PREFIX}/share/games/asc

.include "../../archivers/bzip2/buildlink3.mk"
.include "../../audio/SDL_mixer/buildlink3.mk"
.include "../../audio/libvorbis/buildlink3.mk"
.include "../../devel/SDLmm/buildlink3.mk"
.include "../../devel/libsigc++1/buildlink3.mk"
.include "../../graphics/SDL_image/buildlink3.mk"
.include "../../multimedia/smpeg/buildlink3.mk"
.include "../../x11/paragui/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"