mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
Make bzflag depend on X and Mesa, and don't hardcode /usr/local for data
directory.
This commit is contained in:
parent
5ab279640f
commit
3c7d3681a2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=31547
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user