[package] update gstreamer to 0.10.25 (#6301)
[openwrt/svn-archive/archive.git] / multimedia / gst-plugins-ugly / Makefile
1 #
2 # Copyright (C) 2009 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:=gst-plugins-ugly
11 PKG_VERSION:=0.10.13
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-ugly/
16 PKG_MD5SUM:=1619365247ef9cd7da1cd890285bf87a
17 PKG_FIXUP:=libtool
18
19 include $(INCLUDE_DIR)/package.mk
20
21 #export PATH:=$(PKG_BUILD_DIR)/bin:$(TARGET_PATH)
22
23 PKG_INSTALL=1
24
25 EXTRA_CFLAGS+= \
26 -I$(STAGING_DIR)/usr/lib/libintl/include \
27 -I$(STAGING_DIR)/usr/lib/libiconv/include \
28 -I$(STAGING_DIR)/usr/include/gtk-2.0/gdk \
29 -I$(STAGING_DIR)/usr/include/gstreamer-0.10
30
31 EXTRA_LDFLAGS+= \
32 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
33 -L$(STAGING_DIR)/usr/lib/libintl/lib \
34 -L$(STAGING_DIR)/usr/lib/libiconv/lib
35
36 define Package/gst-plugins-ugly/Default
37 TITLE:=gst-plugins-ugly
38 URL:=http://gstreamer.freedesktop.org/
39 endef
40
41 define Package/gst-plugins-ugly-lame
42 $(call Package/gst-plugins-ugly/Default)
43 SECTION:=multimedia
44 CATEGORY:=Multimedia
45 TITLE+= (lame)
46 DEPENDS:=+gstreamer +gst-plugins-base +lame
47 endef
48
49 define Package/gst-plugins-ugly-lame/description
50 gstreamer MP3 encoder plugin
51 endef
52
53 define Package/gst-plugins-ugly-mad
54 $(call Package/gst-plugins-ugly/Default)
55 SECTION:=multimedia
56 CATEGORY:=Multimedia
57 TITLE+= (mad)
58 DEPENDS:=+gstreamer +gst-plugins-base +libmad +libid3tag
59 endef
60
61 define Package/gst-plugins-ugly-mad/description
62 =
63 gstreamer MP3 decoder plugins
64 endef
65
66 define Build/Configure
67 $(call Build/Configure/Default, \
68 --disable-pango \
69 --disable-gnome_vfs \
70 --disable-examples \
71 --disable-cdparanoia \
72 --disable-libvisual \
73 --disable-oggtest \
74 --disable-vorbistest \
75 --disable-freetypetest \
76 --without-x \
77 )
78 mkdir -p $(PKG_BUILD_DIR)/bin
79 touch $(PKG_BUILD_DIR)/bin/gtkdoc-reugly
80 chmod +x $(PKG_BUILD_DIR)/bin/gtkdoc-reugly
81 endef
82
83 define Package/gst-plugins-ugly-lame/install
84 $(INSTALL_DIR) $(1)/usr/lib/gstreamer-0.10
85 $(CP) \
86 $(PKG_INSTALL_DIR)/usr/lib/gstreamer-0.10/libgstlame.so \
87 $(1)/usr/lib/gstreamer-0.10
88 endef
89
90 define Package/gst-plugins-ugly-mad/install
91 $(INSTALL_DIR) $(1)/usr/lib/gstreamer-0.10
92 $(CP) \
93 $(PKG_INSTALL_DIR)/usr/lib/gstreamer-0.10/libgstmad.so \
94 $(1)/usr/lib/gstreamer-0.10
95 endef
96
97 $(eval $(call BuildPackage,gst-plugins-ugly-lame))
98 $(eval $(call BuildPackage,gst-plugins-ugly-mad))