a6eb39273a
libretro makefiles pass flags to the linker that aren't understood by SunOS ld. Add BUILDLINK_TRANSFORMs to remove those flags.
36 lines
990 B
Makefile
36 lines
990 B
Makefile
# $NetBSD: Makefile,v 1.2 2018/10/02 21:09:29 nia Exp $
|
|
|
|
DISTNAME= libretro-beetle-sgx-20180512
|
|
CATEGORIES= emulators
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=libretro/}
|
|
GITHUB_PROJECT= beetle-supergrafx-libretro
|
|
GITHUB_TAG= 0d4d96428073f8734e80a2ebc157daa228babe51
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://docs.libretro.com/library/beetle_sgx/
|
|
COMMENT= Libretro core based on the Mednafen SuperGrafx emulator
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
EXTRACT_USING= bsdtar
|
|
USE_TOOLS+= gmake
|
|
USE_LANGUAGES= c c++
|
|
|
|
MAKE_FLAGS+= GIT_VERSION="-pkgsrc"
|
|
|
|
.include "../../mk/endian.mk"
|
|
|
|
.if ${MACHINE_ENDIAN} == "big"
|
|
CFLAGS+= -DMSB_FIRST
|
|
CFLAGS+= -DBYTE_ORDER=BIG_ENDIAN
|
|
.endif
|
|
|
|
BUILDLINK_TRANSFORM.SunOS+= rm:-Wl,--version-script=link.T
|
|
BUILDLINK_TRANSFORM.SunOS+= rm:-Wl,--no-undefined
|
|
|
|
INSTALLATION_DIRS+= ${PREFIX}/lib/libretro
|
|
|
|
do-install:
|
|
${INSTALL_LIB} ${WRKSRC}/mednafen_supergrafx_libretro.so \
|
|
${DESTDIR}${PREFIX}/lib/libretro/mednafen_supergrafx_libretro.so
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|