pkgsrc/emulators/libretro-beetle-saturn/Makefile
nia a6eb39273a emulators/libretro-*: SunOS linker fixes.
libretro makefiles pass flags to the linker that aren't understood by
SunOS ld. Add BUILDLINK_TRANSFORMs to remove those flags.
2018-10-02 21:09:28 +00:00

41 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.4 2018/10/02 21:09:29 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
BUILDLINK_TRANSFORM.SunOS+= rm:-Wl,--version-script=link.T
BUILDLINK_TRANSFORM.SunOS+= rm:-Wl,--no-undefined
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"