aboutsummaryrefslogtreecommitdiff
path: root/games/scorched3d/Makefile
blob: 0e6aa71a804f8f0c771ecd55c871fe64a898b0c1 (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
#
# Ports collection makefile for:	scorched3d
# Date created:				Jan 5, 2003
# Whom:					mdodd
#
# $FreeBSD$

PORTNAME=		scorched3d
PORTVERSION=		0.${SCORCH_VERSION}
PORTREVISION=	1
CATEGORIES=		games
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	scorched3d
DISTNAME=		Scorched3D-${SCORCH_VERSION}-src

MAINTAINER=		mdodd@FreeBSD.org
COMMENT=		Scorched is a game based loosely on the classic DOS game

LIB_DEPENDS=		wx_gtk2-2.4.0:${PORTSDIR}/x11-toolkits/wxgtk2

.if defined(WITH_MYSQL)
USE_MYSQL=		yes
.endif

USE_SDL=		mixer net sdl
SCORCH_VERSION=		36.2
WRKSRC=			${WRKDIR}/scorched
GNU_CONFIGURE=		yes
USE_GL=			yes
USE_GMAKE=		yes
USE_AUTOMAKE_VER=	15
USE_AUTOCONF_VER=	259

AUTOMAKE_ARGS=		--foreign
CONFIGURE_ARGS=		--with-wx-config=${X11BASE}/bin/wxgtk2-2.4-config
CONFIGURE_ENV=		CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
MAKE_ARGS=		ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" \
			AUTOMAKE="${TRUE}" AUTOHEADER="${TRUE}"

.if defined(WITH_MYSQL)
CONFIGURE_ARGS+=	--with-mysql
.endif

.include <bsd.port.pre.mk>

.if ${ARCH} != "i386" && ${ARCH} != "amd64"
BROKEN=			"Does not compile on !i386 and !amd64"
.endif

pre-configure:
	@cd ${WRKSRC}/scripts && ${PERL} createAMMakefile.pl
	@cd ${WRKSRC} && ${ACLOCAL}

pre-install:
	@mkdir -p ${PREFIX}/games/scorched3d

post-install:
	@ln -fs ${PREFIX}/games/scorched3d/scorched3d ${PREFIX}/bin/scorched3d
	@chmod ugo+rw ${PREFIX}/games/scorched3d/data/display.xml
	@chmod ugo+rw ${PREFIX}/games/scorched3d/data/server.xml
.if defined(WITH_MYSQL)
	@chmod ugo+rw ${PREFIX}/games/scorched3d/data/mysql.xml
.endif

.include <bsd.port.post.mk>