AA: packages: weechat: update to 0.4.0
[12.09/packages.git] / libs / jansson / Makefile
1 #
2 # Copyright (C) 2011-2012 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
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=jansson
12 PKG_VERSION:=2.2.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://www.digip.org/jansson/releases/
17 PKG_MD5SUM:=ebf4ebc7af47de27f7b9d79ad5853176
18
19 PKG_INSTALL:=1
20 PKG_BUILD_PARALLEL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/jansson
25   SECTION:=libs
26   CATEGORY:=Libraries
27   TITLE:=JSON library
28 endef
29
30 TARGET_CFLAGS += $(FPIC)
31
32 define Build/InstallDev
33         $(INSTALL_DIR) $(1)/usr/{lib,include}
34         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libjansson* $(1)/usr/lib
35         $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
36 endef
37
38 define Package/jansson/install
39         $(INSTALL_DIR) $(1)/usr/lib
40         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libjansson*so* $(1)/usr/lib/
41 endef
42
43 $(eval $(call BuildPackage,jansson))