Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Mar 2016 07:46:56 +0000 (UTC)
From:      Wen Heping <wen@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r410694 - in head/math/libtommath: . files
Message-ID:  <201603090746.u297kuF2019146@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wen
Date: Wed Mar  9 07:46:56 2016
New Revision: 410694
URL: https://svnweb.freebsd.org/changeset/ports/410694

Log:
  - Update to 1.0
  
  PR:		207266
  Submitted by:	takefu@airport.fm

Added:
  head/math/libtommath/files/patch-makefile.include   (contents, props changed)
Deleted:
  head/math/libtommath/files/patch-makefile
Modified:
  head/math/libtommath/Makefile
  head/math/libtommath/distinfo

Modified: head/math/libtommath/Makefile
==============================================================================
--- head/math/libtommath/Makefile	Wed Mar  9 07:21:25 2016	(r410693)
+++ head/math/libtommath/Makefile	Wed Mar  9 07:46:56 2016	(r410694)
@@ -1,17 +1,16 @@
 # $FreeBSD$
 
 PORTNAME=	libtommath
-PORTVERSION=	0.42.0
-PORTREVISION=	2
+PORTVERSION=	1.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 +23,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,9 +34,9 @@ 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:
+do-test:
 	(cd ${WRKSRC}; \
 	 ${SETENV} ${MAKE_ENV} ${MAKE_CMD} -f ${MAKEFILE} mtest test; \
 	 ./mtest/mtest | ./test)

Modified: head/math/libtommath/distinfo
==============================================================================
--- head/math/libtommath/distinfo	Wed Mar  9 07:21:25 2016	(r410693)
+++ head/math/libtommath/distinfo	Wed Mar  9 07:46:56 2016	(r410694)
@@ -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

Added: head/math/libtommath/files/patch-makefile.include
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/math/libtommath/files/patch-makefile.include	Wed Mar  9 07:46:56 2016	(r410694)
@@ -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
+ #



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603090746.u297kuF2019146>