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