2003-06-14 19:03:21 +00:00
|
|
|
# New ports collection makefile for: atr3d
|
|
|
|
# Date created: 11 Jun 2003
|
|
|
|
# Whom: Kirill Ponomarew <ponomarew@oberon.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= atr3d
|
|
|
|
PORTVERSION= 0.6
|
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= ftp://ftp.avoidtheroid.com/pub/${PORTNAME}/
|
|
|
|
DISTNAME= ${PORTNAME}_source_${PORTVERSION}
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2003-07-22 10:34:12 +00:00
|
|
|
MAINTAINER= krion@FreeBSD.org
|
2003-06-14 19:03:21 +00:00
|
|
|
COMMENT= 3D asteroids-like multiplayer game
|
|
|
|
|
|
|
|
LIB_DEPENDS= openal.0:${PORTSDIR}/audio/openal
|
|
|
|
|
|
|
|
SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
|
|
|
USE_X_PREFIX= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_MESA= yes
|
2003-11-20 15:06:14 +00:00
|
|
|
USE_PERL5_BUILD=yes
|
2003-06-14 19:03:21 +00:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
|
|
|
|
CONFIGURE_ARGS= --enable-sound
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \
|
|
|
|
SDL_CONFIG="${SDL_CONFIG}"
|
|
|
|
USE_AUTOMAKE_VER= 14
|
|
|
|
|
|
|
|
CPPFLAGS= -I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}
|
|
|
|
LDFLAGS= -L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}
|
|
|
|
|
|
|
|
pre-patch:
|
|
|
|
@${PERL} -pi.orig -e 's|^aclocal|${ACLOCAL}|; \
|
|
|
|
s|^autoconf|${AUTOCONF}|; s|^automake|${AUTOMAKE}|' \
|
|
|
|
${WRKSRC}/autogen.sh
|
|
|
|
|
|
|
|
pre-configure:
|
|
|
|
cd ${WRKSRC}; ${SH} autogen.sh
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|-lpthread|${PTHREAD_LIBS}|g' \
|
|
|
|
${WRKSRC}/Makefile
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|