1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-06 06:30:19 +00:00
freebsd-ports/games/bugsquish/files/patch-Makefile
Kirill Ponomarev 2d186650af Fix build
PR:		ports/74424
Submitted by:	Ports Fury
2004-11-26 21:01:30 +00:00

35 lines
898 B
Plaintext

--- Makefile.orig Fri Apr 19 17:15:27 2002
+++ Makefile Fri Nov 26 23:05:54 2004
@@ -9,8 +9,8 @@
# User-definable stuff:
-BIN_PREFIX=/usr/local/bin/
-DATA_PREFIX=/usr/share/bugsquish/
+BIN_PREFIX=${PREFIX}/bin/
+DATA_PREFIX=${PREFIX}/share/bugsquish/
# Defaults for Linux:
@@ -19,7 +19,7 @@
TARGET_DEF=LINUX
-CFLAGS=-Wall -O2 $(SDL_CFLAGS) -DDATA_PREFIX=\"$(DATA_PREFIX)\" \
+CFLAGS+=-Wall $(SDL_CFLAGS) -DDATA_PREFIX=\"$(DATA_PREFIX)\" \
-D$(NOSOUNDFLAG) -D$(TARGET_DEF)
@@ -29,8 +29,9 @@
IMAGE=-lSDL_image
NOSOUNDFLAG=__SOUND
SDL_LIB=$(SDL_LDFLAGS) $(MIXER) $(IMAGE)
-SDL_CFLAGS := $(shell sdl-config --cflags)
-SDL_LDFLAGS := $(shell sdl-config --libs)
+SDL_CONFIG ?=sdl-config
+SDL_CFLAGS := $(shell $(SDL_CONFIG) --cflags)
+SDL_LDFLAGS := $(shell $(SDL_CONFIG) --libs)
installbin = install -g root -o root -m 755
installdat = install -g root -o root -m 644