aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormezz <mezz@FreeBSD.org>2008-03-13 10:59:04 +0800
committermezz <mezz@FreeBSD.org>2008-03-13 10:59:04 +0800
commitb642bf13e540eba0662b54b7d70bd71ac5570cb6 (patch)
tree60067c602857edd0c8ec14d87b58535241cf4889
parent781c1aaf8a99b26d53c1671193d2c72f0a8ef588 (diff)
downloadfreebsd-ports-gnome-b642bf13e540eba0662b54b7d70bd71ac5570cb6.tar.gz
freebsd-ports-gnome-b642bf13e540eba0662b54b7d70bd71ac5570cb6.tar.zst
freebsd-ports-gnome-b642bf13e540eba0662b54b7d70bd71ac5570cb6.zip
-Add a mirror.
-Remove USE_X_PREFIX. -Move from patch-Makefile to post-patch. No function change.
-rw-r--r--games/neverball/Makefile11
-rw-r--r--games/neverball/files/patch-Makefile28
2 files changed, 6 insertions, 33 deletions
diff --git a/games/neverball/Makefile b/games/neverball/Makefile
index 9ce19519525d..173c211fa10e 100644
--- a/games/neverball/Makefile
+++ b/games/neverball/Makefile
@@ -9,7 +9,8 @@ PORTNAME= neverball
PORTVERSION= 1.4.0
PORTREVISION= 2
CATEGORIES= games
-MASTER_SITES= http://offload1.icculus.org/neverball/
+MASTER_SITES= http://offload1.icculus.org/neverball/ \
+ http://offload2.icculus.org/neverball/
MAINTAINER= mezz@FreeBSD.org
COMMENT= Tilt the floor to guide a ball through an obstacle course
@@ -19,9 +20,8 @@ BUILD_DEPENDS= ${FREETYPE_CONFIG}:${PORTSDIR}/print/freetype2
FREETYPE_CONFIG?= ${LOCALBASE}/bin/freetype-config
USE_GL= gl
-USE_GMAKE= yes
-USE_X_PREFIX= yes
USE_SDL= image mixer ttf
+USE_GMAKE= yes
DOCS= CHANGES COPYING README
DIRS= back bgm map-back map-mym map-paxed map-putt map-rlk mtrl obj \
@@ -30,8 +30,9 @@ DIRS= back bgm map-back map-mym map-paxed map-putt map-rlk mtrl obj \
post-patch:
@${REINPLACE_CMD} -e 's|./data|${DATADIR}/data|g' \
${WRKSRC}/share/config.h
- @${REINPLACE_CMD} -e 's|%%FREETYPE_CONFIG%%|${FREETYPE_CONFIG}|g' \
- ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e 's|freetype-config|${FREETYPE_CONFIG}|g ; \
+ s|sdl-config|${SDL_CONFIG}|g ; s| -O3| ${CFLAGS}|g' \
+ ${WRKSRC}/Makefile
do-install:
.for ii in ${DIRS}
diff --git a/games/neverball/files/patch-Makefile b/games/neverball/files/patch-Makefile
deleted file mode 100644
index 9cc03d2a0092..000000000000
--- a/games/neverball/files/patch-Makefile
+++ /dev/null
@@ -1,28 +0,0 @@
---- Makefile.orig Sat Jul 10 20:20:15 2004
-+++ Makefile Sat Jul 10 20:21:13 2004
-@@ -3,20 +3,20 @@
-
- # Maybe you need one of these. Maybe you don't.
-
--#X11_PATH= -L/usr/X11/lib
--#X11_PATH= -L/usr/X11R6/lib
-+X11_PATH= -L${X11BASE}/lib
-+X11_PATHI= -I${X11BASE}/include
-
- OGL_LIBS= -lGL -lm
- #OGL_LIBS= -lm # Think Different
-
- #------------------------------------------------------------------------------
-
--CFLAGS= -Wall -O3 -ansi $(shell sdl-config --cflags)
-+CFLAGS+= -Wall -ansi $(shell ${SDL_CONFIG} --cflags) ${X11_PATHI}
- #CFLAGS= -Wall -g -ansi $(shell sdl-config --cflags)
- #CFLAGS= -Wall -pg -ansi $(shell sdl-config --cflags)
-
--SDL_LIBS= $(shell sdl-config --libs)
--FT2_LIBS= $(shell freetype-config --libs)
-+SDL_LIBS= $(shell ${SDL_CONFIG} --libs)
-+FT2_LIBS= $(shell %%FREETYPE_CONFIG%% --libs)
-
- MAPC_TARG= mapc
- BALL_TARG= neverball