2003-06-14 21:03:21 +02:00
|
|
|
# New ports collection makefile for: atr3d
|
|
|
|
# Date created: 11 Jun 2003
|
|
|
|
# Whom: Kirill Ponomarew <ponomarew@oberon.net>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= atr3d
|
|
|
|
PORTVERSION= 0.6
|
2009-01-23 17:28:36 +01:00
|
|
|
PORTREVISION= 11
|
2003-06-14 21:03:21 +02:00
|
|
|
CATEGORIES= games
|
|
|
|
MASTER_SITES= ftp://ftp.avoidtheroid.com/pub/${PORTNAME}/
|
|
|
|
DISTNAME= ${PORTNAME}_source_${PORTVERSION}
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2008-02-25 22:44:26 +01:00
|
|
|
MAINTAINER= gahr@FreeBSD.org
|
2003-06-14 21:03:21 +02:00
|
|
|
COMMENT= 3D asteroids-like multiplayer game
|
|
|
|
|
2008-03-10 17:01:51 +01:00
|
|
|
OPTIONS= SOUND "Enable sound" ON
|
2003-06-14 21:03:21 +02:00
|
|
|
|
2006-09-20 13:21:59 +02:00
|
|
|
SDL_CONFIG?= ${LOCALBASE}/bin/sdl-config
|
2003-06-14 21:03:21 +02:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
2008-03-10 17:01:51 +01:00
|
|
|
USE_GL= glut glu
|
|
|
|
USE_XORG= xmu xi x11
|
2003-11-20 16:06:14 +01:00
|
|
|
USE_PERL5_BUILD=yes
|
2003-06-14 21:03:21 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --enable-sound
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \
|
|
|
|
SDL_CONFIG="${SDL_CONFIG}"
|
2008-08-20 02:57:32 +02:00
|
|
|
USE_AUTOTOOLS= automake:19 autoconf:262
|
2003-06-14 21:03:21 +02:00
|
|
|
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
CPPFLAGS= -I${LOCALBASE}/include -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
|
|
|
LDFLAGS= -L${LOCALBASE}/lib -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
2003-06-14 21:03:21 +02:00
|
|
|
|
2008-03-10 17:01:51 +01:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_SOUND)
|
|
|
|
LIB_DEPENDS+= alut.1:${PORTSDIR}/audio/freealut
|
|
|
|
CONFIGURE_ARGS+= --enable-sound
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-sound
|
|
|
|
.endif
|
|
|
|
|
2003-06-14 21:03:21 +02:00
|
|
|
pre-patch:
|
|
|
|
@${PERL} -pi.orig -e 's|^aclocal|${ACLOCAL}|; \
|
|
|
|
s|^autoconf|${AUTOCONF}|; s|^automake|${AUTOMAKE}|' \
|
|
|
|
${WRKSRC}/autogen.sh
|
2006-04-23 12:14:30 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|-lopenal|& -lalut|' ${WRKSRC}/Makefile.am
|
2003-06-14 21:03:21 +02:00
|
|
|
|
2006-12-01 15:05:08 +01:00
|
|
|
post-patch:
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/Makefile.am
|
2006-12-01 15:05:08 +01:00
|
|
|
|
2003-06-14 21:03:21 +02:00
|
|
|
pre-configure:
|
|
|
|
cd ${WRKSRC}; ${SH} autogen.sh
|
|
|
|
|
|
|
|
post-configure:
|
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|-lpthread|${PTHREAD_LIBS}|g' \
|
|
|
|
${WRKSRC}/Makefile
|
|
|
|
|
2008-03-10 17:01:51 +01:00
|
|
|
.include <bsd.port.post.mk>
|