pkgsrc/math/amath/Makefile
adam 96ddaea183 v1.8.0
- Fixed bugs in numeral systems.
- Fixed bugs related to infinity (Inf).
- Fixed bugs related to Not a Number (NaN).
- Updated and cleanup documentation.
- Cleaned up code structure.
- OpenLibm support.
2017-04-22 07:29:53 +00:00

33 lines
887 B
Makefile

# $NetBSD: Makefile,v 1.3 2017/04/22 07:29:53 adam Exp $
DISTNAME= amath-1.8.0
CATEGORIES= math
MASTER_SITES= https://amath.innolan.net/
MASTER_SITES+= http://suyai.innolan.net/
MAINTAINER= cs@innolan.net
HOMEPAGE= https://amath.innolan.net/
COMMENT= Simple command line calculator
LICENSE= 2-clause-bsd
USE_LANGUAGES= c c++
USE_TOOLS+= gmake
HAS_CONFIGURE= yes
CONFIGURE_ARGS+= --prefix=${PREFIX}
CONFIGURE_ARGS+= --mandir=man
CONFIGURE_ARGS+= --with-libm
CONFIGURE_ARGS+= CFLAGS=${CFLAGS:Q}
CONFIGURE_ARGS+= CXXFLAGS=${CXXFLAGS:Q}
CONFIGURE_ARGS+= LDFLAGS=${LDFLAGS:Q}
BUILD_TARGET= static
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/amath ${DESTDIR}${PREFIX}/bin/
${INSTALL_MAN} ${WRKSRC}/amath.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/
do-test:
${RUN} cd ${WRKSRC}; ${SETENV} ${TEST_ENV} ./amath test
.include "../../mk/bsd.pkg.mk"