2 # Copyright (C) 2008-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gstreamer/
16 PKG_MD5SUM:=c92d6bce4fc65fa9d5a3ad35cdd1a466
21 include $(INCLUDE_DIR)/package.mk
23 define Package/gstreamer/Default
27 URL:=http://gstreamer.freedesktop.org/
31 define Package/gstreamer/description/Default
32 GStreamer open source multimedia framework
36 define Package/gstreamer
37 $(call Package/gstreamer/Default)
39 DEPENDS+= +libgstreamer \
46 define Package/gstreamer/description
47 $(call Package/gstreamer/description/Default)
49 This meta package contains only dependencies on the other GStreamer
54 define Package/gstreamer-utils
55 $(call Package/gstreamer/Default)
57 DEPENDS+= +libgstreamer
60 define Package/gstreamer-utils/description
61 $(call Package/gstreamer/description/Default)
63 This package contains the GStreamer utilities.
67 define Package/libgstreamer
68 $(call Package/gstreamer/Default)
69 TITLE+= library (core)
70 DEPENDS+= +glib2 +libpthread +libxml2
73 define Package/libgstreamer/description
74 $(call Package/gstreamer/description/Default)
76 This package contains the GStreamer core library.
90 --without-libiconv-prefix \
91 --without-libintl-prefix \
95 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
98 define Build/InstallDev
99 $(INSTALL_DIR) $(1)/usr/include/gstreamer-$(GST_VERSION)
100 ( cd $(PKG_INSTALL_DIR); $(CP) \
101 ./usr/include/gstreamer-$(GST_VERSION)/* \
102 $(1)/usr/include/gstreamer-$(GST_VERSION)/ \
104 $(INSTALL_DIR) $(1)/usr/lib
105 ( cd $(PKG_INSTALL_DIR); $(CP) \
106 ./usr/lib/libgst*-$(GST_VERSION).{a,la,so*} \
109 $(INSTALL_DIR) $(1)/usr/lib/gstreamer-$(GST_VERSION)
110 ( cd $(PKG_INSTALL_DIR); $(CP) \
111 ./usr/lib/gstreamer-$(GST_VERSION)/libgst*.{la,so} \
112 $(1)/usr/lib/gstreamer-$(GST_VERSION)/ \
114 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
115 ( cd $(PKG_INSTALL_DIR); $(CP) \
116 ./usr/lib/pkgconfig/gstreamer*-$(GST_VERSION).pc \
117 $(1)/usr/lib/pkgconfig/ \
119 $(INSTALL_DIR) $(2)/share/aclocal
120 ( cd $(PKG_INSTALL_DIR); $(CP) \
121 ./usr/share/aclocal/* \
122 $(2)/share/aclocal/ \
126 define Package/gstreamer/install
130 define Package/gstreamer-utils/install
131 $(INSTALL_DIR) $(1)/usr/bin
132 ( cd $(PKG_INSTALL_DIR); $(CP) \
133 ./usr/bin/gst-feedback* \
134 ./usr/bin/gst-launch* \
135 ./usr/bin/gst-inspect* \
136 ./usr/bin/gst-typefind* \
137 ./usr/bin/gst-xmlinspect* \
138 ./usr/bin/gst-xmllaunch* \
143 define Package/libgstreamer/install
144 $(INSTALL_DIR) $(1)/usr/lib
145 ( cd $(PKG_INSTALL_DIR); $(CP) \
146 ./usr/lib/libgstbase-$(GST_VERSION).so.* \
147 ./usr/lib/libgstreamer-$(GST_VERSION).so.* \
150 $(INSTALL_DIR) $(1)/usr/lib/gstreamer-$(GST_VERSION)
151 ( cd $(PKG_INSTALL_DIR); $(CP) \
152 ./usr/lib/gstreamer-$(GST_VERSION)/libgst*.so \
153 $(1)/usr/lib/gstreamer-$(GST_VERSION)/ \
160 # 3: dependencies on other gstreamer libraries (short name)
161 # 4: dependencies on other packages
162 define GstBuildLibrary
164 define Package/libgst$(1)
165 $(call Package/gstreamer/Default)
166 TITLE+= $(2) library (core)
167 DEPENDS+= +libgstreamer $$(foreach p,$(3),+libgst$$(p)) $(4)
170 define Package/libgst$(1)/description
171 $(call Package/gstreamer/description/Default)
173 This package contains the GStreamer $(2) library.
176 define Package/libgst$(1)/install
177 $(INSTALL_DIR) $$(1)/usr/lib
178 ( cd $(PKG_INSTALL_DIR); $(CP) \
179 ./usr/lib/libgst$(1)-$(GST_VERSION).so.* \
184 $$(eval $$(call BuildPackage,libgst$(1)))
187 $(eval $(call GstBuildLibrary,check,check unit testing))
188 $(eval $(call GstBuildLibrary,controller,dynamic parameter control))
189 $(eval $(call GstBuildLibrary,dataprotocol,data protocol))
190 $(eval $(call GstBuildLibrary,net,network classes))
192 $(eval $(call BuildPackage,gstreamer))
193 $(eval $(call BuildPackage,gstreamer-utils))
194 $(eval $(call BuildPackage,libgstreamer))