Merge pull request #174 from brynet/patch-1
[feed/packages.git] / libs / libuecc / Makefile
1 #
2 # Copyright (C) 2012-2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libuecc
11 PKG_VERSION:=4
12 PKG_RELEASE:=1
13
14 PKG_MAINTAINER:=Matthias Schiffer <mschiffer@universe-factory.net>
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
16 PKG_SOURCE_URL:=https://projects.universe-factory.net/attachments/download/71
17 PKG_MD5SUM:=7f44df5dc69cb8686947562e2a11eea9
18
19 PKG_LICENSE:=BSD-2-Clause
20 PKG_LICENSE_FILE:=COPYRIGHT
21
22 include $(INCLUDE_DIR)/package.mk
23 include $(INCLUDE_DIR)/cmake.mk
24
25 define Package/libuecc
26 SECTION:=libs
27 CATEGORY:=Libraries
28 TITLE:=Very small Elliptic Curve Cryptography library
29 URL:=http://git.universe-factory.net/libuecc/
30 endef
31
32 TARGET_CFLAGS += -ffunction-sections -fdata-sections
33
34 CMAKE_OPTIONS += \
35 -DCMAKE_BUILD_TYPE:String="MINSIZEREL"
36
37
38 define Build/InstallDev
39 $(INSTALL_DIR) $(1)/usr/include
40 $(CP) $(PKG_INSTALL_DIR)/usr/include/libuecc-$(PKG_VERSION) $(1)/usr/include/
41 $(INSTALL_DIR) $(1)/usr/lib
42 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libuecc.a $(1)/usr/lib/
43 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
44 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libuecc.pc $(1)/usr/lib/pkgconfig/
45 endef
46
47 $(eval $(call BuildPackage,libuecc))