[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / emulators / libretro-fbalpha

File: [cvs.NetBSD.org] / pkgsrc / emulators / libretro-fbalpha / Makefile (download)

Revision 1.3, Tue Oct 2 21:09:29 2018 UTC (19 months, 3 weeks ago) by nia
Branch: MAIN
Changes since 1.2: +4 -1 lines

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.

# $NetBSD: Makefile,v 1.3 2018/10/02 21:09:29 nia Exp $

DISTNAME=	libretro-fbalpha-0.2.97.43.20180721
CATEGORIES=	emulators
MASTER_SITES=	${MASTER_SITE_GITHUB:=libretro/}
GITHUB_PROJECT=	fbalpha
GITHUB_TAG=	6f85b5d19085f91c8f3df5c53dd235c037782fee

MAINTAINER=	nia@NetBSD.org
HOMEPAGE=	https://github.com/libretro/fbalpha
COMMENT=	Libretro core based on the FB Alpha arcade game emulator
LICENSE=	fbalpha-license AND mame-license

EXTRACT_USING=	bsdtar
USE_TOOLS+=	gmake
MAKE_FILE=	makefile.libretro
USE_LANGUAGES=	c c++

MAKE_FLAGS+=	GIT_VERSION="-pkgsrc"

.include "../../mk/endian.mk"

.if ${MACHINE_ENDIAN} == "big"
MAKE_FLAGS+=	ENDIANNESS_DEFINES=-DWORDS_BIGENDIAN
.endif

BUILDLINK_TRANSFORM.SunOS+=	rm:-Wl,-no-undefined
BUILDLINK_TRANSFORM.SunOS+=	rm:-Wl,--version-script=src/burner/libretro/link.T

INSTALLATION_DIRS+=	${PREFIX}/lib/libretro

do-install:
	${INSTALL_LIB} ${WRKSRC}/fbalpha_libretro.so \
	    ${DESTDIR}${PREFIX}/lib/libretro/fbalpha_libretro.so

.include "../../mk/bsd.pkg.mk"