freebsd-ports/games/neverball/files/patch-Makefile
Guido Falsi 642be1b81d - Make ports use the libc provided iconv implementation on 10-CURRENT
after r254273
- Fix a bunch of ports to properly work after this
- Mark converters/libiconv as IGNORE for systems with iconv in libc

Reviewed by:	bapt
Approved by:	portmgr (bapt)
Discussed with:	bapt, bsam (who both contributed ideas and code)
2013-09-04 18:06:07 +00:00

28 lines
652 B
Text

--- 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)