openbsd-ports/games/amph/patches/patch-Makefile
2001-09-22 21:01:14 +00:00

50 lines
2.3 KiB
Plaintext

$OpenBSD: patch-Makefile,v 1.3 2001/09/22 21:01:14 pvalchev Exp $
--- Makefile.orig Wed Sep 19 04:08:37 2001
+++ Makefile Wed Sep 19 04:10:37 2001
@@ -3,8 +3,7 @@
#===============
# Install Paths
-PREFIX := /usr/local
-INSTALL_DIR := ${PREFIX}/games/amph
+INSTALL_DIR := ${PREFIX}/share/amph
# Endianess:
# LITTLE_ENDIAN (for Intel)
@@ -15,7 +14,7 @@ BYTE_ORDER := LITTLE_ENDIAN
USE_LIB_XPM := TRUE
SDL_CONFIG := sdl-config
-SDL_HEADERS := $(shell $(SDL_CONFIG) --cflags)
+SDL_HEADERS := $(shell $(SDL_CONFIG) --cflags) -I${X11BASE}/include
SDL_LIBS := $(shell $(SDL_CONFIG) --libs)
#=======================================================
@@ -37,13 +36,13 @@ 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} -funroll-loops -fomit-frame-pointer -ffast-math -Wcast-align
%.o : %.cpp
${CXX} ${CPPFLAGS} -c $< ${CXXFLAGS} -o $@
@@ -204,7 +203,7 @@ jdepend:
./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 /usr/X11R6/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