Contents of /smage/trunk/deprecated/libtommath/libtommath-1.2.0-r2.smage2
Parent Directory | Revision Log
Revision 16008 -
(show annotations)
(download)
Thu Aug 31 08:43:46 2023 UTC (8 months, 3 weeks ago) by niro
File size: 1096 byte(s)
Thu Aug 31 08:43:46 2023 UTC (8 months, 3 weeks ago) by niro
File size: 1096 byte(s)
-moved to 'deprecated'
1 | # $Id$ |
2 | |
3 | PNAME="libtommath" |
4 | PVER="1.2.0" |
5 | PBUILD="r2" |
6 | |
7 | PCAT="dev-libs" |
8 | |
9 | DESCRIPTION="Highly optimized and portable routines for integer based number theoretic applications." |
10 | HOMEPAGE="http://www.libtom.net/" |
11 | |
12 | DEPEND=">= virtual/glibc" |
13 | ALX_LIB32_DEPEND=">= virtual/glibc-lib32" |
14 | |
15 | SRCFILE="ltm-${PVER}.tar.xz" |
16 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
17 | |
18 | ALX_PKG_KEEP="usr/$(MABI=m64 mlibdir)/*.so.*" |
19 | ALX_LIB32_PKG_KEEP="usr/$(MABI=m32 mlibdir)/*.so.*" |
20 | msetfeature "!check" |
21 | sminclude multilib mbuild lib32-split alx-split |
22 | |
23 | SRC_URI=( |
24 | https://github.com/libtom/${PNAME}/releases/download/v${PVER}/${SRCFILE} |
25 | mirror://${PNAME}/${SRCFILE} |
26 | ) |
27 | |
28 | UP2SEPERATOR="v" |
29 | UP2EXCLUDE="RC" |
30 | UP2DATE="updatecmd https://github.com/libtom/${PNAME}/releases | highesttarball gz" |
31 | |
32 | src_compile() |
33 | { |
34 | cd ${SRCDIR} |
35 | mmake -f makefile.shared IGNORE_SPEED=1 LIBPATH=/usr/'$(mlibdir)' INCPATH="/usr/include" || die |
36 | } |
37 | |
38 | alx_generic_src_install() |
39 | { |
40 | cd ${SRCDIR} |
41 | mmake -f makefile.shared DESTDIR=${BINDIR} LIBPATH=/usr/'$(mlibdir)' INCPATH="/usr/include" install || die |
42 | minstalldocs LICENSE changes bn.pdf poster.pdf tommath.pdf || die |
43 | } |