- Add a patch I've forgotten to cvs add -> make the port respect PREFIX, LOCALBASE and CFLAGS

Reported by:    QATty
This commit is contained in:
Dmitry Marakasov 2009-06-15 23:49:22 +00:00
parent 99213c253b
commit 6169a4f8c8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=235971
2 changed files with 26 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= vor
PORTVERSION= 0.5.4
PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://qualdan.com/vor/ \
http://mirror.amdmi3.ru/

View File

@ -0,0 +1,25 @@
--- Makefile.orig 2009-05-29 07:45:20.000000000 +0400
+++ Makefile 2009-05-29 17:39:12.000000000 +0400
@@ -15,19 +15,18 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-prefix = /usr/local
+prefix = ${PREFIX}
exec_prefix = $(prefix)
datarootdir = $(prefix)/share
pkgdatadir = $(datarootdir)/vor
bindir = $(exec_prefix)/bin
-CFLAGS := -Wall -O3
LDFLAGS :=
paths := -DDATA_PREFIX=\"$(pkgdatadir)\"
-sdl-cflags := $(shell sdl-config --cflags)
-sdl-ldflags := $(shell sdl-config --libs)
+sdl-cflags := $(shell $(SDL_CONFIG) --cflags)
+sdl-ldflags := $(shell $(SDL_CONFIG) --libs)
ldflags := $(sdl-ldflags) -lSDL_image -lSDL_mixer $(LDFLAGS)
cflags := $(sdl-cflags) $(paths) $(CFLAGS)