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

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

Revision 1.4, Tue Oct 2 21:09:30 2018 UTC (19 months, 3 weeks ago) by nia
Branch: MAIN
CVS Tags: pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4
Changes since 1.3: +7 -4 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.4 2018/10/02 21:09:30 nia Exp $

DISTNAME=	libretro-nestopia-1.49
CATEGORIES=	emulators
MASTER_SITES=	${MASTER_SITE_GITHUB:=libretro/}
GITHUB_PROJECT=	nestopia

MAINTAINER=	snj@NetBSD.org
HOMEPAGE=	https://docs.libretro.com/library/nestopia_ue/
COMMENT=	Libretro core based on the Nestopia UE emulator
LICENSE=	gnu-gpl-v2

EXTRACT_USING=	bsdtar
WRKSRC=		${WRKDIR}/${GITHUB_PROJECT}-${GITHUB_TAG}
BUILD_DIRS=	libretro
USE_LANGUAGES=	c c++03
USE_TOOLS+=	gmake

MAKE_FLAGS+=	GIT_VERSION="-pkgsrc"
CFLAGS+=	-DPREFIX=\"${PREFIX}\"

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

INSTALLATION_DIRS+=	${PREFIX}/lib/libretro
INSTALLATION_DIRS+=	share/libretro-nestopia

do-install:
	${INSTALL_LIB} ${WRKSRC}/libretro/nestopia_libretro.so \
	    ${DESTDIR}${PREFIX}/lib/libretro/nestopia_libretro.so
	${INSTALL_DATA} ${WRKSRC}/NstDatabase.xml \
	    ${DESTDIR}${PREFIX}/share/libretro-nestopia

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