summaryrefslogtreecommitdiff
path: root/emulators/free42/Makefile
blob: 79c902adbe4a3ffcf87f73735b2cc7988d569343 (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
# $NetBSD: Makefile,v 1.4 2014/05/18 21:20:33 joerg Exp $

DISTNAME=	free42
PKGNAME=	${DISTNAME}-1.4.78
PKGREVISION=	1
DIST_SUBDIR=	${PKGNAME_NOREV}
CATEGORIES=	emulators
MASTER_SITES=	http://thomasokken.com/free42/download/
EXTRACT_SUFX=	.tgz

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://thomasokken.com/free42/
COMMENT=	HP42S Calculator Simulator
LICENSE=	gnu-gpl-v2

#WRKSRC=		${WRKDIR}/free42/gtk/
USE_TOOLS+=	gmake pkg-config
USE_LANGUAGES+=	c++
BUILD_DIRS=	gtk

.include "options.mk"

BUILD_TARGET=	free42${VARIANT}

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

.if (${OPSYS} == NetBSD)
CXXFLAGS+=	-DNO_SINCOS
.elif (${OPSYS} == Linux)
MAKE_ENV+=	AUDIO_ALSA=1
.endif

INSTALLATION_DIRS+= bin
INSTALLATION_DIRS+= share/doc/free42

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/${BUILD_DIRS}/${BUILD_TARGET} \
		${DESTDIR}/${PREFIX}/bin/free42
	${INSTALL_DATA} ${WRKSRC}/README \
		${DESTDIR}/${PREFIX}/share/doc/free42
	${INSTALL_DATA} ${WRKSRC}/${BUILD_DIRS}/README \
		${DESTDIR}/${PREFIX}/share/doc/free42/README.gtk

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