summaryrefslogtreecommitdiff
path: root/games/gl-117/Makefile
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2003-09-04 12:48:40 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2003-09-04 12:48:40 +0000
commit14d4a1ea2d06059d43fc4fdd034d042a04dfc36a (patch)
tree6738f5e30401f4847d9ca929b4cfee8a798d5160 /games/gl-117/Makefile
parent[1] Use new depends scheme for postgresql slave ports: (diff)
[Maintainer Update] games/gl-117 0.9 -> 1.0
reshmeat blurb: This release adds three more missions to the campaign. It provides more realistic physics (optional), a new fighter, some visual improvements, and adjustments concerning almost everything. Some important bugfixes have been made. PR: ports/55931 Submitted by: Erik Greenwald <erik@smluc.org>
Notes
Notes: svn path=/head/; revision=88525
Diffstat (limited to 'games/gl-117/Makefile')
-rw-r--r--games/gl-117/Makefile31
1 files changed, 8 insertions, 23 deletions
diff --git a/games/gl-117/Makefile b/games/gl-117/Makefile
index aa6d7898bed8..2f5475e4f6b9 100644
--- a/games/gl-117/Makefile
+++ b/games/gl-117/Makefile
@@ -7,38 +7,23 @@
#
PORTNAME= gl-117
-PORTVERSION= 0.9
+PORTVERSION= 1.0
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
+EXTRACT_SUFX= -src.tar.gz
MAINTAINER= erik@smluc.org
COMMENT= An OpenGL & SDL action flight simulator
-LIB_DEPENDS= SDL_mixer.2:${PORTSDIR}/audio/sdl_mixer\
- glut.3:${PORTSDIR}/graphics/Mesa3
-
-SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
+LIB_DEPENDS= SDL_mixer.2:${PORTSDIR}/audio/sdl_mixer
+WRKSRC= ${WRKDIR}/${DISTNAME}-src
+USE_SDL= yes
USE_MESA= yes
-USE_REINPLACE= yes
GNU_CONFIGURE= yes
-CONFIGURE_TARGET= --build=${ARCH}-portbld-freebsd${OSREL}
-CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
-
-CPPFLAGS= `${SDL_CONFIG} --cflags` -I${X11BASE}/include
-LDFLAGS= `${SDL_CONFIG} --libs` -L${X11BASE}/lib
-
-post-patch:
-.for file in configure src/audio.h src/glland.h src/main.h src/net.h
- @${REINPLACE_CMD} -e 's|^CPPFLAGS="-D|CPPFLAGS="\$$CPPFLAGS -D|g ; \
- s|SDL/||g ; \
- s|-lSDL |-lSDL-1.1 |g ; \
- s|-lSDLmain|-lSDLmain-1.1|g' ${WRKSRC}/${file}
-.endfor
- @cd ${WRKSRC}/src \
- && ${MV} loader_tga.cpp loader_tga.cpp.bak \
- && ${TR} -d '\015' < loader_tga.cpp.bak > loader_tga.cpp
- @${REINPLACE_CMD} -e 's!"SDL/!"SDL11/!g' ${WRKSRC}/src/common.h
+CONFIGURE_ARGS= --x-include=${X11BASE}/include \
+ --x-libraries=${X11BASE}/lib \
+ --with-opengl-dir=${X11BASE}
.include <bsd.port.mk>