- Remove unused PLIST_SUB variables
- Add regression-test target Feature safe: yes
This commit is contained in:
parent
3dec06a959
commit
210eca65be
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=316040
2 changed files with 18 additions and 6 deletions
|
@ -33,10 +33,8 @@ BUILD_DEPENDS= libtool:${PORTSDIR}/devel/libtool
|
|||
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>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue