1 include $(TOPDIR)/rules.mk
7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
8 PKG_SOURCE_URL:=http://www.cypherpunks.ca/otr/
9 PKG_MD5SUM:=974acf937d2ce0ee89b27a9815c17a3f
14 include $(INCLUDE_DIR)/package.mk
19 TITLE:=OTR Messaging Library
20 URL:=http://www.cypherpunks.ca/otr/
22 MAINTAINER:=Peter Wagner <tripolar@gmx.at>
25 define Package/libotr/description
26 Off-the-Record (OTR) Messaging allows you to have private conversations over
31 $(MAKE) -C $(PKG_BUILD_DIR) \
32 CC='$(TARGET_CC) $(FPIC)' \
33 CFLAGS='$(TARGET_CFLAGS) -Wall -D_GNU_SOURCE' \
34 LDFLAGS='$(TARGET_LDFLAGS)' \
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/
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
51 $(eval $(call BuildPackage,libotr))