summaryrefslogtreecommitdiff
path: root/math/hercules4sdl-decnumber/Makefile
blob: 10a14183f31fe1cb717086baa49694cd186d342b (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
# $NetBSD: Makefile,v 1.1 2021/11/06 16:40:06 rhialto Exp $

DISTNAME=	hercules4sdl-decnumber-3.68.0
PKGREVISION=	20210105
CATEGORIES=	math
MASTER_SITES=	${MASTER_SITE_GITHUB:=SDL-Hercules-390/}
GITHUB_PROJECT=	decNumber
GITHUB_TAG=	da6650957d7dea21b5647c1fa80fa432f2891550 # 5 Jan 2021

MAINTAINER=	rhialto@NetBSD.org
HOMEPAGE=	https://github.com/SDL-Hercules-390/decNumber
COMMENT=	The SoftDevLabs version of decNumber for Hercules 4.x
LICENSE=	modified-bsd # in essence; see README.md

USE_TOOLS+=	cmake
USE_LANGUAGES+=	c

USE_CMAKE=	yes
BLDDIR=		${WRKDIR}/decNumber64.Release
CONFIGURE_DIRS=	${BLDDIR}
CMAKE_ARG_PATH=	${WRKSRC}
CMAKE_ARGS+=	-D INSTALL_PREFIX=${PREFIX}/lib/hercules4sdl

pre-configure:
	${MKDIR} ${BLDDIR}

post-install:
	cd ${DESTDIR}${PREFIX}/lib/hercules4sdl/lib && ${MV} libdecNumber64.a libdecNumber_pic.a

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