1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-25 21:23:21 +02:00
openwrt-xburst/package/cyassl/patches/120-makefile_destdir.patch
juhosg 6c9f02007f package/cyassl: refresh patches
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20459 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-03-26 14:28:08 +00:00

50 lines
1.8 KiB
Diff

--- 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: