mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
- Update to 1.02 [1]
- Do not use optimization CFLAGS - OPTIONSify - When WITH_DOCS is defined, do not run-depend on ghostscript-gnu (the user is free to use his favorite pdf viewer) - Sort pkg-plist PR: ports/81356 [1] Submitted by: maintainer [1]
This commit is contained in:
parent
99e76bb9fc
commit
20e0d56311
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=135878
@ -6,45 +6,42 @@
|
||||
#
|
||||
|
||||
PORTNAME= libtomcrypt
|
||||
PORTVERSION= 1.00
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 1.02
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= http://libtomcrypt.org/files/:source \
|
||||
http://libtomcrypt.org/files/patch-1.00/:patch
|
||||
DISTFILES= crypt-${PORTVERSION}.tar.bz2:source \
|
||||
ltc-1.00-001.tar.bz2:patch
|
||||
MASTER_SITES= http://libtomcrypt.org/files/
|
||||
DISTNAME= crypt-${PORTVERSION}
|
||||
|
||||
MAINTAINER= onatan@gmail.com
|
||||
COMMENT= Comprehensive, modular and portable cryptographic toolkit
|
||||
|
||||
EXTRA_PATCHES= ${WRKDIR}/src/pk/pkcs1/pkcs_1_oaep_encode.c.patch \
|
||||
${WRKDIR}/src/pk/pkcs1/pkcs_1_oaep_decode.c.patch \
|
||||
${WRKDIR}/src/misc/base64/base64_decode.c.patch \
|
||||
${WRKDIR}/src/headers/tomcrypt.h.patch \
|
||||
${WRKDIR}/makefile.shared.patch \
|
||||
${WRKDIR}/makefile.patch \
|
||||
${WRKDIR}/changes.patch \
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
||||
MAKEFILE= makefile
|
||||
MAKE_ARGS+= PREFIX=${PREFIX}
|
||||
MAKE_ENV= PREFIX=${PREFIX} DOCSDIR=${DOCSDIR} EXAMPLESDIR=${EXAMPLESDIR}
|
||||
USE_BZIP2= yes
|
||||
USE_GMAKE= yes
|
||||
USE_REINPLACE= yes
|
||||
ALL_TARGET= library
|
||||
|
||||
OPTIONS= DOCS "build documentation (depends on teTeX)" off
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if defined(WITH_DOCS)
|
||||
BUILD_DEPENDS+= latex:${PORTSDIR}/print/teTeX
|
||||
RUN_DEPENDS+= gs:${PORTSDIR}/print/ghostscript-gnu
|
||||
.else
|
||||
NOPORTDOCS= yes
|
||||
INSTALL_TARGET= install_lib
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e \
|
||||
's|/usr|${PREFIX}|; s|dvipdf|dvipdft|; \
|
||||
s|-O3||; s|-funroll-loops||; s|-fomit-frame-pointer||; \
|
||||
s|-Wno-unused-parameter||' \
|
||||
${WRKSRC}/makefile
|
||||
|
||||
.if defined(MAINTAINER_MODE)
|
||||
test: build
|
||||
(cd ${WRKSRC}/demos/test && ${MAKE} test ${MAKE_ARGS} && ${WRKSRC}/demos/test/test)
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
||||
.include <bsd.port.post.mk>
|
||||
|
@ -1,4 +1,2 @@
|
||||
MD5 (crypt-1.00.tar.bz2) = 73a896e5e8f636dd14c1517f572ddaa1
|
||||
SIZE (crypt-1.00.tar.bz2) = 940439
|
||||
MD5 (ltc-1.00-001.tar.bz2) = fa7a398e554754098259a1a3a5997672
|
||||
SIZE (ltc-1.00-001.tar.bz2) = 1868
|
||||
MD5 (crypt-1.02.tar.bz2) = f571fb2f984ec59d229a7f691c35b4d1
|
||||
SIZE (crypt-1.02.tar.bz2) = 1025539
|
||||
|
@ -1,11 +0,0 @@
|
||||
--- demos/test/makefile.orig Mon Jan 10 16:35:45 2005
|
||||
+++ demos/test/makefile Mon Jan 10 16:35:58 2005
|
||||
@@ -19,7 +19,7 @@
|
||||
#CCMALLOC = -lccmalloc -ldl
|
||||
|
||||
test: $(OBJECTS)
|
||||
- $(CC) $(CFLAGS) $(OBJECTS) /usr/lib/libtomcrypt.a $(CCMALLOC) -o test
|
||||
+ $(CC) $(CFLAGS) $(OBJECTS) $(PREFIX)/lib/libtomcrypt.a $(CCMALLOC) -o test
|
||||
|
||||
clean:
|
||||
rm -rf test *.o *.obj *.exe *~ .libs
|
@ -1,29 +0,0 @@
|
||||
--- makefile.orig Thu Dec 30 19:55:17 2004
|
||||
+++ makefile Tue Jan 11 12:10:05 2005
|
||||
@@ -50,13 +50,13 @@
|
||||
#INCPATH-The directory to install the header files for libtomcrypt.
|
||||
#DATAPATH-The directory to install the pdf docs.
|
||||
DESTDIR=
|
||||
-LIBPATH=/usr/lib
|
||||
-INCPATH=/usr/include
|
||||
-DATAPATH=/usr/share/doc/libtomcrypt/pdf
|
||||
+LIBPATH=$(PREFIX)/lib
|
||||
+INCPATH=$(PREFIX)/include
|
||||
+DATAPATH=$(PREFIX)/share/doc/libtomcrypt/pdf
|
||||
|
||||
#Who do we install as?
|
||||
USER=root
|
||||
-GROUP=root
|
||||
+GROUP=wheel
|
||||
|
||||
#List of objects to compile.
|
||||
|
||||
@@ -251,7 +251,7 @@
|
||||
latex crypt > /dev/null
|
||||
makeindex crypt.idx > /dev/null
|
||||
latex crypt > /dev/null
|
||||
- dvipdf crypt
|
||||
+ dvipdft crypt
|
||||
mv -ivf crypt.pdf doc/crypt.pdf
|
||||
rm -f $(LEFTOVERS)
|
||||
|
@ -1,18 +1,20 @@
|
||||
lib/libtomcrypt.a
|
||||
include/ltc_tommath.h
|
||||
include/tomcrypt_cfg.h
|
||||
include/tomcrypt_misc.h
|
||||
include/tomcrypt_prng.h
|
||||
include/tomcrypt_cipher.h
|
||||
include/tomcrypt_hash.h
|
||||
include/tomcrypt_macros.h
|
||||
include/tomcrypt_pk.h
|
||||
include/tomcrypt.h
|
||||
include/tomcrypt_argchk.h
|
||||
include/tomcrypt_cfg.h
|
||||
include/tomcrypt_cipher.h
|
||||
include/tomcrypt_custom.h
|
||||
include/tomcrypt_hash.h
|
||||
include/tomcrypt_mac.h
|
||||
include/tomcrypt_macros.h
|
||||
include/tomcrypt_misc.h
|
||||
include/tomcrypt_pk.h
|
||||
include/tomcrypt_pkcs.h
|
||||
include/tomcrypt_prng.h
|
||||
include/tomcrypt_test.h
|
||||
include/tommath_class.h
|
||||
include/tommath_superclass.h
|
||||
lib/libtomcrypt.a
|
||||
%%PORTDOCS%%%%DOCSDIR%%/pdf/crypt.pdf
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%/pdf/
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%/pdf
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
|
Loading…
Reference in New Issue
Block a user