cyrus-sasl: moved to github
[packages.git] / libs / libotr / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=libotr
4 PKG_VERSION:=3.2.1
5 PKG_RELEASE:=1
6
7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
8 PKG_SOURCE_URL:=http://www.cypherpunks.ca/otr/
9 PKG_MD5SUM:=974acf937d2ce0ee89b27a9815c17a3f
10
11 PKG_FIXUP:=autoreconf
12 PKG_INSTALL:=1
13
14 include $(INCLUDE_DIR)/package.mk
15
16 define Package/libotr
17   SECTION:=libs
18   CATEGORY:=Libraries
19   TITLE:=OTR Messaging Library
20   URL:=http://www.cypherpunks.ca/otr/
21   DEPENDS:=+libgcrypt
22   MAINTAINER:=Peter Wagner <tripolar@gmx.at>
23 endef
24
25 define Package/libotr/description
26   Off-the-Record (OTR) Messaging allows you to have private conversations over
27   instant messaging.
28 endef
29
30 define Build/Compile
31         $(MAKE) -C $(PKG_BUILD_DIR) \
32                 CC='$(TARGET_CC) $(FPIC)' \
33                 CFLAGS='$(TARGET_CFLAGS) -Wall -D_GNU_SOURCE' \
34                 LDFLAGS='$(TARGET_LDFLAGS)' \
35                 all
36 endef
37
38 define Build/InstallDev
39         $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib $(1)/usr/lib/pkgconfig
40         $(CP) $(PKG_INSTALL_DIR)/usr/include/libotr $(1)/usr/include/
41         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libotr.{a,la,so*} $(1)/usr/lib/
42         $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libotr.pc $(1)/usr/lib/pkgconfig/
43 endef
44
45 define Package/libotr/install
46         $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/bin
47         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libotr.so.* $(1)/usr/lib/
48         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin
49 endef
50
51 $(eval $(call BuildPackage,libotr))