Index: Makefile =================================================================== RCS file: /home/cvs/ports/games/einstein/Makefile,v retrieving revision 1.4 diff -u -p -r1.4 Makefile --- Makefile 16 Nov 2010 11:23:26 -0000 1.4 +++ Makefile 27 Oct 2012 03:41:45 -0000 @@ -26,5 +26,6 @@ LIB_DEPENDS = devel/sdl \ devel/sdl-ttf USE_GMAKE = Yes +MAKE_ENV = LDFLAGS="-L${X11BASE}/lib" .include Index: patches/patch-Makefile =================================================================== RCS file: /home/cvs/ports/games/einstein/patches/patch-Makefile,v retrieving revision 1.1.1.1 diff -u -p -r1.1.1.1 patch-Makefile --- patches/patch-Makefile 3 Apr 2009 17:56:41 -0000 1.1.1.1 +++ patches/patch-Makefile 27 Oct 2012 03:39:46 -0000 @@ -1,6 +1,6 @@ $OpenBSD: patch-Makefile,v 1.1.1.1 2009/04/03 17:56:41 landry Exp $ ---- Makefile.orig Sun Sep 25 23:20:30 2005 -+++ Makefile Fri Apr 3 19:41:41 2009 +--- Makefile.orig Sun Sep 25 17:20:30 2005 ++++ Makefile Fri Oct 26 23:39:35 2012 @@ -5,7 +5,6 @@ ######################################## @@ -9,15 +9,17 @@ $OpenBSD: patch-Makefile,v 1.1.1.1 2009/ ######################################## # -@@ -16,7 +15,7 @@ PREFIX=/usr/local +@@ -16,8 +15,8 @@ PREFIX=/usr/local OPTIMIZE=#-O6 -march=pentium4 -mfpmath=sse -fomit-frame-pointer -funroll-loops PROFILER=#-pg DEBUG=#-ggdb -CXXFLAGS=-pipe -Wall $(OPTIMIZE) $(DEBUG) `sdl-config --cflags` -DPREFIX=L\"$(PREFIX)\" $(PROFILER) -+CXXFLAGS= $(CFLAGS) $(OPTIMIZE) $(DEBUG) `sdl-config --cflags` -DPREFIX=L\"$(PREFIX)\" $(PROFILER) - LNFLAGS=-pipe -lSDL_ttf -lfreetype `sdl-config --libs` -lz -lSDL_mixer $(PROFILER) +-LNFLAGS=-pipe -lSDL_ttf -lfreetype `sdl-config --libs` -lz -lSDL_mixer $(PROFILER) ++CXXFLAGS+= $(OPTIMIZE) $(DEBUG) `sdl-config --cflags` -DPREFIX=L\"$(PREFIX)\" $(PROFILER) ++LNFLAGS= $(LDFLAGS) -pipe -lSDL_ttf -lfreetype `sdl-config --libs` -lz -lSDL_mixer $(PROFILER) INSTALL=install + TARGET=einstein @@ -61,8 +60,9 @@ run: $(TARGET) ./$(TARGET)