pkgsrc/emulators/libretro-o2em/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

33 lines
853 B
Makefile

# $NetBSD: Makefile,v 1.3 2018/10/02 21:09:30 nia Exp $
DISTNAME= libretro-o2em-20180812
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_GITHUB:=libretro/}
GITHUB_TAG= 925fc14d818abcbb9665cae4dd995f8b751db46c
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://docs.libretro.com/library/o2em/
COMMENT= Libretro core for Magnavox Odyssey 2 and VideoPac emulation
LICENSE= artistic
EXTRACT_USING= bsdtar
USE_TOOLS+= gmake
MAKE_FLAGS+= GIT_VERSION="-pkgsrc"
.include "../../mk/endian.mk"
.if ${MACHINE_ENDIAN} == "big"
CFLAGS+= -DMSB_FIRST
.endif
BUILDLINK_TRANSFORM.SunOS+= rm:-Wl,--no-undefined
BUILDLINK_TRANSFORM.SunOS+= rm:-Wl,--version-script=link.T
INSTALLATION_DIRS+= ${PREFIX}/lib/libretro
do-install:
${INSTALL_LIB} ${WRKSRC}/o2em_libretro.so \
${DESTDIR}${PREFIX}/lib/libretro/o2em_libretro.so
.include "../../mk/bsd.pkg.mk"