libs/libpam: update to version 1.1.3, refresh patches
[openwrt/svn-archive/archive.git] / libs / libmcrypt / Makefile
1 #
2 # Copyright (C) 2006-2010 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:=libmcrypt
11 PKG_VERSION:=2.5.8
12 PKG_RELEASE:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@SF/mcrypt
16 PKG_MD5SUM:=c4f491dd411a09e9de3b8702ea6f73eb
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 TARGET_CFLAGS += $(FPIC)
24
25 define Package/libmcrypt
26 SECTION:=libs
27 CATEGORY:=Libraries
28 TITLE:=Cryptographic library
29 URL:=http://mcrypt.sourceforge.net/
30 endef
31
32 define Package/libmcrypt/description
33 libmcrypt is a cryptographic library that conveniently brings
34 together a variety of ciphers for convenient use.
35 endef
36
37 define Build/Configure
38 $(call Build/Configure/Default, \
39 --enable-shared \
40 --enable-static \
41 )
42 endef
43
44 define Build/InstallDev
45 $(INSTALL_DIR) $(1)/usr/include
46 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
47 $(INSTALL_DIR) $(1)/usr/lib
48 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmcrypt.{a,so*} $(1)/usr/lib/
49 $(INSTALL_DIR) $(1)/usr/bin
50 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/libmcrypt-config $(1)/usr/bin/
51 $(SED) 's,-I$$$${prefix}/include,,g' $(1)/usr/bin/libmcrypt-config
52 $(SED) 's,-L$$$${exec_prefix}/lib,,g' $(1)/usr/bin/libmcrypt-config
53 endef
54
55 define Package/libmcrypt/install
56 $(INSTALL_DIR) $(1)/usr/lib
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmcrypt.so.* $(1)/usr/lib/
58 endef
59
60 $(eval $(call BuildPackage,libmcrypt))