[packages] normalize PKG_FIXUP - the "libtool" fixup is merely an alias for "autoreco...
[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_FIXUP:=autoreconf
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22 include $(INCLUDE_DIR)/nls.mk
23
24 define Package/libmms
25   SECTION:=libs
26   CATEGORY:=Libraries
27   DEPENDS:=+glib2
28   TITLE:=MMS stream protocol library
29   URL:=http://libmms.sourceforge.net
30 endef
31
32 define Package/libmms/description
33         LibMMS is a common library for parsing mms:// and mmsh:// type network streams.
34         These are commonly used to stream Windows Media Video content over the web.
35         LibMMS itself is only for receiving MMS stream,
36         it doesn't handle sending at all.
37 endef
38
39 TARGET_CFLAGS += $(FPIC)
40
41 define Build/Configure
42         (cd $(PKG_BUILD_DIR); ./autogen.sh );
43         $(call Build/Configure/Default)
44 endef
45
46 define Build/InstallDev
47         $(INSTALL_DIR) $(1)/usr/include
48         $(CP) $(PKG_INSTALL_DIR)/usr/include/libmms $(1)/usr/include/
49         $(INSTALL_DIR) $(1)/usr/lib
50         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmms.{a,so*} $(1)/usr/lib/
51         $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
52         $(INSTALL_DATA) \
53                 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
54                 $(1)/usr/lib/pkgconfig
55 endef
56
57 define Package/libmms/install
58         $(INSTALL_DIR) $(1)/usr/lib
59         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmms.so.* $(1)/usr/lib/
60 endef
61
62 $(eval $(call BuildPackage,libmms))