mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
Use MAKE_ARGS & PLIST/PORTDOCS
This commit is contained in:
parent
53c6287018
commit
42cec83b66
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=134348
@ -17,9 +17,17 @@ COMMENT= 3D single/multiplayer military soccer game for X Window System
|
||||
USE_X_PREFIX= yes
|
||||
USE_GL= yes
|
||||
WRKSRC= ${WRKDIR}/battleball-2.1-src
|
||||
MAKE_ENV= PTHREAD_LIBS="${PTHREAD_LIBS}" \
|
||||
PTHREAD_CFLAGS="${PTHREAD_CFLAGS}"
|
||||
CFLAGS+= -Wno-deprecated
|
||||
CFLAGS+= -Wno-deprecated ${PTHREAD_CFLAGS}
|
||||
MAKE_ARGS= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
|
||||
XLIBS="-L${X11BASE}/lib -lX11" \
|
||||
LIBS="-lm ${XLIBS} ${PTHREAD_LIBS}" \
|
||||
GLINCS="-I${X11BASE}/include" \
|
||||
GLLIBS="-lXi -lXmu -lXext -L${X11BASE}/lib -lGL"
|
||||
|
||||
PLIST_FILES= bin/battleball
|
||||
.if !defined(NOPORTDOCS)
|
||||
PORTDOCS= CHANGELOG README
|
||||
.endif
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
@ -33,7 +41,7 @@ do-install:
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
.for file in CHANGELOG README
|
||||
.for file in ${PORTDOCS}
|
||||
@${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
||||
.endfor
|
||||
.endif
|
||||
|
@ -1,25 +0,0 @@
|
||||
--- Makefile.orig Thu Sep 2 22:25:18 1999
|
||||
+++ Makefile Mon Aug 6 00:46:04 2001
|
||||
@@ -1,17 +1,14 @@
|
||||
-CXX = g++
|
||||
-
|
||||
# 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 = -O2 -funroll-loops -DNO_OPENGL
|
||||
+CXXFLAGS += ${PTHREAD_CFLAGS}
|
||||
|
||||
INCS = -Ibsp -Ilib3d
|
||||
-XLIBS = -L/usr/X11R6/lib -lX11
|
||||
-LIBS = -lm $(XLIBS)
|
||||
+XLIBS = -L$(X11BASE)/lib -lX11
|
||||
+LIBS = -lm $(XLIBS) ${PTHREAD_LIBS}
|
||||
|
||||
-GLINCS = -I/usr/local/X11/include
|
||||
-GLLIBS = -lXi -lXmu -lXext -L/usr/local/X11/lib -lMesaGL
|
||||
+GLINCS = -I$(X11BASE)/include
|
||||
+GLLIBS = -lXi -lXmu -lXext -L$(X11BASE)/lib -lGL
|
||||
#GLLIBS =
|
||||
|
||||
BSPOBJS = bsp/brep.o bsp/bsp.o bsp/polygon.o
|
@ -1,4 +0,0 @@
|
||||
bin/battleball
|
||||
%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
Loading…
Reference in New Issue
Block a user