91c513caf3
v1.0.1 -- Dmitry Kovalenko provided fixes to mp_add_d() and mp_init_copy() -- Matt Johnston contributed some improvements to mp_div_2d(), mp_exptmod_fast(), mp_mod() and mp_mulmod() -- Julien Nabet provided a fix to the error handling in mp_init_multi() -- Ben Gardner provided a fix regarding usage of reserved keywords -- Fixed mp_rand() to fill the correct number of bits -- Fixed mp_invmod() -- Use the same 64-bit detection code as in libtomcrypt -- Correct usage of DESTDIR, PREFIX, etc. when installing the library -- Francois Perrad updated all the perl scripts to an actual perl version
35 lines
1.2 KiB
Makefile
35 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.22 2017/09/26 14:34:23 mspo Exp $
|
|
|
|
DISTNAME= ltm-1.0.1
|
|
PKGREVISION= 1
|
|
CATEGORIES= math
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=libtom/}
|
|
GITHUB_PROJECT= libtommath
|
|
GITHUB_RELEASE= v${PKGVERSION_NOREV}
|
|
EXTRACT_SUFX= .tar.xz
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://libtom.net/
|
|
COMMENT= Number theoretic multiple-precision integer library
|
|
LICENSE= public-domain
|
|
|
|
WRKSRC= ${WRKDIR}/libtommath-1.0.1
|
|
USE_LIBTOOL= yes
|
|
MAKE_FILE= makefile.shared
|
|
MAKE_ENV+= LIBPATH=${PREFIX}/lib
|
|
BUILD_TARGET= default
|
|
USE_TOOLS+= gmake
|
|
|
|
INSTALLATION_DIRS= include lib share/doc/ltm
|
|
|
|
do-install:
|
|
${INSTALL_DATA} ${WRKSRC}/tommath.h ${DESTDIR}${PREFIX}/include
|
|
${INSTALL_DATA} ${WRKSRC}/tommath_class.h ${DESTDIR}${PREFIX}/include
|
|
${INSTALL_DATA} ${WRKSRC}/tommath_superclass.h ${DESTDIR}${PREFIX}/include
|
|
${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC}/libtommath.la \
|
|
${DESTDIR}${PREFIX}/lib
|
|
${INSTALL_DATA} ${WRKSRC}/doc/bn.pdf ${DESTDIR}${PREFIX}/share/doc/ltm
|
|
${INSTALL_DATA} ${WRKSRC}/doc/poster.pdf ${DESTDIR}${PREFIX}/share/doc/ltm
|
|
${INSTALL_DATA} ${WRKSRC}/doc/tommath.pdf ${DESTDIR}${PREFIX}/share/doc/ltm
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|