mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-01 01:17:02 +00:00
3e4ed01146
- 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)
67 lines
1.6 KiB
Makefile
67 lines
1.6 KiB
Makefile
# New ports collection makefile for: atr3d
|
|
# Date created: 11 Jun 2003
|
|
# Whom: Kirill Ponomarew <ponomarew@oberon.net>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= atr3d
|
|
PORTVERSION= 0.6
|
|
PORTREVISION= 10
|
|
CATEGORIES= games
|
|
MASTER_SITES= ftp://ftp.avoidtheroid.com/pub/${PORTNAME}/
|
|
DISTNAME= ${PORTNAME}_source_${PORTVERSION}
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= gahr@FreeBSD.org
|
|
COMMENT= 3D asteroids-like multiplayer game
|
|
|
|
OPTIONS= SOUND "Enable sound" ON
|
|
|
|
SDL_CONFIG?= ${LOCALBASE}/bin/sdl-config
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
USE_GMAKE= yes
|
|
USE_GL= glut glu
|
|
USE_XORG= xmu xi x11
|
|
USE_PERL5_BUILD=yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
|
|
CONFIGURE_ARGS= --enable-sound
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \
|
|
SDL_CONFIG="${SDL_CONFIG}"
|
|
USE_AUTOTOOLS= automake:19 autoconf:261
|
|
|
|
CPPFLAGS= -I${LOCALBASE}/include -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
|
LDFLAGS= -L${LOCALBASE}/lib -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
|
|
|
|
|
.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
|
|
|
|
pre-patch:
|
|
@${PERL} -pi.orig -e 's|^aclocal|${ACLOCAL}|; \
|
|
s|^autoconf|${AUTOCONF}|; s|^automake|${AUTOMAKE}|' \
|
|
${WRKSRC}/autogen.sh
|
|
@${REINPLACE_CMD} -e 's|-lopenal|& -lalut|' ${WRKSRC}/Makefile.am
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/Makefile.am
|
|
|
|
pre-configure:
|
|
cd ${WRKSRC}; ${SH} autogen.sh
|
|
|
|
post-configure:
|
|
@${REINPLACE_CMD} -e \
|
|
's|-lpthread|${PTHREAD_LIBS}|g' \
|
|
${WRKSRC}/Makefile
|
|
|
|
.include <bsd.port.post.mk>
|