freebsd-ports/games/amphetamine/files/patch-aa
Martin Wilke 3e4ed01146 - Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+

Thanks to all Helpers:
	Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
	ehaupt, nox, itetcu, flz, pav

PR:		116263
Tested on:	pointyhat
Approved by:	portmgr (pav)
2008-04-19 17:56:05 +00:00

84 lines
2.9 KiB
Text

$FreeBSD$
--- Makefile.orig Tue Mar 26 04:11:27 2002
+++ Makefile Sun Aug 3 22:14:39 2003
@@ -3,13 +3,13 @@
#===============
# Install Paths
-PREFIX := /usr/local
-INSTALL_DIR := ${PREFIX}/games/amph
+PREFIX ?= /usr/local
+INSTALL_DIR := ${PREFIX}/share/amph
# Libraries
USE_LIB_XPM := TRUE
-SDL_CONFIG := sdl-config
+SDL_CONFIG ?= sdl-config
SDL_HEADERS := $(shell $(SDL_CONFIG) --cflags)
SDL_LIBS := $(shell $(SDL_CONFIG) --libs)
@@ -22,23 +22,23 @@
# Directories to search for header files
-SEARCHDIRS := -I${MYCODEDIR} ${SDL_HEADERS}
+SEARCHDIRS := -I${MYCODEDIR} ${SDL_HEADERS} -I ${LOCALBASE}/include
# makemake variables
-LINKER := g++
-DEPENDFLAGS := -g ${SEARCHDIRS}
+LINKER := ${CXX}
+DEPENDFLAGS := ${SEARCHDIRS}
TOUCHHEADERS := ${MYCODEDIR}/*.h
# C
-CC := gcc
-CFLAGS = ${DEPENDFLAGS}
+CC ?= gcc
+CFLAGS += ${DEPENDFLAGS}
# C++
-CXX := g++
-CXXFLAGS = ${DEPENDFLAGS} -O9 -funroll-loops -fomit-frame-pointer -ffast-math -Wcast-align
+CXX ?= g++
+CXXFLAGS += ${DEPENDFLAGS} -Wcast-align
%.o : %.cpp
${CXX} ${CPPFLAGS} -c $< ${CXXFLAGS} -o $@
@@ -66,7 +66,7 @@
LOADLIBES := $(LOADLIBES) -lXpm -lXt
endif
-LDFLAGS = -L/usr/lib -L/usr/local/lib -L/usr/X11R6/lib
+LDFLAGS = -L$(LOCALBASE)/lib
.PHONY : default
default : amph
@@ -74,9 +74,9 @@
.PHONY : install
install: amph
@./mkinstalldirs ${INSTALL_DIR}
- @install -c ./amph ${INSTALL_DIR}
- @strip ${INSTALL_DIR}/amph
- @ln -s ${INSTALL_DIR}/amph ${PREFIX}/bin/amph
+ @${BSD_INSTALL_PROGRAM} ./amph ${PREFIX}/bin/amph
+#${INSTALL_DIR}
+# @ln -s ${INSTALL_DIR}/amph ${PREFIX}/bin/amph
# This is what makemake added
@@ -194,7 +194,7 @@
./src/Surface.o: ./src/AmpHead.hpp ./src/Clut.hpp ./src/ConstVal.hpp ./src/Graphfil.hpp ./src/Shape.hpp ./src/ShapeLd.hpp ./src/Surface.hpp ./src/System.hpp /usr/include/limits.h /usr/include/math.h /usr/include/stdio.h /usr/include/stdlib.h
-./src/System.o: ./src/AmpHead.hpp ./src/Graphfil.hpp ./src/System.hpp /usr/include/X11/xpm.h /usr/include/fcntl.h /usr/include/limits.h /usr/include/math.h /usr/include/stdio.h /usr/include/stdlib.h /usr/include/string.h /usr/include/sys/stat.h /usr/include/sys/time.h /usr/include/sys/types.h /usr/include/unistd.h
+./src/System.o: ./src/AmpHead.hpp ./src/Graphfil.hpp ./src/System.hpp ${LOCALBASE}/include/X11/xpm.h /usr/include/fcntl.h /usr/include/limits.h /usr/include/math.h /usr/include/stdio.h /usr/include/stdlib.h /usr/include/string.h /usr/include/sys/stat.h /usr/include/sys/time.h /usr/include/sys/types.h /usr/include/unistd.h
./src/Thing.o: ./src/AmpHead.hpp ./src/Appl.hpp ./src/Bullet.hpp ./src/ConstVal.hpp ./src/Element.hpp ./src/File.hpp ./src/Graphfil.hpp ./src/Level.hpp ./src/ObjInfo.hpp ./src/Object.hpp ./src/Pltform.hpp ./src/Shape.hpp ./src/ShapeLd.hpp ./src/Surface.hpp ./src/System.hpp ./src/Thing.hpp /usr/include/limits.h /usr/include/math.h /usr/include/stdio.h /usr/include/stdlib.h