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