From 62e2ae73b205524fc3e352c4b013f65e217655d2 Mon Sep 17 00:00:00 2001 From: Thierry Thomas Date: Sat, 10 Apr 2004 23:16:07 +0000 Subject: Add libtomcrypt 0.92, comprehensive, modular and portable cryptographic toolkit. PR: 62581 Submitted by: Yonatan Approved by: pav (mentor). --- security/libtomcrypt/files/patch-makefile | 50 +++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 security/libtomcrypt/files/patch-makefile (limited to 'security/libtomcrypt/files/patch-makefile') diff --git a/security/libtomcrypt/files/patch-makefile b/security/libtomcrypt/files/patch-makefile new file mode 100644 index 000000000000..02b6cf2e557d --- /dev/null +++ b/security/libtomcrypt/files/patch-makefile @@ -0,0 +1,50 @@ +--- makefile.orig Wed Dec 24 20:59:55 2003 ++++ makefile Sat Apr 10 23:01:52 2004 +@@ -52,9 +52,9 @@ + #LIBPATH-The directory for libtomcrypt to be installed to. + #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 ++DESTDIR=$(PREFIX) ++LIBPATH=/lib ++INCPATH=/include + DATAPATH=/usr/share/doc/libtomcrypt/pdf + + #List of objects to compile. +@@ -106,6 +106,7 @@ + + #This rule makes the test program included with libtomcrypt + test: library $(TESTOBJECTS) ++ mv $(TEST).o demos + $(CC) $(TESTOBJECTS) $(LIBNAME) -o $(TEST) $(WARN) + + #This rule makes the hash program included with libtomcrypt +@@ -129,13 +130,19 @@ + #This rule installs the library and the header files. This must be run + #as root in order to have a high enough permission to write to the correct + #directories and to set the owner and group to root. +-install: library docs +- install -d -g root -o root $(DESTDIR)$(LIBPATH) +- install -d -g root -o root $(DESTDIR)$(INCPATH) +- install -d -g root -o root $(DESTDIR)$(DATAPATH) +- install -g root -o root $(LIBNAME) $(DESTDIR)$(LIBPATH) +- install -g root -o root $(HEADERS) $(DESTDIR)$(INCPATH) +- install -g root -o root crypt.pdf $(DESTDIR)$(DATAPATH) ++install: library docs install-nodocs ++ install -d -g wheel -o root $(DOCSDIR) ++ install -g wheel -o root crypt.pdf $(DOCSDIR) ++ install -g wheel -o root notes/* $(DOCSDIR) ++ ++install-nodocs: ++ install -d -g wheel -o root $(DESTDIR)$(LIBPATH) ++ install -d -g wheel -o root $(DESTDIR)$(INCPATH) ++ install -d -g wheel -o root $(EXAMPLESDIR) ++ install -g wheel -o root $(LIBNAME) $(DESTDIR)$(LIBPATH) ++ install -g wheel -o root $(HEADERS) $(DESTDIR)$(INCPATH) ++ install -g wheel -o root examples/* $(EXAMPLESDIR) ++ install -g wheel -o root demos/* $(EXAMPLESDIR) + + #This rule cleans the source tree of all compiled code, not including the pdf + #documentation. -- cgit v1.2.3