summaryrefslogtreecommitdiff
path: root/emulators/gxemul/Makefile
blob: f935d048ed72e637d05040f9e052b3114f7ee52d (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
38
39
40
41
42
43
44
45
46
47
48
49
50
# $NetBSD: Makefile,v 1.69 2020/10/07 13:25:20 ryoon Exp $

DISTNAME=	gxemul-0.6.2
PKGREVISION=	1
CATEGORIES=	emulators
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=gxemul/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://gavare.se/gxemul/
COMMENT=	Framework for full-system computer architecture emulation
LICENSE=	modified-bsd

USE_TOOLS+=	pax

USE_LANGUAGES=	c c++
HAS_CONFIGURE=	yes
BUILD_TARGET=	build

LDFLAGS.SunOS+=	-lsocket -lnsl

INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1 share/doc/${PKGBASE}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/gxemul ${DESTDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/man/gxemul.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
.for f in README HISTORY LICENSE
	${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
.endfor
	${RM} ${WRKSRC}/doc/networking.html.orig
	cd ${WRKSRC}/doc && pax -rwppm . ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}

PKG_OPTIONS_VAR=	PKG_OPTIONS.gxemul
PKG_SUPPORTED_OPTIONS=	x11
PKG_SUGGESTED_OPTIONS=	x11

.include "../../mk/bsd.options.mk"

.if !empty(PKG_OPTIONS:Mx11)
GLOBAL_LDFLAGS=		-L${X11BASE}/lib ${COMPILER_RPATH_FLAG}${X11BASE}/lib
SUBST_CLASSES+=		x11
SUBST_STAGE.x11=	pre-configure
SUBST_FILES.x11=	configure
SUBST_SED.x11=		-e 's|-L/usr/X11R6/lib|${GLOBAL_LDFLAGS:Q}|g'
SUBST_SED.x11+=		-e 's|/usr/X11R6|${X11BASE}|g'
SUBST_MESSAGE.x11=	Fixing X linking flags.

.include "../../x11/libX11/buildlink3.mk"
.endif

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