summaryrefslogtreecommitdiff
path: root/emulators/libretro-beetle-psx/Makefile.common
blob: 7788f6e7daeb15a29662d67fd2533e691cf6c74f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# $NetBSD: Makefile.common,v 1.2 2018/12/18 16:12:13 nia Exp $

# used by emulators/libretro-beetle-psx-hw/Makefile
# used by emulators/libretro-beetle-psx/Makefile

VERSION=	20180808
DISTNAME=	libretro-beetle-psx-${VERSION}
CATEGORIES=	emulators
MASTER_SITES=	${MASTER_SITE_GITHUB:=libretro/}
GITHUB_PROJECT=	beetle-psx-libretro
GITHUB_TAG=	7bb007de15b2f40a880b788ebf47a400c90827d9

LICENSE=	gnu-gpl-v2

DISTINFO_FILE=	${.CURDIR}/../../emulators/libretro-beetle-psx/distinfo
PATCHDIR=	${.CURDIR}/../../emulators/libretro-beetle-psx/patches
MESSAGE_SRC=	${.CURDIR}/../../emulators/libretro-beetle-psx/MESSAGE

EXTRACT_USING=	bsdtar

USE_TOOLS+=	gmake
USE_LANGUAGES=	c c++03

MAKE_FLAGS+=	GIT_VERSION="-pkgsrc"

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

.if ${MACHINE_ENDIAN} == "big"
CFLAGS+=	-DMSB_FIRST
.endif

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

INSTALLATION_DIRS+=	${PREFIX}/lib/libretro

.include "../../mk/pthread.buildlink3.mk"