mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-16 07:58:04 +00:00
06a0da7a1b
- Add missing USES=iconv Approved by: portmgr blanket MFH: 2014Q4
50 lines
2.5 KiB
Plaintext
50 lines
2.5 KiB
Plaintext
--- Makefile.bsd.orig 2014-01-06 15:25:15.000000000 +0100
|
|
+++ Makefile.bsd 2014-01-06 15:49:31.000000000 +0100
|
|
@@ -2,17 +2,19 @@
|
|
|
|
-include make.conf
|
|
|
|
+XDIR=-L$(LOCALBASE)/lib
|
|
+
|
|
# basic compiling and linking - rarely changed
|
|
OPTIONS = -DBSD -DUSE_FILE32API -DELC $(foreach FEATURE, $(FEATURES), -D$(FEATURE)) -D_7ZIP_ST
|
|
-CFLAGS=$(PLATFORM) $(CWARN) -O0 -ggdb -pipe $(OPTIONS) $(shell sdl-config --cflags) $(shell xml2-config --cflags) -fno-strict-aliasing $(EXTRA_INCLUDES)
|
|
-_CFLAGS=$(PLATFORM) -O2 -fomit-frame-pointer -ffast-math -pipe $(OPTIONS) $(shell sdl-config --cflags) $(shell xml2-config --cflags) -fno-strict-aliasing $(EXTRA_INCLUDES)
|
|
-CXXFLAGS=$(PLATFORM) $(CXXWARN) -O0 -ggdb -pipe $(OPTIONS) $(shell sdl-config --cflags) $(shell xml2-config --cflags) -fno-strict-aliasing $(EXTRA_INCLUDES)
|
|
-_CXXFLAGS=$(PLATFORM) -O3 -fomit-frame-pointer -ffast-math -pipe $(OPTIONS) $(shell sdl-config --cflags) $(shell xml2-config --cflags) -fno-strict-aliasing $(EXTRA_INCLUDES)
|
|
+CFLAGS+=$(PLATFORM) $(CWARN) $(OPTIONS) $(shell sdl-config --cflags) $(shell xml2-config --cflags) -fno-strict-aliasing $(EXTRA_INCLUDES)
|
|
+_CFLAGS=-fomit-frame-pointer -ffast-math -pipe $(OPTIONS) $(shell sdl-config --cflags) $(shell xml2-config --cflags) -fno-strict-aliasing $(EXTRA_INCLUDES)
|
|
+CXXFLAGS+=$(CXXWARN) $(OPTIONS) $(shell sdl-config --cflags) $(shell xml2-config --cflags) -fno-strict-aliasing $(EXTRA_INCLUDES)
|
|
+_CXXFLAGS=-fomit-frame-pointer -ffast-math $(OPTIONS) $(shell sdl-config --cflags) $(shell xml2-config --cflags) -fno-strict-aliasing $(EXTRA_INCLUDES)
|
|
|
|
PNG_SCREENSHOT_LIBS = -lpng
|
|
-LDFLAGS=$(shell sdl-config --libs) $(shell xml2-config --libs) -lSDL_net -lSDL_image -lopenal $(XDIR) -lGL -lGLU -lcal3d -lm $(EXTRA_LIBS) -lz -lpng -lvorbis -lvorbisfile \
|
|
+LDFLAGS+=$(shell sdl-config --libs) $(shell xml2-config --libs) -lSDL_net -lSDL_image -lopenal $(XDIR) -lGL -lGLU -lcal3d -lm $(EXTRA_LIBS) -lz -lpng -lvorbis -lvorbisfile \
|
|
$(foreach FEATURE, $(FEATURES), $($(FEATURE)_LIBS))
|
|
-_LDFLAGS=$(XDIR) -lGL -lpthread -lstdc++
|
|
+_LDFLAGS=$(XDIR) -lGL -pthread
|
|
|
|
# This works on Ubuntu 8.04 (LTS) at least
|
|
# Install these packages in addition to those required for a standard build
|
|
@@ -86,16 +88,16 @@
|
|
DEP_FILES=$(foreach OBJ, $(COBJS), .deps/$(OBJ).P) $(foreach OBJ, $(CXXOBJS), .deps/$(OBJ).P)
|
|
#(shell echo $OBJ |sed s/\.o/\.P/))
|
|
|
|
-EXE=el.x86.bsd.bin
|
|
+EXE=el.bin
|
|
|
|
ifndef CC
|
|
-CC=gcc
|
|
+CC?=gcc
|
|
endif
|
|
ifndef CXX
|
|
-CXX=g++
|
|
+CXX?=g++
|
|
endif
|
|
ifndef LINK
|
|
-LINK=gcc
|
|
+LINK?=$(CXX)
|
|
endif
|
|
|
|
all: $(EXE)
|