295eefa7cf30eabbbf5c692a81f28883ab54ee5b
[openwrt/svn-archive/archive.git] / libs / iksemel / Makefile
1 #
2 # Copyright (C) 2006 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:=iksemel
11 PKG_VERSION:=1.3
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://iksemel.googlecode.com/files/
16 PKG_MD5SUM:=36ab2d9f11980a19217b6f79a19ef8e7
17
18 PKG_FIXUP = libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/libiksemel
23 SECTION:=libs
24 CATEGORY:=Libraries
25 TITLE:=Iksemel Jabber Library
26 URL:=http://code.google.com/p/iksemel/
27 DEPENDS:= +libgnutls +libtasn1
28 endef
29
30 TARGET_CFLAGS += $(FPIC)
31
32 CONFIGURE_ARGS += \
33 --enable-shared \
34 --enable-static \
35 --with-libgnutls-prefix="$(STAGING_DIR)/usr" \
36
37 CONFIGURE_VARS += \
38 LIBS="-L$(STAGING_DIR)/usr/lib -Wl,-rpath-link,$(STAGING_DIR)/usr/lib -lgnutls -lgcrypt -lgpg-error" \
39
40 define Build/Compile
41 $(MAKE) -C $(PKG_BUILD_DIR) DESTDIR="$(PKG_INSTALL_DIR)" all install
42 endef
43
44 define Build/InstallDev
45 mkdir -p $(1)/usr/include/
46 $(CP) $(PKG_INSTALL_DIR)/usr/include/iksemel.h $(1)/usr/include/
47 mkdir -p $(1)/usr/lib
48 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libiksemel.{a,so*} $(1)/usr/lib/
49 mkdir -p $(1)/usr/lib/pkgconfig
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/iksemel.pc $(1)/usr/lib/pkgconfig/
51 endef
52
53 define Package/libiksemel/install
54 $(INSTALL_DIR) $(1)/usr/lib
55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libiksemel.so.* $(1)/usr/lib/
56 endef
57
58 $(eval $(call BuildPackage,libiksemel))