1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/games/atr3d/Makefile
Tobias Kortkamp 29a23b8db4 Clean up LLD_UNSAFE from openal-soft ports
After FreeBSD 12.0 EOL we no longer have to worry about LLD 6 and
can drop LLD_UNSAFE from openal-soft ports.  LLD can link them fine
now but some ports needs a little help on i386 (-Wl,-znotext).

PR:		226980
Reviewed by:	jbeich (earlier version)
Differential Revision:	https://reviews.freebsd.org/D23030
2020-03-19 23:02:30 +00:00

42 lines
924 B
Makefile

# Created by: Kirill Ponomarew <ponomarew@oberon.net>
# $FreeBSD$
PORTNAME= atr3d
PORTVERSION= 0.6
PORTREVISION= 18
CATEGORIES= games
MASTER_SITES= http://rodrigo.osorio.free.fr/freebsd/distfiles/
DISTNAME= ${PORTNAME}_source_${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= 3D asteroids-like multiplayer game
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
WRKSRC= ${WRKDIR}/${PORTNAME}
USES= autoreconf gl gmake perl5 tar:tgz xorg
USE_GL= glut glu
USE_XORG= xmu xi x11
USE_PERL5= build
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
LDFLAGS_i386= -Wl,-znotext
OPTIONS_DEFINE= OPENAL
OPTIONS_DEFAULT=OPENAL
OPENAL_USES= compiler:c++11-lang openal:alut
OPENAL_CONFIGURE_ENABLE= sound
pre-patch:
@${REINPLACE_CMD} -e 's|-lopenal|& -lalut|' ${WRKSRC}/Makefile.am
post-patch:
@${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' ${WRKSRC}/Makefile.am
.include <bsd.port.mk>