diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-03-25 16:03:10 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-03-25 16:03:10 +0000 |
commit | d23e5b2dd9a1c674868959113e58f3cc1963facf (patch) | |
tree | 28f07adc208cd7b3789125dcc04d7bc0a3fa39f3 /package/cyassl/patches/120-makefile_destdir.patch | |
parent | 960a327a19e605f16bc5778d1e551eeba65f4680 (diff) | |
download | upstream-d23e5b2dd9a1c674868959113e58f3cc1963facf.tar.gz upstream-d23e5b2dd9a1c674868959113e58f3cc1963facf.tar.bz2 upstream-d23e5b2dd9a1c674868959113e58f3cc1963facf.zip |
[package] add cyassl (moved from packages feed, required by uhttpd-mod-tls)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20430 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/cyassl/patches/120-makefile_destdir.patch')
-rw-r--r-- | package/cyassl/patches/120-makefile_destdir.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/package/cyassl/patches/120-makefile_destdir.patch b/package/cyassl/patches/120-makefile_destdir.patch new file mode 100644 index 0000000000..29b0d0a05e --- /dev/null +++ b/package/cyassl/patches/120-makefile_destdir.patch @@ -0,0 +1,49 @@ +--- a/Makefile.am ++++ b/Makefile.am +@@ -8,14 +8,11 @@ basic: +
+ openssl-links:
+ cd lib; ln -s ../src/.libs/libcyassl.a libcrypto.a; \
+- ln -s ../src/.libs/libcyassl.a libssl.a; \
+- ln -s ../src/.libs/libcyassl.a libcyassl.a; cd ../
++ ln -s ../src/.libs/libcyassl.a libssl.a; \
++ ln -s ../src/.libs/libcyassl.a libcyassl.a; cd ../
+
+ install:
+- mkdir ${prefix}/cyassl; \
+- mkdir ${prefix}/cyassl/include; \
+- mkdir ${prefix}/cyassl/include/openssl; \
+- cp include/openssl/*.h ${prefix}/cyassl/include/openssl; \
+- make openssl-links; \
+- mkdir ${prefix}/cyassl/lib; \
+- cp lib/*.a ${prefix}/cyassl/lib
++ $(mkinstalldirs) $(DESTDIR)$(includedir)/cyassl $(DESTDIR)$(libdir); \
++ cp -fpR include/* $(DESTDIR)$(includedir)/cyassl; \
++ make openssl-links; \
++ cp -fpR src/.libs/libcyassl.{a,so*} src/libcyassl.la $(DESTDIR)$(libdir)
+--- a/Makefile.in ++++ b/Makefile.in +@@ -642,17 +642,14 @@ basic: + + openssl-links: + cd lib; ln -s ../src/.libs/libcyassl.a libcrypto.a; \ +- ln -s ../src/.libs/libcyassl.a libssl.a; \ +- ln -s ../src/.libs/libcyassl.a libcyassl.a; cd ../ ++ ln -s ../src/.libs/libcyassl.a libssl.a; \ ++ ln -s ../src/.libs/libcyassl.a libcyassl.a; cd ../ + + install: +- mkdir ${prefix}/cyassl; \ +- mkdir ${prefix}/cyassl/include; \ +- mkdir ${prefix}/cyassl/include/openssl; \ +- cp include/openssl/*.h ${prefix}/cyassl/include/openssl; \ +- make openssl-links; \ +- mkdir ${prefix}/cyassl/lib; \ +- cp lib/*.a ${prefix}/cyassl/lib ++ $(mkinstalldirs) $(DESTDIR)$(includedir)/cyassl $(DESTDIR)$(libdir); \ ++ cp -fpR include/* $(DESTDIR)$(includedir)/cyassl; \ ++ make openssl-links; \ ++ cp -fpR src/.libs/libcyassl.{a,so*} src/libcyassl.la $(DESTDIR)$(libdir) + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. + .NOEXPORT: |