summaryrefslogtreecommitdiff
path: root/emulators/ski/Makefile
blob: c746306f453c868b2d2ba687d7340c5d1830c7ca (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
51
52
53
54
55
56
57
# $NetBSD: Makefile,v 1.26 2018/07/04 13:40:17 jperkin Exp $
#

DISTNAME=	ski-1.3.2
PKGREVISION=	10
CATEGORIES=	emulators
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=ski/}

MAINTAINER=	cherry@zyx.in
HOMEPAGE=	http://ski.sourceforge.net/
COMMENT=	The ia64 instruction set simulator
LICENSE=	gnu-gpl-v2

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

BUILD_DEPENDS+= libelf>=0.8.13:../../devel/libelf

GNU_CONFIGURE=	yes
USE_LANGUAGES+= c c++
CONFIGURE_ARGS+= --prefix=${PREFIX}

CPPFLAGS+=	-I${PREFIX}/include/libelf -L ${PREFIX}/lib

# XXX prevent thousands of warnings for combfns
#CFLAGS+=	-Wno-unused-variable -Wno-unused-but-set-variable

USE_TOOLS+=	pkg-config aclocal autoconf automake autoreconf yacc
USE_LIBTOOL=	yes
USE_NCURSES=	yes

SUBST_CLASSES+=		xski-app
SUBST_STAGE.xski-app=	pre-configure
SUBST_MESSAGE.xski-app=	Fixing X11 Makefile.am app-default paths.
SUBST_FILES.xski-app=	Makefile.am
SUBST_SED.xski-app=	-e 's,/etc/X11/app-defaults,${PREFIX}/lib/X11/app-defaults,g'

SUBST_CLASSES+=		ssx-app
SUBST_STAGE.ssx-app=	pre-configure
SUBST_MESSAGE.ssx-app=	Fixing X11 ssX.c app-default paths.
SUBST_FILES.ssx-app=	src/ssX.c
SUBST_SED.ssx-app=	-e 's,XSKI_RESOURCE_FILE,${PREFIX}/lib/X11/app-defaults/XSki,g'

pre-configure:
#	cd  ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${SH} ./autogen.sh ${CONFIGURE_ARGS}
	cd ${WRKSRC} && autoreconf -fi -I macros

post-install:
	${INSTALL_DATA} ${WRKSRC}/doc/manual/SkiManualMasterDoc.pdf \
			${DESTDIR}${PREFIX}/share/ski

.include "../../devel/gperf/buildlink3.mk"
.include "../../devel/libelf/buildlink3.mk"
.include "../../devel/ncurses/buildlink3.mk"
.include "../../devel/libltdl/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"