head	1.3;
access;
symbols
	pkgsrc-2026Q2:1.2.0.10
	pkgsrc-2026Q2-base:1.2
	pkgsrc-2026Q1:1.2.0.8
	pkgsrc-2026Q1-base:1.2
	pkgsrc-2025Q4:1.2.0.6
	pkgsrc-2025Q4-base:1.2
	pkgsrc-2025Q3:1.2.0.4
	pkgsrc-2025Q3-base:1.2
	pkgsrc-2025Q2:1.2.0.2
	pkgsrc-2025Q2-base:1.2
	pkgsrc-2025Q1:1.1.0.2
	pkgsrc-2025Q1-base:1.1;
locks; strict;
comment	@# @;


1.3
date	2026.07.20.18.12.24;	author ryoon;	state Exp;
branches;
next	1.2;
commitid	PeMoCbRBQ2In9qOG;

1.2
date	2025.05.06.16.01.19;	author wiz;	state Exp;
branches;
next	1.1;
commitid	NggnXkHYEV7izRTF;

1.1
date	2024.12.24.10.52.58;	author wiz;	state Exp;
branches;
next	;
commitid	6pKoIsBKlAlA8KCF;


desc
@@


1.3
log
@math/mpdecimal: Fix RELRO build

* Add RELRO flag to LDXXFLAGS to pass RELRO check.
@
text
@# $NetBSD: Makefile,v 1.2 2025/05/06 16:01:19 wiz Exp $

DISTNAME=	mpdecimal-4.0.1
CATEGORIES=	math
MASTER_SITES=	https://www.bytereef.org/software/mpdecimal/releases/

MAINTAINER=	skrah@@bytereef.org
HOMEPAGE=	https://www.bytereef.org/mpdecimal/
COMMENT=	C/C++ arbitrary precision decimal floating point libraries
LICENSE=	2-clause-bsd

USE_CC_FEATURES=	c99
USE_CXX_FEATURES=	c++11
USE_LANGUAGES=		c c++
USE_TOOLS+=		gmake
GNU_CONFIGURE=		yes
BUILD_TARGET=		default
TEST_TARGET=		check_local
# Let libmpdec++.so find libmpdec.so
CONFIGURE_ENV+=		LDXXFLAGS="${COMPILER_RPATH_FLAG}${PREFIX}/lib ${LDFLAGS}"
PKGCONFIG_OVERRIDE+=	libmpdec/.pc/libmpdec.pc.in
PKGCONFIG_OVERRIDE+=	libmpdec++/.pc/libmpdec++.pc.in

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


1.2
log
@mpdecimal: update to 4.0.1.

Version 4.0.1
-------------

build/install
~~~~~~~~~~~~~

    **features**

    - Add Cygwin support.

    - Update config.guess and config.sub to the latest versions.

    **build fixes**

    - Fix pkg-config files for custom paths.

    - Set LD/LDXX unconditionally to CC/CXX, since LDFLAGS/LDXXFLAGS from
      ./configure rely on it.

    - macOS: use libdir instead of RPATH for the install_name.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2024/12/24 10:52:58 wiz Exp $
d20 1
a20 1
CONFIGURE_ENV+=		LDXXFLAGS="${COMPILER_RPATH_FLAG}${PREFIX}/lib"
@


1.1
log
@math/mpdecimal: import mpdecimal-4.0.0

Worked on in wip by Stefan Krah, bsiegert, adam, and myself.

libmpdec is a complete C implementation of the General Decimal Arithmetic
Specification.  The specification, written by Mike Cowlishaw from IBM,
defines a general purpose arbitrary precision data type together with
rigorously specified functions and rounding behavior.  As described in the
scope section of the specification, libmpdec will - with minor restrictions -
also conform to the IEEE 754-2008 Standard for Floating-Point Arithmetic,
provided that the appropriate context parameters are set.

libmpdec++ is a complete C++ implementation of the General Decimal Arithmetic
Specification. libmpdec++ is mostly a header library around libmpdec.  The
library frees users from manual memory management and has an easy API with
inline operators.  libmpdec++ has a thread local context for inline operators
and other functions that use the implicit context.
@
text
@d1 1
a1 1
# $NetBSD$
d3 1
a3 1
DISTNAME=	mpdecimal-4.0.0
@

