FreeBSD Bugzilla – Attachment 167101 Details for
Bug 207266
math/libtommath: Update to 1.0
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
libtommath-1.0.patch
libtommath.patch (text/plain), 5.68 KB, created by
takefu
on 2016-02-17 00:37:56 UTC
(
hide
)
Description:
libtommath-1.0.patch
Filename:
MIME Type:
Creator:
takefu
Created:
2016-02-17 00:37:56 UTC
Size:
5.68 KB
patch
obsolete
>diff -dpruN /usr/ports/math/libtommath/Makefile ./Makefile >--- /usr/ports/math/libtommath/Makefile 2015-11-14 20:27:12.000000000 +0000 >+++ ./Makefile 2016-02-16 07:58:47.000000000 +0000 >@@ -1,17 +1,17 @@ > # $FreeBSD: head/math/libtommath/Makefile 401594 2015-11-14 20:27:12Z amdmi3 $ > > PORTNAME= libtommath >-PORTVERSION= 0.42.0 >-PORTREVISION= 2 >+PORTVERSION= 1.0 >+#PORTREVISION= 0 > CATEGORIES= math >-MASTER_SITES= http://libtom.net/files/ >+MASTER_SITES= https://github.com/libtom/libtommath/releases/download/v${PORTVERSION}/ > DISTNAME= ltm-${PORTVERSION} > > MAINTAINER= ports@FreeBSD.org > COMMENT= Comprehensive, modular, and portable mathematical routines > > WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} >-USES= gmake tar:bzip2 >+USES= gmake tar:xz > ALL_TARGET= default > CFLAGS+= -fPIC > PORTDOCS= * >@@ -24,14 +24,10 @@ OPTIONS_DEFINE= DOCS SHARED > SHARED_DESC= Build shared library > SHARED_USES= libtool:build > SHARED_USE= LDCONFIG=yes >-SHARED_PLIST_FILES= lib/libtommath.so lib/libtommath.so.0 lib/libtommath.so.0.0.41 >+SHARED_PLIST_FILES= lib/libtommath.so lib/libtommath.so.1 lib/libtommath.so.1.0.0 > SHARED_VARS= MAKEFILE=makefile.shared > SHARED_VARS_OFF= MAKEFILE=makefile > >-post-patch: >- ${REINPLACE_CMD} -e 's|gcc|${CC}|g' ${WRKSRC}/makefile.shared >- ${REINPLACE_CMD} -e 's|DESTDIR=|DESTDIR?=| ; s|-g $$(GROUP) -o $$(USER)||' ${WRKSRC}/${MAKEFILE} >- > post-install: > @${MKDIR} ${STAGEDIR}${DOCSDIR} > ${INSTALL_DATA} ${WRKSRC}/bn.pdf ${STAGEDIR}${DOCSDIR} >@@ -39,7 +35,7 @@ post-install: > ${INSTALL_DATA} ${WRKSRC}/tommath.pdf ${STAGEDIR}${DOCSDIR} > > post-install-SHARED-on: >- @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libtommath.so.0 >+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libtommath.so.1 > > regression-test: > (cd ${WRKSRC}; \ >diff -dpruN /usr/ports/math/libtommath/distinfo ./distinfo >--- /usr/ports/math/libtommath/distinfo 2014-01-22 15:30:13.000000000 +0000 >+++ ./distinfo 2016-02-16 06:25:00.000000000 +0000 >@@ -1,2 +1,2 @@ >-SHA256 (ltm-0.42.0.tar.bz2) = 7b5c258304c34ac5901cfddb9f809b9b3b8ac7d04f700cf006ac766a923eb217 >-SIZE (ltm-0.42.0.tar.bz2) = 1968961 >+SHA256 (ltm-1.0.tar.xz) = 993a7df9ee091fca430cdde3263df57d88ef62af8103903214da49fc51bbb56c >+SIZE (ltm-1.0.tar.xz) = 2191540 >diff -dpruN /usr/ports/math/libtommath/files/patch-makefile ./files/patch-makefile >--- /usr/ports/math/libtommath/files/patch-makefile 2013-04-18 13:27:18.000000000 +0000 >+++ ./files/patch-makefile 1970-01-01 00:00:00.000000000 +0000 >@@ -1,57 +0,0 @@ >---- makefile.bak 2010-07-30 12:05:21.219322050 +0200 >-+++ makefile 2010-07-30 12:07:19.588144344 +0200 >-@@ -14,7 +14,7 @@ >- ifndef IGNORE_SPEED >- >- #for speed >--CFLAGS += -O3 -funroll-loops >-+CFLAGS += -funroll-loops >- >- #for size >- #CFLAGS += -Os >-@@ -53,9 +53,9 @@ >- #INCPATH-The directory to install the header files for libtommath. >- #DATAPATH-The directory to install the pdf docs. >- DESTDIR= >--LIBPATH=/usr/lib >--INCPATH=/usr/include >--DATAPATH=/usr/share/doc/libtommath/pdf >-+LIBPATH=${PREFIX}/lib >-+INCPATH=${PREFIX}/include >-+DATAPATH=${DOCSDIR}/pdf >- >- OBJECTS=bncore.o bn_mp_init.o bn_mp_clear.o bn_mp_exch.o bn_mp_grow.o bn_mp_shrink.o \ >- bn_mp_clamp.o bn_mp_zero.o bn_mp_set.o bn_mp_set_int.o bn_mp_init_size.o bn_mp_copy.o \ >---- makefile.shared.orig 2010-07-23 16:27:20.000000000 +0200 >-+++ makefile.shared 2013-04-18 15:26:25.000000000 +0200 >-@@ -10,7 +10,7 @@ >- ifndef IGNORE_SPEED >- >- #for speed >--CFLAGS += -O3 -funroll-loops >-+CFLAGS += -funroll-loops >- >- #for size >- #CFLAGS += -Os >-@@ -48,9 +48,9 @@ >- #INCPATH-The directory to install the header files for libtommath. >- #DATAPATH-The directory to install the pdf docs. >- DESTDIR= >--LIBPATH=/usr/lib >--INCPATH=/usr/include >--DATAPATH=/usr/share/doc/libtommath/pdf >-+LIBPATH=${PREFIX}/lib >-+INCPATH=${PREFIX}/include >-+DATAPATH=${DOCSDIR}/pdf >- >- OBJECTS=bncore.o bn_mp_init.o bn_mp_clear.o bn_mp_exch.o bn_mp_grow.o bn_mp_shrink.o \ >- bn_mp_clamp.o bn_mp_zero.o bn_mp_set.o bn_mp_set_int.o bn_mp_init_size.o bn_mp_copy.o \ >-@@ -93,7 +93,7 @@ >- >- test: $(LIBNAME) demo/demo.o >- gcc $(CFLAGS) -c demo/demo.c -o demo/demo.o >-- libtool --mode=link gcc -o test demo/demo.o $(LIBNAME_S) >-+ libtool --mode=link gcc -o test demo/demo.o .libs/$(LIBNAME_S) >- >- mtest: test >- cd mtest ; gcc $(CFLAGS) mtest.c -o mtest >diff -dpruN /usr/ports/math/libtommath/files/patch-makefile.include ./files/patch-makefile.include >--- /usr/ports/math/libtommath/files/patch-makefile.include 1970-01-01 00:00:00.000000000 +0000 >+++ ./files/patch-makefile.include 2016-02-16 07:42:04.000000000 +0000 >@@ -0,0 +1,47 @@ >+--- makefile.include.orig 2016-02-03 18:07:27 UTC >++++ makefile.include >+@@ -14,15 +14,15 @@ ifndef PREFIX >+ PREFIX= >+ endif >+ >+-ifeq ($(CC),cc) >+- CC = $(PREFIX)gcc >+-endif >+-LD=$(PREFIX)ld >+-AR=$(PREFIX)ar >+-RANLIB=$(PREFIX)ranlib >++#ifeq ($(CC),cc) >++# CC = $(PREFIX)gcc >++#endif >++#LD=$(PREFIX)ld >++AR=$(shell which ar) >++RANLIB=$(shell which ranlib) >+ >+ ifndef MAKE >+- MAKE=make >++ MAKE=$(shell which gmake) >+ endif >+ >+ CFLAGS += -I./ -Wall -Wsign-compare -Wextra -Wshadow >+@@ -55,7 +55,7 @@ endif # COMPILE_SIZE >+ endif # COMPILE_DEBUG >+ >+ # adjust coverage set >+-ifneq ($(filter $(shell arch), i386 i686 x86_64 amd64 ia64),) >++ifneq ($(filter $(shell /sbin/sysctl -b hw.machine_arch), i386 i686 x86_64 amd64 ia64),) >+ COVERAGE = test_standalone timing >+ COVERAGE_APP = ./test && ./ltmtest >+ else >+@@ -71,9 +71,9 @@ test_standalone: CFLAGS+=-DLTM_DEMO_TEST >+ #LIBPATH-The directory for libtommath to be installed to. >+ #INCPATH-The directory to install the header files for libtommath. >+ #DATAPATH-The directory to install the pdf docs. >+-LIBPATH?=/usr/lib >+-INCPATH?=/usr/include >+-DATAPATH?=/usr/share/doc/libtommath/pdf >++LIBPATH?=$(PREFIX)/lib >++INCPATH?=$(PREFIX)/include >++DATAPATH?=$(DOCSDIR)/pdf >+ >+ #make the code coverage of the library >+ #
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 207266
: 167101