freebsd-ports/games/gracer/Makefile
Niclas Zeising be6c15b5c6 Add USES=xorg USES=gl, ports categories g
Add USES=xorg and USES=gl to ports in categories starting with 'g'.
While here, try to sprinkle other USES (mostly gnome and sdl) as needed.
2019-11-05 22:16:14 +00:00

36 lines
813 B
Makefile

# Created by: nox@jelal.kn-bremen.de
# $FreeBSD$
PORTNAME= gracer
PORTVERSION= 0.1.5
PORTREVISION= 22
CATEGORIES= games
MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= 3D motor sport simulator
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ${LOCALBASE}/lib/libplibsl.a:x11-toolkits/plib
LIB_DEPENDS= libgif.so:graphics/giflib \
libpng.so:graphics/png
USES= gl gmake jpeg localbase perl5 tcl
USE_GL= glut
USE_PERL5= build
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-plib=${LOCALBASE}
CPPFLAGS+= -I${TCL_INCLUDEDIR}
post-patch:
@${REINPLACE_CMD} -i '' -e 's|<malloc.h>|<stdlib.h>|' \
${WRKSRC}/common/gr_memory.h
@${REINPLACE_CMD} \
-e 's|lib/tclConfig.sh|lib/tcl${TCL_VER}/tclConfig.sh|' \
-e '/SOUND_LIBS=/s/"$$/ -lplibul"/' \
${WRKSRC}/configure
.include <bsd.port.mk>