summaryrefslogtreecommitdiff
path: root/emulators/gxemul/Makefile
blob: 05ab2fdc6b9ce5ea859747718d692423708d0992 (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
# $NetBSD: Makefile,v 1.7 2005/06/01 18:02:47 jlam Exp $
#

DISTNAME=	gxemul-0.3.2
CATEGORIES=	emulators
MASTER_SITES=	http://gavare.se/gxemul/src/

MAINTAINER=	xtraeme@NetBSD.org
HOMEPAGE=	http://gavare.se/gxemul/
COMMENT=	Machine emulator

PKG_INSTALLATION_TYPES=	overwrite pkgviews

HAS_CONFIGURE=	yes
BUILD_TARGET=	build

INSTALLATION_DIRS=	bin share/doc/${PKGBASE}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/gxemul ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/man/gxemul.1 ${PREFIX}/man/man1
.for f in README HISTORY BUGS TODO RELEASE LICENSE
	${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/${PKGBASE}
.endfor
	${INSTALL_DATA} ${WRKSRC}/doc/*.gif ${PREFIX}/share/doc/${PKGBASE}
	${INSTALL_DATA} ${WRKSRC}/doc/*.png ${PREFIX}/share/doc/${PKGBASE}
	${INSTALL_DATA} ${WRKSRC}/doc/*.c ${PREFIX}/share/doc/${PKGBASE}

PKG_OPTIONS_VAR=	PKG_OPTIONS.gxemul
PKG_SUPPORTED_OPTIONS=	x11
PKG_SUGGESTED_OPTIONS=	x11
# can be removed after 2005Q2
PKG_OPTIONS_LEGACY_OPTS+=	X11: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=	post-patch
SUBST_FILES.x11=	configure
SUBST_SED.x11=		-e "s|-L/usr/X11R6/lib|${GLOBAL_LDFLAGS}|g" \
			-e "s|/usr/X11R6|${X11BASE}|g"
SUBST_MESSAGE.x11=	"Fixing X linking flags."
.endif

.include "../../mk/x11.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"