Port palantir to -ng
[openwrt/svn-archive/archive.git] / libs / openh323 / 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$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=openh323
12 PKG_VERSION:=cvs-20051230
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://trash.uid0.hu/openwrt/
17 PKG_MD5SUM:=ba1ffd45016f533bec2bb1539b78e43a
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/libopenh323
25 SECTION:=libs
26 CATEGORY:=Libraries
27 DEPENDS:=+pwlib
28 TITLE:=OpenH323 library
29 DESCRIPTION:=OpenH323 library.
30 URL:=http://www.openh323.org/
31 endef
32
33 define Build/Configure
34 ( cd $(PKG_BUILD_DIR); rm -f config.cache; \
35 CFLAGS="$(TARGET_CFLAGS)" \
36 CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -fno-rtti" \
37 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
38 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
39 $(TARGET_CONFIGURE_OPTS) \
40 ./configure \
41 --target=$(GNU_TARGET_NAME) \
42 --host=$(GNU_TARGET_NAME) \
43 --build=$(GNU_HOST_NAME) \
44 --program-prefix="" \
45 --program-suffix="" \
46 --prefix=/usr \
47 --exec-prefix=/usr \
48 --bindir=/usr/bin \
49 --datadir=/usr/share \
50 --includedir=/usr/include \
51 --infodir=/usr/share/info \
52 --libdir=/usr/lib \
53 --libexecdir=/usr/lib \
54 --localstatedir=/var \
55 --mandir=/usr/share/man \
56 --sbindir=/usr/sbin \
57 --sysconfdir=/etc \
58 $(DISABLE_LARGEFILE) \
59 $(DISABLE_NLS) \
60 \
61 --enable-minsize \
62 --enable-audio \
63 --disable-video \
64 );
65 endef
66
67 define Build/Compile
68 $(MAKE) -C $(PKG_BUILD_DIR) \
69 $(TARGET_CONFIGURE_OPTS) \
70 optnoshared
71 endef
72
73 define Build/InstallDev
74 ln -sf $(PKG_NAME)-$(PKG_VERSION) $(BUILD_DIR)/$(PKG_NAME)
75 endef
76
77 define Build/UninstallDev
78 rm -rf $(BUILD_DIR)/$(PKG_NAME)
79 endef
80
81 $(eval $(call BuildPackage,libopenh323))
82