diff options
author | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2001-08-06 19:54:40 +0000 |
---|---|---|
committer | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2001-08-06 19:54:40 +0000 |
commit | 4a4b5e4725294643af1844ccd266bec313cfeeb1 (patch) | |
tree | ac4b206140e112fb5b86e9530381379a5d5139c4 /games/battleball | |
parent | Update to 1.3. (diff) |
o make it PTHREAD_{LIBS,CFLAGS} safe
o some Makefile style files: use DOCSDIR and extraneous space
removals
o support NOPORTDOCS
PR: 29482
Submitted by: Patrick Li <pat@databits.net>
Notes
Notes:
svn path=/head/; revision=45895
Diffstat (limited to '')
-rw-r--r-- | games/battleball/Makefile | 6 | ||||
-rw-r--r-- | games/battleball/files/patch-af | 17 | ||||
-rw-r--r-- | games/battleball/pkg-plist | 6 |
3 files changed, 15 insertions, 14 deletions
diff --git a/games/battleball/Makefile b/games/battleball/Makefile index a3a5e6e1307d..83edce5b6ddd 100644 --- a/games/battleball/Makefile +++ b/games/battleball/Makefile @@ -17,15 +17,17 @@ MAINTAINER= ports@FreeBSD.org USE_X_PREFIX= yes USE_MESA= yes WRKSRC= ${WRKDIR}/battleball-2.1-src +MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}" \ + PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" do-install: @ ${INSTALL_PROGRAM} ${WRKSRC}/battleball ${PREFIX}/bin post-install: .if !defined(NOPORTDOCS) - @ ${MKDIR} ${PREFIX}/share/doc/battleball + @${MKDIR} ${DOCSDIR} .for file in CHANGELOG README - @ ${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/share/doc/battleball + @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} .endfor .endif diff --git a/games/battleball/files/patch-af b/games/battleball/files/patch-af index 5c67ec764104..1dc6604a8ba9 100644 --- a/games/battleball/files/patch-af +++ b/games/battleball/files/patch-af @@ -1,21 +1,20 @@ ---- Makefile Thu Sep 2 22:25:18 1999 -+++ Makefile.new Sun Apr 16 17:28:19 2000 -@@ -1,17 +1,18 @@ +--- Makefile.orig Thu Sep 2 22:25:18 1999 ++++ Makefile Mon Aug 6 00:46:04 2001 +@@ -1,17 +1,14 @@ -CXX = g++ -+CXX ?= c++ - +- # If you don't have OpenGL or Mesa, you can still compile BattleBall; # just define the symbol NO_OPENGL when compiling, and don't link with # $(GLLIBS) when linking -CXXFLAGS = -O2 -funroll-loops -+CXXFLAGS ?= -O -pipe - #CXXFLAGS = -O2 -funroll-loops -DNO_OPENGL +-#CXXFLAGS = -O2 -funroll-loops -DNO_OPENGL ++CXXFLAGS += ${PTHREAD_CFLAGS} INCS = -Ibsp -Ilib3d -XLIBS = -L/usr/X11R6/lib -lX11 -+X11BASE ?=/usr/X11R6 +-LIBS = -lm $(XLIBS) +XLIBS = -L$(X11BASE)/lib -lX11 - LIBS = -lm $(XLIBS) ++LIBS = -lm $(XLIBS) ${PTHREAD_LIBS} -GLINCS = -I/usr/local/X11/include -GLLIBS = -lXi -lXmu -lXext -L/usr/local/X11/lib -lMesaGL diff --git a/games/battleball/pkg-plist b/games/battleball/pkg-plist index d6efb5917d67..7638c92ae39c 100644 --- a/games/battleball/pkg-plist +++ b/games/battleball/pkg-plist @@ -1,4 +1,4 @@ bin/battleball -share/doc/battleball/CHANGELOG -share/doc/battleball/README -@dirrm share/doc/battleball +%%PORTDOCS%%share/doc/battleball/CHANGELOG +%%PORTDOCS%%share/doc/battleball/README +%%PORTDOCS%%@dirrm share/doc/battleball |