openbsd-ports/emulators/snes9x/Makefile
fcambus f3fd68e765 Update snes9x to 1.58.
Notable changes:

- Remove now unnecessary LIB_DEPENDS on textproc/libxml
- Install the new LICENSE file in place of snes9x-license.txt
2018-12-21 11:12:11 +00:00

80 lines
2.0 KiB
Makefile

# $OpenBSD: Makefile,v 1.45 2018/12/21 11:12:11 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
CATEGORIES = emulators games
HOMEPAGE = http://www.snes9x.com/
MAINTAINER = Frederic Cambus <fcambus@openbsd.org>
# non-commercial
PERMIT_PACKAGE_CDROM = non-commercial
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/
RUN_DEPENDS = devel/desktop-file-utils \
x11/gtk+3,-guic
LIB_DEPENDS = devel/sdl2 \
graphics/png \
x11/gtk+3
BUILD_DEPENDS = ${MODGNU_AUTOCONF_DEPENDS} \
${MODGNU_AUTOMAKE_DEPENDS}
MODULES = textproc/intltool
COMPILER = base-clang ports-gcc
USE_GMAKE = Yes
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"
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
${INSTALL_DATA} ${WRKDIST}/LICENSE ${PREFIX}/share/doc/snes9x
cd ${WRKDIST}/docs && ${INSTALL_DATA} control-inputs.txt controls.txt \
snapshots.txt ${PREFIX}/share/doc/snes9x
cd ${WRKDIST}/unix && ${INSTALL_DATA} snes9x.conf.default \
${PREFIX}/share/examples/snes9x
.include <bsd.port.mk>