mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-30 01:15:52 +00:00
3e5a067d5f
PR: ports/51527 Submitted by: Erik Greenwald <erik@smluc.org>
44 lines
1.1 KiB
Makefile
44 lines
1.1 KiB
Makefile
# ex:ts=8
|
|
# Ports collection makefile for: gl-117
|
|
# Date created: Aug 8, 2002
|
|
# Whom: ijliao
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= gl-117
|
|
PORTVERSION= 0.8.8
|
|
CATEGORIES= games
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= erik@smluc.org
|
|
COMMENT= An OpenGL & SDL action flight simulator
|
|
|
|
LIB_DEPENDS= SDL_mixer.2:${PORTSDIR}/audio/sdl_mixer
|
|
|
|
SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
|
|
|
|
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
|
|
|
|
.include <bsd.port.mk>
|