d72a9e70f413d07950b48dd322dcd5cac360194e
[openwrt/svn-archive/archive.git] / libs / libmms / Makefile
1 #
2 # Copyright (C) 2010 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:=libmms
11 PKG_VERSION:=0.5
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://code.launchpad.net/libmms/trunk/$(PKG_VERSION)/+download/
16 PKG_MD5SUM:=cf83053ec891f14e73a04c84d9de08ee
17
18 PKG_FIXUP:=libtool
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/libmms
24 SECTION:=libs
25 CATEGORY:=Libraries
26 DEPENDS:=+glib2
27 TITLE:=MMS stream protocol library
28 URL:=https://launchpad.net/libmms
29 endef
30
31 define Package/libmms/description
32 LibMMS is a common library for parsing mms:// and mmsh:// type network streams.
33 These are commonly used to stream Windows Media Video content over the web.
34 LibMMS itself is only for receiving MMS stream,
35 it doesn't handle sending at all.
36 endef
37
38 TARGET_CFLAGS += $(FPIC)
39
40 define Build/Configure
41 (cd $(PKG_BUILD_DIR); ./autogen.sh );
42 $(call Build/Configure/Default)
43 endef
44
45 define Build/InstallDev
46 $(INSTALL_DIR) $(1)/usr/include
47 $(CP) $(PKG_INSTALL_DIR)/usr/include/libmms $(1)/usr/include/
48 $(INSTALL_DIR) $(1)/usr/lib
49 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmms.{a,so*} $(1)/usr/lib/
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig $(1)/usr/lib/
51 endef
52
53 define Package/libmms/install
54 $(INSTALL_DIR) $(1)/usr/lib
55 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmms.so.* $(1)/usr/lib/
56 endef
57
58 $(eval $(call BuildPackage,libmms))