1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00
freebsd-ports/devel/esdl/files/patch-c__src_Makefile
Jimmy Olgeni e2eeb81cc9 Upgrade to version 0.93.0909.
PR:		59382
Submitted by:	Sebastian Yepes F. [ESN] <esn@x123.info>
2003-11-19 14:07:55 +00:00

47 lines
1.3 KiB
Plaintext

--- c_src/Makefile.ori Tue Sep 9 10:28:24 2003
+++ c_src/Makefile Mon Nov 17 18:34:14 2003
@@ -11,7 +11,7 @@
include ../win32_conf/mingw_vars.mk
else
- OGLDIR = /usr
+ OGLDIR = ${X11BASE}
# Uncomment these if your opengl header is located in another directory than
# the usual $(OGLDIR)/include/GL/gl.h
@@ -21,14 +21,13 @@
GL_LIBS = -L$(OGLDIR)/lib -lGL -lGLU
GL_INCS = -I$(OGLDIR)/include/$(GL_INCLUDE_DIR)
- SDL_LIBS = $(shell sdl-config --libs)
- SDL_INCS = $(shell sdl-config --cflags)
+ SDL_LIBS = $(shell $(SDL_CONFIG) --libs)
+ SDL_INCS = $(shell $(SDL_CONFIG) --cflags)
LIBS = $(GL_LIBS) $(SDL_LIBS) -lm
- CFLAGS = -g -O2 -funroll-loops -Wall -ffast-math -fpic \
- -fomit-frame-pointer $(USE_GL_INCLUDE_DIR) -DSHM \
- -DPTHREADS $(GL_INCS) $(SDL_INCS) $(ERL_INCS)
+ CFLAGS += -O2 -funroll-loops -Wall -ffast-math -fpic -fomit-frame-pointer \
+ $(USE_GL_INCLUDE_DIR) -DSHM -DPTHREADS $(GL_INCS) $(SDL_INCS) $(ERL_INCS)
CLINKFLAGS = -fpic -shared
@@ -38,13 +37,13 @@
ERL_DIR := $(shell echo 'io:format("~s~n",[code:root_dir()]),halt().' | erl | sed 's,^[0-9]*> *,,g' | tail +2)
ERL_INCS = -I$(ERL_DIR)/usr/include
- CC = gcc
+ CC ?= gcc
endif
TARGETDIR = ../priv
-GCC_O = $(CC) -c $(CFLAGS) $<
+GCC_O = $(CC) -c $(CFLAGS) $(INCS) $(ERLINC) $<
# Files