Edit

IABSD.fr/ports/math/bc-gh/Makefile

Branch :

  • Show log

    Commit

  • Author : bcallah
    Date : 2023-11-18 14:16:50
    Hash : 4e60ffdf
    Message : Update to bc-gh-6.7.2 Changelog: improved p() function in the extended math library three new functions in the extended math library: min(), max() and i2rand() bug fix for SIGINT only being handled once

  • math/bc-gh/Makefile
  • V =		6.7.2
    COMMENT =	implementation of POSIX bc with GNU and BSD extensions
    DISTNAME =	bc-${V}
    PKGNAME =	bc-gh-${V}
    EXTRACT_SUFX =	.tar.xz
    CATEGORIES =	math
    
    HOMEPAGE =	https://github.com/gavinhoward/bc
    MAINTAINER =	Brian Callahan <bcallah@openbsd.org>
    
    # BSD
    PERMIT_PACKAGE =	Yes
    
    WANTLIB += c
    
    SITES =		https://github.com/gavinhoward/bc/releases/download/${V}/
    
    COMPILER =	base-clang ports-gcc
    
    # CONFIGURE_ARGS makes it so we don't run tests that need GNU bc to generate.
    CONFIGURE_STYLE =	simple
    CONFIGURE_SCRIPT =	configure.sh
    CONFIGURE_ARGS =	-G
    CONFIGURE_ENV =		CC="${CC}" \
    			CFLAGS="${CFLAGS}" \
    			EXECSUFFIX="-gh" \
    			MANDIR="${PREFIX}/man" \
    			NLSPATH="${PREFIX}/share/locale/%L/%N"
    
    # Use 64-bit math on 64-bit archs
    .include <bsd.port.arch.mk>
    .if ${PROPERTIES:Mlp64}
    CONFIGURE_ENV +=	LONG_BIT=64
    .else
    CONFIGURE_ENV +=	LONG_BIT=32
    .endif
    
    FAKE_FLAGS =	DESTDIR="${DESTDIR}"
    
    .include <bsd.port.mk>