File:  [cvs.NetBSD.org] / pkgsrc / emulators / snes9x-gtk / Makefile
Revision 1.78: download - view: text, annotated - select for diffs
Fri Dec 4 20:45:17 2020 UTC (4 years ago) by nia
Branches: MAIN
CVS tags: pkgsrc-2020Q4-base, pkgsrc-2020Q4, HEAD
Revbump packages with a runtime Python dep but no version prefix.

For the Python 3.8 default switch.

# $NetBSD: Makefile,v 1.78 2020/12/04 20:45:17 nia Exp $

PKGREVISION= 9
.include "../../emulators/snes9x/Makefile.common"

PKGNAME=	snes9x-gtk-${SNES9X_VERSION}

MAINTAINER=	nia@NetBSD.org
COMMENT=	Super Nintendo Entertainment System (SNES) emulator (GUI version)

USE_TOOLS+=	pkg-config
USE_TOOLS+=	msgfmt xgettext
USE_TOOLS+=	gawk

CONFIGURE_DIRS=	gtk

BUILD_DEPENDS+=	gettext-m4-[0-9]*:../../devel/gettext-m4

.include "../../mk/oss.buildlink3.mk"

.if ${OSS_TYPE} != "none"
SUBST_CLASSES+=		oss
SUBST_STAGE.oss=	pre-configure
SUBST_MESSAGE.oss=	Correct path to OSS device.
SUBST_FILES.oss+=	gtk/src/gtk_sound_driver_oss.cpp
SUBST_SED.oss=		-e "s,/dev/dsp,${DEVOSSAUDIO},g"
LDFLAGS+=		${LIBOSSAUDIO}
MESON_ARGS+=		-Doss=true
.else
MESON_ARGS+=		-Doss=false
.endif

LDFLAGS.SunOS+=		-lsocket -lnsl

.include "options.mk"
.include "../../devel/meson/build.mk"
.include "../../archivers/minizip/buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/SDL2/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
.include "../../x11/libXrandr/buildlink3.mk"
.include "../../x11/libXv/buildlink3.mk"
.include "../../lang/python/application.mk"
.include "../../mk/dlopen.buildlink3.mk"
BUILDLINK_TRANSFORM+=	opt:-ldl:${BUILDLINK_LDADD.dl:Q}
.include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>