2017-07-25 14:26:05 +02:00
|
|
|
# $NetBSD: Makefile,v 1.5 2017/07/25 12:26:05 leot Exp $
|
2017-01-30 20:49:26 +01:00
|
|
|
|
2017-07-25 14:26:05 +02:00
|
|
|
DISTNAME= amath-1.8.3
|
2017-01-30 20:49:26 +01:00
|
|
|
CATEGORIES= math
|
2017-07-15 21:22:42 +02:00
|
|
|
MASTER_SITES= http://dist1.innolan.net/
|
|
|
|
MASTER_SITES+= http://dist2.innolan.net/
|
|
|
|
MASTER_SITES+= https://amath.innolan.net/
|
2017-01-30 20:49:26 +01:00
|
|
|
|
2017-04-22 09:29:53 +02:00
|
|
|
MAINTAINER= cs@innolan.net
|
|
|
|
HOMEPAGE= https://amath.innolan.net/
|
2017-01-30 20:49:26 +01:00
|
|
|
COMMENT= Simple command line calculator
|
|
|
|
LICENSE= 2-clause-bsd
|
|
|
|
|
2017-04-22 09:29:53 +02:00
|
|
|
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}
|
2017-01-30 20:49:26 +01:00
|
|
|
|
2017-04-22 09:29:53 +02:00
|
|
|
BUILD_TARGET= static
|
|
|
|
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
|
2017-01-30 20:49:26 +01:00
|
|
|
|
|
|
|
do-install:
|
2017-04-22 09:29:53 +02:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/amath ${DESTDIR}${PREFIX}/bin/
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/amath.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/
|
2017-01-30 20:49:26 +01:00
|
|
|
|
|
|
|
do-test:
|
2017-04-22 09:29:53 +02:00
|
|
|
${RUN} cd ${WRKSRC}; ${SETENV} ${TEST_ENV} ./amath test
|
2017-01-30 20:49:26 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|