pkgsrc/emulators/libretro-bluemsx/Makefile

39 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.7 2020/06/02 14:08:58 nia Exp $
DISTNAME= libretro-bluemsx-20200507
PKGREVISION= 1
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_GITHUB:=libretro/}
GITHUB_PROJECT= blueMSX-libretro
GITHUB_TAG= 1d441d908e73cf0fa7f52c42686f6c9e8cd254ed
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://docs.libretro.com/library/bluemsx/
COMMENT= Libretro core for MSX/MSX2/ColecoVision/SVI/SG-1000 emulation
LICENSE= gnu-gpl-v2
MAKE_FILE= Makefile.libretro
USE_LANGUAGES= c c++03
LIBRETRO_CORE= bluemsx
LDFLAGS+= -lz
.include "../../mk/bsd.prefs.mk"
# For strcasestr
# See dc61b353c3bea0c088b3f827cfbd864460b112a0, pull/33
.if ${OPSYS} == "NetBSD"
CFLAGS+= -D_NETBSD_SOURCE
.elif ${OPSYS} == "SunOS"
CFLAGS+= -D__EXTENSIONS__
.elif ${OPSYS} != "Linux"
CFLAGS+= -D_GNU_SOURCE -D_BSD_SOURCE
.endif
BUILDLINK_TRANSFORM.SunOS+= rm:-Wl,-version-script=link.T
BUILDLINK_TRANSFORM.SunOS+= rm:-Wl,-no-undefined
.include "../../emulators/retroarch/core.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"