summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authordholland <dholland>2011-10-03 04:20:34 +0000
committerdholland <dholland>2011-10-03 04:20:34 +0000
commit9511edf689dda9dceb0c190f9d5c460a2b21a037 (patch)
treeeee61ac7fc90629b4a19753779b613cd779e4bf6 /emulators
parentc036c19225b182ce2a3c8f4a04a973590b468681 (diff)
downloadpkgsrc-9511edf689dda9dceb0c190f9d5c460a2b21a037.tar.gz
Uses OpenGL; buildlink with MesaLib. Set LDFLAGS so native X build works.
PKGREVISION -> 1.
Diffstat (limited to 'emulators')
-rw-r--r--emulators/handy_sdl/Makefile6
-rw-r--r--emulators/handy_sdl/distinfo3
-rw-r--r--emulators/handy_sdl/patches/patch-Makefile-0_9519
3 files changed, 26 insertions, 2 deletions
diff --git a/emulators/handy_sdl/Makefile b/emulators/handy_sdl/Makefile
index 39d27355e66..c1afe4a6237 100644
--- a/emulators/handy_sdl/Makefile
+++ b/emulators/handy_sdl/Makefile
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.4 2010/02/14 18:42:53 joerg Exp $
+# $NetBSD: Makefile,v 1.5 2011/10/03 04:20:34 dholland Exp $
#
DISTNAME= handy_sdl-0.5-src
PKGNAME= ${DISTNAME:S/-src//}
+PKGREVISION= 1
CATEGORIES= emulators
MASTER_SITES= http://www.xs4all.nl/~shalafi/
EXTRACT_SUFX= .tar.bz2
@@ -19,6 +20,8 @@ USE_TOOLS+= gmake
INSTALLATION_DIRS= bin share/doc/handy_sdl
+MAKE_FLAGS+= LDFLAGS=${LDFLAGS:Q}
+
post-extract:
${CHMOD} -R a+X ${WRKSRC}
@@ -27,5 +30,6 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/handy_sdl
.include "../../devel/SDL/buildlink3.mk"
+.include "../../graphics/MesaLib/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/emulators/handy_sdl/distinfo b/emulators/handy_sdl/distinfo
index 26ee8021b60..a3fc2937f1f 100644
--- a/emulators/handy_sdl/distinfo
+++ b/emulators/handy_sdl/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2008/12/20 17:34:02 wiz Exp $
+$NetBSD: distinfo,v 1.2 2011/10/03 04:20:34 dholland Exp $
SHA1 (handy_sdl-0.5-src.tar.bz2) = a65f18781886d19878b9b14a577e1387ed3f6f19
RMD160 (handy_sdl-0.5-src.tar.bz2) = 5dcc9ec50dcfbe6ca418b21dcb8ad5e36b14fc97
Size (handy_sdl-0.5-src.tar.bz2) = 209616 bytes
+SHA1 (patch-Makefile-0_95) = 6da149e49491876a698e7c40a125833840f27637
diff --git a/emulators/handy_sdl/patches/patch-Makefile-0_95 b/emulators/handy_sdl/patches/patch-Makefile-0_95
new file mode 100644
index 00000000000..a43f92bc39f
--- /dev/null
+++ b/emulators/handy_sdl/patches/patch-Makefile-0_95
@@ -0,0 +1,19 @@
+$NetBSD: patch-Makefile-0_95,v 1.1 2011/10/03 04:20:34 dholland Exp $
+
+Set LDFLAGS vs. LIBS properly, so the right things happen when LDFLAGS
+is set from the pkgsrc makefile.
+
+--- Makefile-0.95~ 2008-11-02 23:23:50.000000000 +0000
++++ Makefile-0.95
+@@ -55,9 +55,9 @@ CPPFLAGS = -MMD -Wall -Wno-switch -Wno-n
+ # -fomit-frame-pointer `sdl-config --cflags` -g
+ # -fomit-frame-pointer `sdl-config --cflags` -DLOG_UNMAPPED_MEMORY_ACCESSES
+
+-LDFLAGS =
++LDFLAGS = -L/usr/local/lib -L/usr/lib
+
+-LIBS = -L/usr/local/lib -L/usr/lib `sdl-config $(SDLLIBTYPE)` -lstdc++ -lz $(GLLIB)
++LIBS = `sdl-config $(SDLLIBTYPE)` -lstdc++ -lz $(GLLIB)
+
+ INCS = -I./src -I./src/handy-0.95 -I./src/sdlemu -I/usr/local/include -I/usr/include
+