pkgsrc/emulators/libretro-beetle-saturn/Makefile

38 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.3 2018/09/07 00:49:04 nia Exp $
DISTNAME= libretro-beetle-saturn-20180620
PKGREVISION= 1
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_GITHUB:=libretro/}
GITHUB_PROJECT= beetle-saturn-libretro
GITHUB_TAG= 1983713f665e86459900a08873fac09e70c31bfa
MAINTAINER= nia@NetBSD.org
HOMEPAGE= https://docs.libretro.com/library/beetle_saturn/
COMMENT= Libretro core based on the Mednafen Sega Saturn emulator
LICENSE= gnu-gpl-v2
EXTRACT_USING= bsdtar
USE_TOOLS+= gmake
USE_LANGUAGES= c c++
MAKE_FLAGS+= GIT_VERSION="-pkgsrc"
# "experimental, x86_64 only" - https://mednafen.github.io/
# Not built by upstream's buildbot for i386, ARM, or PowerPC.
ONLY_FOR_PLATFORM= *-*-x86_64
INSTALLATION_DIRS+= ${PREFIX}/lib/libretro
.include "../../mk/endian.mk"
.if ${MACHINE_ENDIAN} == "big"
CFLAGS+= -DMSB_FIRST
.endif
do-install:
${INSTALL_LIB} ${WRKSRC}/mednafen_saturn_libretro.so \
${DESTDIR}${PREFIX}/lib/libretro/mednafen_saturn_libretro.so
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"