freebsd-ports/games/einstein/files/patch-Makefile
Edwin Groothuis 1eddbdb2aa Upgrade to 2.0:
Einstein 2.0 features sound support, full internalization,
	russian localization, reengeneered resource subsystem to
	allow custom graphics themes and in-game rules browser.
2005-10-12 22:37:50 +00:00

34 lines
1.2 KiB
Text

--- Makefile.orig Mon Sep 26 07:20:30 2005
+++ Makefile Thu Oct 13 08:35:14 2005
@@ -5,7 +5,7 @@
########################################
# installation prefix
-PREFIX=/usr/local
+#PREFIX=/usr/local
########################################
#
@@ -16,8 +16,8 @@
OPTIMIZE=#-O6 -march=pentium4 -mfpmath=sse -fomit-frame-pointer -funroll-loops
PROFILER=#-pg
DEBUG=#-ggdb
-CXXFLAGS=-pipe -Wall $(OPTIMIZE) $(DEBUG) `sdl-config --cflags` -DPREFIX=L\"$(PREFIX)\" $(PROFILER)
-LNFLAGS=-pipe -lSDL_ttf -lfreetype `sdl-config --libs` -lz -lSDL_mixer $(PROFILER)
+CXXFLAGS=-pipe -Wall $(OPTIMIZE) $(DEBUG) `${SDL_CONFIG} --cflags` -DPREFIX=L\"$(PREFIX)\" $(PROFILER)
+LNFLAGS=-pipe -lSDL_ttf -lfreetype `${SDL_CONFIG} --libs` -lz -lSDL_mixer $(PROFILER)
INSTALL=install
TARGET=einstein
@@ -61,8 +61,9 @@
./$(TARGET)
install: $(TARGET)
- $(INSTALL) -s -D $(TARGET) $(PREFIX)/bin/$(TARGET)
- $(INSTALL) -D einstein.res $(PREFIX)/share/einstein/res/einstein.res
+ $(INSTALL) $(TARGET) $(PREFIX)/bin/$(TARGET)
+ mkdir -p $(PREFIX)/share/einstein/res/
+ $(INSTALL) einstein.res $(PREFIX)/share/einstein/res/einstein.res
# DO NOT DELETE THIS LINE -- make depend depends on it.