diff options
author | nbm <nbm@FreeBSD.org> | 2000-08-12 09:10:45 +0800 |
---|---|---|
committer | nbm <nbm@FreeBSD.org> | 2000-08-12 09:10:45 +0800 |
commit | 5f465f533a0469f888d0df97365f44bb4dc77618 (patch) | |
tree | 5d678519a4fb933b7826aa1c552c7cd9968000c3 /games/bzflag | |
parent | 7bd64927b140c7df6472406bc0b3e2ad1b848077 (diff) | |
download | freebsd-ports-gnome-5f465f533a0469f888d0df97365f44bb4dc77618.tar.gz freebsd-ports-gnome-5f465f533a0469f888d0df97365f44bb4dc77618.tar.zst freebsd-ports-gnome-5f465f533a0469f888d0df97365f44bb4dc77618.zip |
Make bzflag depend on X and Mesa, and don't hardcode /usr/local for data
directory.
Diffstat (limited to 'games/bzflag')
-rw-r--r-- | games/bzflag/Makefile | 9 | ||||
-rw-r--r-- | games/bzflag/files/config-sys | 6 |
2 files changed, 12 insertions, 3 deletions
diff --git a/games/bzflag/Makefile b/games/bzflag/Makefile index 84c32c6ef865..d9209ce3f5cd 100644 --- a/games/bzflag/Makefile +++ b/games/bzflag/Makefile @@ -14,8 +14,15 @@ EXTRACT_SUFX= .src.tar.gz MAINTAINER= nbm@FreeBSD.org +LIB_DEPENDS= GL.14:${PORTSDIR}/graphics/Mesa3 + WRKSRC= ${WRKDIR}/bzflag +USE_XLIB= yes + +MAKE_ENV= PORTCFLAGS="${CFLAGS}" PORTCXXFLAGS="${CXXFLAGS}" \ + PORTPREFIX="${PREFIX}" + MAN6= bzflag.6 bzfrelay.6 bzfls.6 bzfs.6 do-configure: @@ -24,5 +31,7 @@ do-configure: do-install: @${INSTALL_PROGRAM} ${WRKSRC}/bin/* ${PREFIX}/bin/ @${INSTALL_MAN} ${WRKSRC}/man/*.6 ${PREFIX}/man/man6/ + @${MKDIR} ${PREFIX}/share/bzflag/data + @${INSTALL_DATA} ${WRKSRC}/data/* ${PREFIX}/share/bzflag/data/ .include <bsd.port.mk> diff --git a/games/bzflag/files/config-sys b/games/bzflag/files/config-sys index aa9c32405924..02253fd025f3 100644 --- a/games/bzflag/files/config-sys +++ b/games/bzflag/files/config-sys @@ -23,7 +23,7 @@ XF86VIDMODE_LIB = -lXxf86vm # # install locations # -INSTALL_DATA_DIR = /usr/local/share/bzflag/data +INSTALL_DATA_DIR = ${PORTPREFIX}/share/bzflag/data # # tools @@ -54,8 +54,8 @@ PCXXDEFS = -D_BSD_SOURCE -DHALF_RATE_AUDIO \ # PCOPTS = -Wall -W -ansi $(ACOPTS) PCXXOPTS = -Wall -W -fno-exceptions -fno-rtti $(ACXXOPTS) -COPT = -DNDEBUG -O2 -DAddrLen='socklen_t' -CXXOPT = -DNDEBUG -O2 -ffast-math -fomit-frame-pointer -fnonnull-objects \ +COPT = -DNDEBUG ${PORTCFLAGS} -DAddrLen='socklen_t' +CXXOPT = -DNDEBUG ${PORTCXXFLAGS} -ffast-math -fomit-frame-pointer -fnonnull-objects \ -fexpensive-optimizations -DAddrLen='socklen_t' CDEBUG = -DDEBUG -g CXXDEBUG = -DDEBUG -g |