[package] update gst-plugins-good to 0.10.17, modularize build (#6303)
[packages.git] / multimedia / gst-plugins-good / 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-good
11 PKG_VERSION:=0.10.17
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-good/
16 PKG_MD5SUM:=833546cd2b8bbf86b8ed083b00897918
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-good/Default
37   SECTION:=multimedia
38   CATEGORY:=Multimedia
39   DEPENDS:=+gstreamer +gst-plugins-base
40   TITLE:=gst-plugins-good
41   URL:=http://gstreamer.freedesktop.org/
42 endef
43
44 define Package/gst-plugins-good-flac
45   $(call Package/gst-plugins-good/Default)
46   TITLE+= (flac)
47   DEPENDS += +libflac
48 endef
49
50 define Package/gst-plugins-good-flac/description
51   gstreamer FLAC plugins
52 endef
53
54 define Package/gst-plugins-good-id3demux
55   $(call Package/gst-plugins-good/Default)
56   TITLE+= (id3demux)
57   DEPENDS += +libid3tag
58 endef
59
60 define Package/gst-plugins-good-id3demux/description
61   gstreamer FLAC plugins
62 endef
63
64 define Build/Configure
65         $(call Build/Configure/Default, \
66                 --disable-examples \
67                 --disable-esd \
68                 --disable-gconf \
69                 --disable-gconftool \
70                 --disable-shout2 \
71                 --disable-aalib \
72                 --disable-oss \
73                 --disable-hal \
74                 --disable-dv \
75                 --disable-pulse \
76                 --disable-dv1394 \
77                 --disable-soup \
78                 --disable-osx_audio \
79                 --disable-osx_video \
80                 --disable-directdraw \
81                 --disable-directshow \
82                 --disable-sunaudio \
83                 --without-x \
84         )
85         mkdir -p $(PKG_BUILD_DIR)/bin
86         touch $(PKG_BUILD_DIR)/bin/gtkdoc-rebase
87         chmod +x $(PKG_BUILD_DIR)/bin/gtkdoc-rebase
88 endef
89
90 define BuildPlugin
91   define Package/gst-plugins-good-$(1)/install
92         $(INSTALL_DIR) $(1)/usr/lib/gstreamer-0.10
93         $(CP) \
94                 $(PKG_INSTALL_DIR)/usr/lib/gstreamer-0.10/libgst$(1).so \
95                 $(1)/usr/lib/gstreamer-0.10
96   endef
97
98   $$(eval $$(call BuildPackage,gst-plugins-good-$(1)))
99 endef
100
101 $(eval $(call BuildPlugin,id3demux))