aboutsummaryrefslogtreecommitdiffstats
path: root/games/neverball/files/patch-Makefile
blob: b5284cddd4f18156477938852ad76077c8660e0f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- Makefile.orig   2009-01-29 16:39:11.000000000 -0600
+++ Makefile    2009-02-05 21:25:57.000000000 -0600
@@ -12,6 +12,10 @@
     DARWIN := 1
 endif
 
+ifeq ($(shell uname), FreeBSD)
+    FREEBSD := 1
+endif
+
 #------------------------------------------------------------------------------
 # Optional flags (CFLAGS, CPPFLAGS, ...)
 
@@ -105,6 +109,14 @@
     BASE_LIBS += -L/opt/local/lib
 endif
 
+ifdef FREEBSD
+    BASE_LIBS += -L%%LOCALBASE%%/lib
+
+    ifneq ($(ENABLE_NLS),0)
+        INTL_LIBS := -lintl %%ICONV_LIB%%
+    endif
+endif
+
 ALL_LIBS := $(SDL_LIBS) $(BASE_LIBS) $(TILT_LIBS) $(INTL_LIBS) -lSDL_ttf \
     -lvorbisfile $(OGL_LIBS)