Update snes9x to 1.59.2.

Notable changes:

- Switch to GH_ variables, tarballs are not uploaded as assets anymore
- Build system switched from autotools to Meson
This commit is contained in:
fcambus 2019-03-11 11:18:01 +00:00
parent caf60eeb49
commit 24838fdcdf
5 changed files with 34 additions and 51 deletions

View File

@ -1,13 +1,13 @@
# $OpenBSD: Makefile,v 1.45 2018/12/21 11:12:11 fcambus Exp $
# $OpenBSD: Makefile,v 1.46 2019/03/11 11:18:01 fcambus Exp $
COMMENT = emulates the Super Nintendo Entertainment System
BROKEN-alpha = ICE/failure on filter/hq2x.cpp
BROKEN-hppa = ICE/failure on filter/hq2x.cpp
BROKEN-powerpc =ICE/failure on filter/hq2x.cpp
V = 1.58
DISTNAME = snes9x-$V
EXTRACT_SUFX = .tar.bz2
GH_ACCOUNT = snes9xgit
GH_PROJECT = snes9x
GH_TAGNAME = 1.59.2
CATEGORIES = emulators games
@ -21,10 +21,8 @@ PERMIT_PACKAGE_FTP = Yes
WANTLIB += ${COMPILER_LIBCXX} SDL2 X11 Xext Xrandr Xv atk-1.0
WANTLIB += c cairo cairo-gobject epoxy gdk-3 gdk_pixbuf-2.0 gio-2.0
WANTLIB += glib-2.0 gobject-2.0 gthread-2.0 gtk-3 intl m pango-1.0
WANTLIB += pangocairo-1.0 png z
MASTER_SITES = https://github.com/snes9xgit/snes9x/releases/download/$V/
WANTLIB += glib-2.0 gobject-2.0 gtk-3 intl m pango-1.0 pangocairo-1.0
WANTLIB += png16 z
RUN_DEPENDS = devel/desktop-file-utils \
x11/gtk+3,-guic
@ -33,40 +31,23 @@ LIB_DEPENDS = devel/sdl2 \
graphics/png \
x11/gtk+3
BUILD_DEPENDS = ${MODGNU_AUTOCONF_DEPENDS} \
${MODGNU_AUTOMAKE_DEPENDS}
MODULES = textproc/intltool
MODULES = devel/meson \
textproc/intltool
COMPILER = base-clang ports-gcc
USE_GMAKE = Yes
LDFLAGS += "-L${X11BASE}/lib"
CONFIGURE_STYLE = gnu
CONFIGURE_ARGS = --without-portaudio \
--without-oss \
--without-alsa \
--without-pulseaudio \
--without-system-zip \
--with-gtk3 \
--with-zlib
CONFIGURE_ENV = CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
LIBS="-L${X11BASE}/lib -L${LOCALBASE}/lib"
CONFIGURE_ARGS = -Dportaudio=false \
-Doss=false \
-Dalsa=false \
-Dpulseaudio=false \
-Dsystem-zip=false
NO_TEST = Yes
WRKSRC = ${WRKDIST}/gtk
AUTOCONF_VERSION = 2.69
AUTOMAKE_VERSION = 1.15
pre-configure:
@cd ${WRKSRC} && \
AUTOCONF_VERSION=${AUTOCONF_VERSION} \
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \
./autogen.sh
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/snes9x
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/snes9x

View File

@ -1,2 +1,2 @@
SHA256 (snes9x-1.58.tar.bz2) = +CULTopdOrmf3XCVhLgHmXXgJGVc1kbkI1GGRJ2dp0g=
SIZE (snes9x-1.58.tar.bz2) = 2606076
SHA256 (snes9x-1.59.2.tar.gz) = H2IyZsXz4Bo51J+WTl8ZpQqPxm/lYwN4n9SxO6zet2s=
SIZE (snes9x-1.59.2.tar.gz) = 2819803

View File

@ -1,14 +0,0 @@
$OpenBSD: patch-gtk_configure_ac,v 1.3 2018/12/21 11:12:11 fcambus Exp $
Index: gtk/configure.ac
--- gtk/configure.ac.orig
+++ gtk/configure.ac
@@ -147,7 +147,7 @@ else
CFLAGS="$CFLAGS -fomit-frame-pointer"
fi
-LIBS="$LIBS -lX11 -ldl -lXext"
+LIBS="$LIBS -lX11 -lXext"
OPENGL=no
if test yes = "$with_opengl" ; then

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-gtk_meson_build,v 1.1 2019/03/11 11:18:02 fcambus Exp $
Index: gtk/meson.build
--- gtk/meson.build.orig
+++ gtk/meson.build
@@ -50,10 +50,8 @@ deps += gtk_dep
x11_dep = c_compiler.find_library('X11')
xext_dep = c_compiler.find_library('Xext')
-dl_dep = c_compiler.find_library('dl')
deps += x11_dep
deps += xext_dep
-deps += dl_dep
xrandr_dep = dependency('xrandr')
deps += xrandr_dep

View File

@ -1,6 +1,6 @@
@comment $OpenBSD: PLIST,v 1.11 2018/12/21 11:12:11 fcambus Exp $
@comment $OpenBSD: PLIST,v 1.12 2019/03/11 11:18:02 fcambus Exp $
@bin bin/snes9x-gtk
share/applications/snes9x.desktop
share/applications/snes9x-gtk.desktop
share/doc/snes9x/
share/doc/snes9x/LICENSE
share/doc/snes9x/control-inputs.txt