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
:=e6938af242cd002be9f0b6441e848d83
19 PKG_REMOVE_FILES
:=autogen.sh aclocal.m4
23 include $(INCLUDE_DIR
)/package.mk
24 include $(INCLUDE_DIR
)/nls.mk
26 define Package
/gstreamer
/Default
30 URL
:=http
://gstreamer.freedesktop.org
/
34 define Package
/gstreamer
/description
/Default
35 GStreamer open source multimedia framework
39 define Package
/gstreamer
40 $(call Package
/gstreamer
/Default
)
42 DEPENDS
+= +libgstreamer \
49 define Package
/gstreamer
/description
50 $(call Package
/gstreamer
/description
/Default
)
52 This meta package contains only dependencies on the other GStreamer
57 define Package
/gstreamer-utils
58 $(call Package
/gstreamer
/Default
)
60 DEPENDS
+= +libgstreamer
63 define Package
/gstreamer-utils
/description
64 $(call Package
/gstreamer
/description
/Default
)
66 This package contains the GStreamer utilities.
70 define Package
/libgstreamer
71 $(call Package
/gstreamer
/Default
)
72 TITLE
+= library
(core
)
73 DEPENDS
+= +glib2
+libpthread
+libxml2
76 define Package
/libgstreamer
/description
77 $(call Package
/gstreamer
/description
/Default
)
79 This package contains the GStreamer core library.
93 --without-libiconv-prefix \
94 --without-libintl-prefix \
98 -Wl
,-rpath-link
=$(STAGING_DIR
)/usr
/lib \
99 -L
$(ICONV_PREFIX
)/lib
-L
$(INTL_PREFIX
)/lib
101 define Build
/InstallDev
102 $(INSTALL_DIR
) $(1)/usr
/include/gstreamer-
$(GST_VERSION
)
103 ( cd
$(PKG_INSTALL_DIR
); $(CP
) \
104 .
/usr
/include/gstreamer-
$(GST_VERSION
)/* \
105 $(1)/usr
/include/gstreamer-
$(GST_VERSION
)/ \
107 $(INSTALL_DIR
) $(1)/usr
/lib
108 ( cd
$(PKG_INSTALL_DIR
); $(CP
) \
109 .
/usr
/lib
/libgst
*-$(GST_VERSION
).
{a
,la
,so
*} \
112 $(INSTALL_DIR
) $(1)/usr
/lib
/gstreamer-
$(GST_VERSION
)
113 ( cd
$(PKG_INSTALL_DIR
); $(CP
) \
114 .
/usr
/lib
/gstreamer-
$(GST_VERSION
)/libgst
*.
{la
,so
} \
115 $(1)/usr
/lib
/gstreamer-
$(GST_VERSION
)/ \
117 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
118 ( cd
$(PKG_INSTALL_DIR
); $(CP
) \
119 .
/usr
/lib
/pkgconfig
/gstreamer
*-$(GST_VERSION
).
pc \
120 $(1)/usr
/lib
/pkgconfig
/ \
122 $(INSTALL_DIR
) $(2)/share
/aclocal
123 ( cd
$(PKG_INSTALL_DIR
); $(CP
) \
124 .
/usr
/share
/aclocal
/* \
125 $(2)/share
/aclocal
/ \
129 define Package
/gstreamer
/install
133 define Package
/gstreamer-utils
/install
134 $(INSTALL_DIR
) $(1)/usr
/bin
135 ( cd
$(PKG_INSTALL_DIR
); $(CP
) \
136 .
/usr
/bin
/gst-feedback
* \
137 .
/usr
/bin
/gst-launch
* \
138 .
/usr
/bin
/gst-inspect
* \
139 .
/usr
/bin
/gst-typefind
* \
140 .
/usr
/bin
/gst-xmlinspect
* \
141 .
/usr
/bin
/gst-xmllaunch
* \
146 define Package
/libgstreamer
/install
147 $(INSTALL_DIR
) $(1)/usr
/lib
148 ( cd
$(PKG_INSTALL_DIR
); $(CP
) \
149 .
/usr
/lib
/libgstbase-
$(GST_VERSION
).so.
* \
150 .
/usr
/lib
/libgstreamer-
$(GST_VERSION
).so.
* \
153 $(INSTALL_DIR
) $(1)/usr
/lib
/gstreamer-
$(GST_VERSION
)
154 ( cd
$(PKG_INSTALL_DIR
); $(CP
) \
155 .
/usr
/lib
/gstreamer-
$(GST_VERSION
)/libgst
*.so \
156 $(1)/usr
/lib
/gstreamer-
$(GST_VERSION
)/ \
163 # 3: dependencies on other gstreamer libraries (short name)
164 # 4: dependencies on other packages
165 define GstBuildLibrary
167 define Package
/libgst
$(1)
168 $(call Package
/gstreamer
/Default
)
169 TITLE
+= $(2) library
(core
)
170 DEPENDS
+= +libgstreamer
$$(foreach p
,$(3),+libgst
$$(p
)) $(4)
173 define Package
/libgst
$(1)/description
174 $(call Package
/gstreamer
/description
/Default
)
176 This package contains the GStreamer
$(2) library.
179 define Package
/libgst
$(1)/install
180 $(INSTALL_DIR
) $$(1)/usr
/lib
181 ( cd
$(PKG_INSTALL_DIR
); $(CP
) \
182 .
/usr
/lib
/libgst
$(1)-$(GST_VERSION
).so.
* \
187 $$(eval
$$(call BuildPackage
,libgst
$(1)))
190 $(eval
$(call GstBuildLibrary
,check,check unit testing
))
191 $(eval
$(call GstBuildLibrary
,controller
,dynamic parameter control
))
192 $(eval
$(call GstBuildLibrary
,dataprotocol
,data protocol
))
193 $(eval
$(call GstBuildLibrary
,net
,network classes
))
195 $(eval
$(call BuildPackage
,gstreamer
))
196 $(eval
$(call BuildPackage
,gstreamer-utils
))
197 $(eval
$(call BuildPackage
,libgstreamer
))