fbd0197639
- Update audio/sdl_mixer to 1.2.15 - Update graphics/sdl_image to 1.2.12 - Update graphics/sdl_ttf to 2.0.11 - Update graphics/sdl_gfx to 2.0.23 - Update net/sdl_net to 1.2.8 - Bump PORTREVISIONs on ports that depend on one or more packages due to ABI and shared library version changes - Update Mk/bsd.sdl.mk accordingly for the new shared library versions Tested by: exp-run by pav
69 lines
1.7 KiB
Makefile
69 lines
1.7 KiB
Makefile
#
|
|
# Ports collection makefile for: scorched3d
|
|
# Date created: Jan 5, 2003
|
|
# Whom: mdodd
|
|
#
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= scorched3d
|
|
PORTVERSION= 0.${SCORCH_VERSION}${SCORCH_REVISION}
|
|
PORTREVISION= 3
|
|
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
|
|
|
|
LICENSE= GPLv1
|
|
|
|
SCORCH_VERSION= 43.1c
|
|
|
|
.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 autoconf
|
|
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
|
|
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
|
|
@${REINPLACE_CMD} -e 's,png_infopp_NULL,NULL,g' \
|
|
${WRKSRC}/src/common/image/ImagePng.cpp
|
|
|
|
pre-configure:
|
|
@cd ${WRKSRC}/scripts && ${PERL} createAMMakefile.pl
|
|
@cd ${WRKSRC} && ${ACLOCAL}
|
|
@${INSTALL_SCRIPT} ${AUTOCONF_DIR}/install-sh ${WRKSRC}
|
|
# @${REINPLACE_CMD} -e 's/
|
|
$$//' ${WRKSRC}/install-sh
|
|
|
|
pre-install:
|
|
@${MKDIR} ${PREFIX}/games/scorched3d
|
|
|
|
.include <bsd.port.post.mk>
|