svn commit: r316040 - in head/math/libtommath: . files
Pietro Cerutti
gahr at FreeBSD.org
Thu Apr 18 13:27:19 UTC 2013
Author: gahr
Date: Thu Apr 18 13:27:18 2013
New Revision: 316040
URL: http://svnweb.freebsd.org/changeset/ports/316040
Log:
- Remove unused PLIST_SUB variables
- Add regression-test target
Feature safe: yes
Modified:
head/math/libtommath/Makefile
head/math/libtommath/files/patch-makefile
Modified: head/math/libtommath/Makefile
==============================================================================
--- head/math/libtommath/Makefile Thu Apr 18 12:44:30 2013 (r316039)
+++ head/math/libtommath/Makefile Thu Apr 18 13:27:18 2013 (r316040)
@@ -33,10 +33,8 @@ BUILD_DEPENDS= libtool:${PORTSDIR}/devel
USE_LDCONFIG= yes
PLIST_FILES+= lib/libtommath.la lib/libtommath.so.0 lib/libtommath.so
MAKEFILE= makefile.shared
-PLIST_SUB+= SHARED=""
.else
MAKEFILE= makefile
-PLIST_SUB+= SHARED="@comment "
.endif
.if ${PORT_OPTIONS:MDOCS}
@@ -47,4 +45,9 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/tommath.pdf ${DOCSDIR}/
.endif
+regression-test:
+ (cd ${WRKSRC}; \
+ ${SETENV} ${MAKE_ENV} ${GMAKE} -f ${MAKEFILE} mtest test; \
+ ./mtest/mtest | ./test)
+
.include <bsd.port.mk>
Modified: head/math/libtommath/files/patch-makefile
==============================================================================
--- head/math/libtommath/files/patch-makefile Thu Apr 18 12:44:30 2013 (r316039)
+++ head/math/libtommath/files/patch-makefile Thu Apr 18 13:27:18 2013 (r316040)
@@ -22,9 +22,9 @@
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.bak 2010-07-30 12:05:21.219322050 +0200
-+++ makefile.shared 2010-07-30 12:07:19.588144344 +0200
-@@ -14,7 +14,7 @@
+--- 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
@@ -33,7 +33,7 @@
#for size
#CFLAGS += -Os
-@@ -53,9 +53,9 @@
+@@ -48,9 +48,9 @@
#INCPATH-The directory to install the header files for libtommath.
#DATAPATH-The directory to install the pdf docs.
DESTDIR=
@@ -46,3 +46,12 @@
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
More information about the svn-ports-all
mailing list