pkgsrc/math/capc-calc/Makefile

32 lines
768 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.39 2009/05/20 00:58:21 wiz Exp $
#
DISTNAME= calc-2.12.3.3
PKGNAME= capc-${DISTNAME:S/t/./}
PKGREVISION= 1
CATEGORIES= math
MASTER_SITES= http://www.isthe.com/chongo/src/calc/ \
http://prdownloads.sourceforge.net/calc/
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.isthe.com/chongo/tech/comp/calc/
COMMENT= C arbitrary precision calculator
2008-06-20 03:09:05 +02:00
PKG_DESTDIR_SUPPORT= user-destdir
2008-05-06 08:17:15 +02:00
MAKE_JOBS_SAFE= no
USE_TOOLS+= gmake
BUILD_TARGET= calc-static-only
MAKE_ENV+= BLD_TYPE=calc-static-only target=pkgsrc
MAKE_ENV+= DEBUG=${CFLAGS:M*:Q}
2008-06-20 03:09:05 +02:00
INSTALL_MAKE_FLAGS+= T=${DESTDIR}
TEST_TARGET= check
2001-06-21 04:26:15 +02:00
Update to 2.11.9.2: Fixed calc man page examples to move -f to the end of the line. Thanks goes to Michael Somos <somos at grail dot cba dot csuohio dot edu> for pointing this out. Linux and gcc now compiled with -Wall -W -Wno-comment. Fixed a post increment that was reported by R. Trinler <trinler at web dot de> and fixed by Ernest Bowen <ernie at turing dot une dot edu dot au>. Fixed pi.cal to not depend on the buggy pre-2.11.9 post increment behavior. Added config("cygwin") to determine if calc was compiled under Cygwin. The config("cygwin") is a read-only configuration value that is 1 when calc was compiled under Cygwin and 0 otherwise. Regression tests 949 and 950 are skipped when config("cygwin") is true. The Makefile variable HAVE_NO_IMPLICIT is empty by default so that the Makefile will test if the compiler has a -Wno-implicit flag. Added HAVE_UNUSED Makefile variable. If HAVE_UNUSED is empty, then the Makefile will run the have_unused program to determine if the unused attribute is supported. If HAVE_UNUSED is set to -DHAVE_NO_UNUSED, then the unused attribute will not be used. The Makefile builds have_unused.h which defines, if the unused attribute is supported: #define HAVE_UNUSED /* yes */ #define UNUSED __attribute__((unused)) /* yes */ or defines, if the unused is not supported (or if the Makefile variable is HAVE_UNUSED= -DHAVE_NO_UNUSED): #undef HAVE_UNUSED /* no */ #define UNUSED /* no */ Fixed numerous warnings about comparison between signed and unsigned value warnings and unused parameter warnings in version.c, zrand.c, string.c, shs1.c, shs.c, qtrans.c, qmath.c, qfunc.c, md5.c, matfunc.c, hist.c, file.c, const.c, blkcpy.c, seed.c, opcodes.c, func.c, qio.c, zrandom.c, custom/c_argv.c, custom/c_devnull.c, custom/c_help.c, custom/c_sysinfo.c, addop.c and calc.c. Fixed some typos in this file. By default, compile with -O3 -g3. The Makefile comments on how some distributions might need to use -O2 -g or -O -g.
2004-03-10 19:17:11 +01:00
.include "../../devel/ncurses/buildlink3.mk"
.include "../../devel/readline/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"