blob: 05a53e161b5074623f33d4acad88135c0ebdb07b (
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
|
#
# Ports collection makefile for: scorched3d
# Date created: Jan 5, 2003
# Whom: mdodd
#
# $FreeBSD$
PORTNAME= scorched3d
PORTVERSION= 0.${SCORCH_VERSION}${SCORCH_REVISION}
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/Version%20${SCORCH_VERSION}/
DISTNAME= Scorched3D-${SCORCH_VERSION}-src
MAINTAINER= ports@FreeBSD.org
COMMENT= Scorched is a game based loosely on the classic DOS game
LIB_DEPENDS= fftw3f:${PORTSDIR}/math/fftw3-float \
fftw3:${PORTSDIR}/math/fftw3 \
jpeg:${PORTSDIR}/graphics/jpeg \
png:${PORTSDIR}/graphics/png
SCORCH_VERSION= 42.1
.if defined(WITH_MYSQL)
USE_MYSQL= yes
.endif
USE_OPENAL= al alut
USE_SDL= mixer net sdl
GNU_CONFIGURE= yes
USE_GL= yes
USE_GMAKE= yes
USE_AUTOTOOLS= automake:15 autoconf:262
USE_PERL5= yes
USE_WX= 2.4+
WX_CONF_ARGS= absolute
USE_DOS2UNIX= mkinstalldirs
WRKSRC= ${WRKDIR}/scorched
AUTOMAKE_ARGS= --foreign
CONFIGURE_ARGS= --program-prefix='' \
--prefix=${PREFIX}/games/scorched3d \
--datadir=${PREFIX}/games/scorched3d
.if defined(WITH_MYSQL)
CONFIGURE_ARGS+= --with-mysql
.endif
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" \
AUTOMAKE="${TRUE}" AUTOHEADER="${TRUE}"
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} -e 's,/usr/X11R6,${LOCALBASE},g' \
${WRKSRC}/configure.ac
pre-configure:
@cd ${WRKSRC}/scripts && ${PERL} createAMMakefile.pl
@cd ${WRKSRC} && ${ACLOCAL}
pre-install:
@${MKDIR} ${PREFIX}/games/scorched3d
.include <bsd.port.post.mk>
|