include $(TOPDIR)/rules.mk
PKG_NAME:=cyassl
-PKG_VERSION:=1.3.0
-PKG_RELEASE:=2
+PKG_VERSION:=1.4.0
+PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip
PKG_SOURCE_URL:=http://www.yassl.com/
-PKG_MD5SUM:=f8b6cdcc2c299c66c74b7e4305745350
+PKG_MD5SUM:=037397c7df84b9a12e614bf46135df1c
PKG_FIXUP:=libtool
+PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
TARGET_CFLAGS += $(FPIC)
CONFIGURE_ARGS += \
- --with-zlib="$(STAGING_DIR)/usr"
+ --with-libz="$(STAGING_DIR)/usr"
define Build/InstallDev
- $(INSTALL_DIR) $(1)/usr/include/ctaocrypt
- $(CP) $(PKG_BUILD_DIR)/ctaocrypt/include/*.h $(1)/usr/include/ctaocrypt
+ $(INSTALL_DIR) $(1)/usr/include
+ $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
$(INSTALL_DIR) $(1)/usr/lib
- $(CP) $(PKG_BUILD_DIR)/src/.libs/libcyassl.{a,so*} $(1)/usr/lib/
- $(CP) $(PKG_BUILD_DIR)/src/libcyassl.la $(1)/usr/lib/
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcyassl.{a,so*,la} $(1)/usr/lib/
endef
define Package/libcyassl/install
$(INSTALL_DIR) $(1)/usr/lib
- $(CP) $(PKG_BUILD_DIR)/src/.libs/libcyassl.so* $(1)/usr/lib/
+ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcyassl.so* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libcyassl))
--- /dev/null
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -4,7 +4,7 @@ EXTRA_DIST = cyassl.dsp cyassl.dsw certs
+ doc/*.pdf\r
+ \r
+ basic:\r
+- cd src; make; cd ../testsuite; make; cd ../\r
++ cd src; $(MAKE); cd ../testsuite; $(MAKE); cd ../\r
+ \r
+ openssl-links:\r
+ cd lib; ln -s ../src/.libs/libcyassl.a libcrypto.a; \\r
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -638,7 +638,7 @@ uninstall-am:
+
+
+ basic:
+- cd src; make; cd ../testsuite; make; cd ../
++ cd src; $(MAKE); cd ../testsuite; $(MAKE); cd ../
+
+ openssl-links:
+ cd lib; ln -s ../src/.libs/libcyassl.a libcrypto.a; \
--- /dev/null
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -1,10 +1,10 @@
+-SUBDIRS = src ctaocrypt examples testsuite\r
++SUBDIRS = src ctaocrypt\r
+ EXTRA_DIST = cyassl.dsp cyassl.dsw certs/*.pem certs/*.der certs/*.txt \\r
+ lib/dummy cyassl.sln cyassl.vcproj cyassl-iphone.xcodeproj/project.pbxproj \\r
+ doc/*.pdf\r
+ \r
+ basic:\r
+- cd src; $(MAKE); cd ../testsuite; $(MAKE); cd ../\r
++ cd src; $(MAKE); cd ../\r
+ \r
+ openssl-links:\r
+ cd lib; ln -s ../src/.libs/libcyassl.a libcrypto.a; \\r
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -190,7 +190,7 @@ target_os = @target_os@
+ target_vendor = @target_vendor@
+ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+-SUBDIRS = src ctaocrypt examples testsuite
++SUBDIRS = src ctaocrypt
+ EXTRA_DIST = cyassl.dsp cyassl.dsw certs/*.pem certs/*.der certs/*.txt \
+ lib/dummy cyassl.sln cyassl.vcproj cyassl-iphone.xcodeproj/project.pbxproj \
+ doc/*.pdf
+@@ -638,7 +638,7 @@ uninstall-am:
+
+
+ basic:
+- cd src; $(MAKE); cd ../testsuite; $(MAKE); cd ../
++ cd src; $(MAKE); cd ../
+
+ openssl-links:
+ cd lib; ln -s ../src/.libs/libcyassl.a libcrypto.a; \
+--- a/ctaocrypt/Makefile.am
++++ b/ctaocrypt/Makefile.am
+@@ -1,3 +1,3 @@
+-SUBDIRS = src test benchmark\r
++SUBDIRS = src\r
+ EXTRA_DIST = ctaocrypt.dsw ctaocrypt.dsp ctaocrypt.sln ctaocrypt.vcproj\r
+ \r
+--- a/ctaocrypt/Makefile.in
++++ b/ctaocrypt/Makefile.in
+@@ -174,7 +174,7 @@ target_os = @target_os@
+ target_vendor = @target_vendor@
+ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+-SUBDIRS = src test benchmark
++SUBDIRS = src
+ EXTRA_DIST = ctaocrypt.dsw ctaocrypt.dsp ctaocrypt.sln ctaocrypt.vcproj
+ all: all-recursive
+
--- /dev/null
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -8,14 +8,11 @@ basic:
+ \r
+ openssl-links:\r
+ cd lib; ln -s ../src/.libs/libcyassl.a libcrypto.a; \\r
+- ln -s ../src/.libs/libcyassl.a libssl.a; \\r
+- ln -s ../src/.libs/libcyassl.a libcyassl.a; cd ../\r
++ ln -s ../src/.libs/libcyassl.a libssl.a; \\r
++ ln -s ../src/.libs/libcyassl.a libcyassl.a; cd ../\r
+ \r
+ install:\r
+- mkdir ${prefix}/cyassl; \\r
+- mkdir ${prefix}/cyassl/include; \\r
+- mkdir ${prefix}/cyassl/include/openssl; \\r
+- cp include/openssl/*.h ${prefix}/cyassl/include/openssl; \\r
+- make openssl-links; \\r
+- mkdir ${prefix}/cyassl/lib; \\r
+- cp lib/*.a ${prefix}/cyassl/lib\r
++ $(mkinstalldirs) $(DESTDIR)$(includedir)/cyassl $(DESTDIR)$(libdir); \\r
++ cp -fpR include/* $(DESTDIR)$(includedir)/cyassl; \\r
++ make openssl-links; \\r
++ cp -fpR src/.libs/libcyassl.{a,so*} src/libcyassl.la $(DESTDIR)$(libdir)\r
+--- 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: