added opal #2486
[openwrt/svn-archive/archive.git] / libs / opal / 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 # $Id: Makefile 8274 2007-07-31 11:22:44Z nbd $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=opal
12 PKG_VERSION:=2.3.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=ftp://peternixon.net/pub/voxgratia
17 PKG_MD5SUM:=5a9d7f060527885bed3a26324de6dcfc
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21 # Set location of pwlib (Which needs to have been built already)
22 PWLIBDIR=$(BUILD_DIR)/pwlib-1.11.1
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/libopal
27 SECTION:=libs
28 CATEGORY:=Libraries
29 DEPENDS:=+pwlib +uclibcxx
30 TITLE:=Open Phone Abstraction Library
31 DESCRIPTION:=\
32 Open Phone Abstraction Library, implementation of the ITU H.323\\\
33 teleconferencing protocol, and successor of the openh323 library. It\\\
34 supports not only the H.323 protocol but also SIP and IAX2.\\\
35 URL:=http://www.voxgratia.org/
36 endef
37
38 CONFIGURE_ARGS += \
39 --enable-minsize \
40 --enable-audio \
41 --disable-video
42
43 CONFIGURE_VARS += \
44 CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -fno-rtti" \
45
46 MAKE_FLAGS += \
47 CFLAGS="$(TARGET_CFLAGS)" \
48 CCFLAGS="$(TARGET_CFLAGS)" \
49 optnoshared
50
51 define Build/InstallDev
52 ln -sf $(PKG_NAME)-$(PKG_VERSION) $(BUILD_DIR)/$(PKG_NAME)
53 endef
54
55 define Build/UninstallDev
56 rm -rf $(BUILD_DIR)/$(PKG_NAME)
57 endef
58
59 $(eval $(call BuildPackage,libopal))