2003-01-05 05:22:49 -05:00
|
|
|
#
|
|
|
|
# Ports collection makefile for: scorched3d
|
|
|
|
# Date created: Jan 5, 2003
|
|
|
|
# Whom: mdodd
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
2003-08-23 16:27:43 -04:00
|
|
|
PORTNAME= scorched3d
|
|
|
|
PORTVERSION= 0.${SCORCH_VERSION}
|
|
|
|
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
|
|
|
|
|
2004-01-20 16:18:12 -05:00
|
|
|
LIB_DEPENDS= wx_gtk2-2.4.0:${PORTSDIR}/x11-toolkits/wxgtk2
|
2003-08-23 16:27:43 -04:00
|
|
|
|
2004-05-26 16:17:59 -04:00
|
|
|
.if defined(WITH_MYSQL)
|
|
|
|
USE_MYSQL= yes
|
|
|
|
.endif
|
|
|
|
|
2004-01-20 16:18:12 -05:00
|
|
|
USE_SDL= mixer net sdl
|
2004-05-26 16:17:59 -04:00
|
|
|
SCORCH_VERSION= 36.2
|
2003-08-23 16:27:43 -04:00
|
|
|
WRKSRC= ${WRKDIR}/scorched
|
2004-05-26 16:17:59 -04:00
|
|
|
GNU_CONFIGURE= yes
|
2003-11-09 17:33:21 -05:00
|
|
|
USE_GL= yes
|
2003-08-23 16:27:43 -04:00
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_AUTOMAKE_VER= 15
|
2004-07-01 13:06:41 -04:00
|
|
|
USE_AUTOCONF_VER= 259
|
2003-08-23 16:27:43 -04:00
|
|
|
|
|
|
|
AUTOMAKE_ARGS= --foreign
|
2003-11-09 17:33:21 -05:00
|
|
|
CONFIGURE_ARGS= --with-wx-config=${X11BASE}/bin/wxgtk2-2.4-config
|
2004-01-20 16:18:12 -05:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
2003-08-23 16:27:43 -04:00
|
|
|
MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" \
|
|
|
|
AUTOMAKE="${TRUE}" AUTOHEADER="${TRUE}"
|
|
|
|
|
2004-05-26 16:17:59 -04:00
|
|
|
.if defined(WITH_MYSQL)
|
|
|
|
CONFIGURE_ARGS+= --with-mysql
|
|
|
|
.endif
|
|
|
|
|
2004-03-13 05:33:30 -05:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-06-21 17:30:30 -04:00
|
|
|
.if ${ARCH} != "i386" && ${ARCH} != "amd64"
|
|
|
|
BROKEN= "Does not compile on !i386 and !amd64"
|
2004-03-13 05:33:30 -05:00
|
|
|
.endif
|
|
|
|
|
2003-08-23 16:27:43 -04:00
|
|
|
pre-configure:
|
|
|
|
@cd ${WRKSRC}/scripts && ${PERL} createAMMakefile.pl
|
2004-07-01 13:06:41 -04:00
|
|
|
@cd ${WRKSRC} && ${ACLOCAL}
|
2003-01-05 05:22:49 -05:00
|
|
|
|
|
|
|
pre-install:
|
2003-08-23 16:27:43 -04:00
|
|
|
@mkdir -p ${PREFIX}/games/scorched3d
|
|
|
|
|
2003-01-05 05:22:49 -05:00
|
|
|
post-install:
|
|
|
|
@ln -fs ${PREFIX}/games/scorched3d/scorched3d ${PREFIX}/bin/scorched3d
|
2004-05-26 16:17:59 -04:00
|
|
|
@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
|
2003-01-05 05:22:49 -05:00
|
|
|
|
2004-03-13 05:33:30 -05:00
|
|
|
.include <bsd.port.post.mk>
|