pkgsrc/emulators/libretro-fuse/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
893 B
Makefile

# $NetBSD: Makefile,v 1.2 2018/10/02 21:09:29 nia Exp $
DISTNAME= libretro-fuse-20180419
CATEGORIES= emulators
MASTER_SITES= ${MASTER_SITE_GITHUB:=libretro/}
GITHUB_PROJECT= fuse-libretro
GITHUB_TAG= fa6ecc43754be89ec5a156877f04adb8f9cc7a09
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://docs.libretro.com/library/fuse/
COMMENT= Libretro core based on the FUSE ZX Spectrum emulator
LICENSE= gnu-gpl-v3
EXTRACT_USING= bsdtar
USE_TOOLS+= gmake
MAKE_FILE= Makefile.libretro
.include "../../mk/endian.mk"
.if ${MACHINE_ENDIAN} == "big"
CFLAGS+= -DWORDS_BIGENDIAN -DMSB_FIRST
.endif
BUILDLINK_TRANSFORM.SunOS+= rm:-Wl,-version-script=build/link.T
BUILDLINK_TRANSFORM.SunOS+= rm:-Wl,-no-undefined
INSTALLATION_DIRS+= ${PREFIX}/lib/libretro
do-install:
${INSTALL_LIB} ${WRKSRC}/fuse_libretro.so \
${DESTDIR}${PREFIX}/lib/libretro/fuse_libretro.so
.include "../../mk/bsd.pkg.mk"