This has a hidden dep on gtk+2 (which is dlopen'd); add LIB_DEPENDS/WANTLIB
(and a comment to remind people not to remove it when they see as Extra), and fix the dlopen string so it actually uses it at runtime. ok ryan@
This commit is contained in:
parent
54369ff481
commit
a103698560
@ -1,16 +1,17 @@
|
||||
# $OpenBSD: Makefile,v 1.3 2013/01/08 10:23:08 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.4 2013/01/13 09:26:34 sthen Exp $
|
||||
|
||||
COMMENT = Enhanced Duke Nukem 3D engine
|
||||
RDATE = 20120301
|
||||
RTAG = 2394
|
||||
DISTNAME = eduke32_src_${RDATE}-${RTAG}
|
||||
PKGNAME = eduke32-2.0.0.${RTAG}
|
||||
REVISION = 0
|
||||
EXTRACT_SUFX = .tar.bz2
|
||||
CATEGORIES = games x11 wip
|
||||
CATEGORIES = games x11
|
||||
|
||||
HOMEPAGE = http://www.eduke32.com/
|
||||
|
||||
MAINTAINER = Ryan Freeman <ryan@slipgate.org>
|
||||
MAINTAINER = Ryan Freeman <rfreeman@openbsd.org>
|
||||
|
||||
# GPLv2, BUILD license and shareware data
|
||||
PERMIT_PACKAGE_CDROM = "BUILD engine license is not compatible with GPLv2."
|
||||
@ -32,6 +33,10 @@ LIB_DEPENDS = audio/libvorbis \
|
||||
devel/sdl \
|
||||
devel/sdl-mixer
|
||||
|
||||
# dlopen()'d; shows as Extra in check-lib-depends but it is used
|
||||
LIB_DEPENDS += x11/gtk+2
|
||||
WANTLIB += gtk-x11-2.0
|
||||
|
||||
RUN_DEPENDS = games/duke3ddata
|
||||
|
||||
MASTER_SITES = http://dukeworld.duke4.net/eduke32/synthesis/old/${RDATE}-${RTAG}/ \
|
||||
|
12
games/eduke32/patches/patch-build_src_dynamicgtk_c
Normal file
12
games/eduke32/patches/patch-build_src_dynamicgtk_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-build_src_dynamicgtk_c,v 1.1 2013/01/13 09:26:35 sthen Exp $
|
||||
--- build/src/dynamicgtk.c.orig Fri Jan 11 23:10:36 2013
|
||||
+++ build/src/dynamicgtk.c Fri Jan 11 23:10:42 2013
|
||||
@@ -20,7 +20,7 @@ int32_t dynamicgtk_init(void)
|
||||
|
||||
if (handle) return 1;
|
||||
|
||||
- handle = dlopen("libgtk-x11-2.0.so.0", RTLD_NOW|RTLD_GLOBAL);
|
||||
+ handle = dlopen("libgtk-x11-2.0.so", RTLD_NOW|RTLD_GLOBAL);
|
||||
if (!handle) return -1;
|
||||
|
||||
memset(&dynamicgtksyms, 0, sizeof(dynamicgtksyms));
|
Loading…
Reference in New Issue
Block a user