2 # Copyright (C) 2008-2015 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_MAINTAINER
:=W. Michael Petullo
<mike@flyn.org
>
17 PKG_LICENSE_FILES
:=COPYING
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/gstreamer-
$(PKG_VERSION
)
20 PKG_SOURCE
:=gstreamer-
$(PKG_VERSION
).
tar.xz
21 PKG_SOURCE_URL
:=http
://gstreamer.freedesktop.org
/src
/gstreamer
/
22 PKG_MD5SUM
:=88a9289c64a4950ebb4f544980234289
25 PKG_REMOVE_FILES
:=autogen.sh aclocal.m4
29 include $(INCLUDE_DIR
)/package.mk
30 include $(INCLUDE_DIR
)/nls.mk
32 define Package
/gstreamer1
/Default
36 URL
:=http
://gstreamer.freedesktop.org
/
37 DEPENDS
:= $(ICONV_DEPENDS
) $(INTL_DEPENDS
)
40 define Package
/gstreamer1
/description
/Default
41 GStreamer open source multimedia framework
44 GSTREAMER_CORE_LIBS
:= \
50 define Package
/gstreamer1
51 $(call Package
/gstreamer1
/Default
)
52 TITLE
+= (All libraries
)
53 DEPENDS
:= $(foreach lib
,$(GSTREAMER_CORE_LIBS
),+$(lib
))
57 define Package
/gstreamer1-libs
/description
58 $(call Package
/gstreamer1
/description
/Default
)
60 This meta package contains only dependencies on the other GStreamer
64 define Package
/gstreamer1-libs
65 $(call Package
/gstreamer1
/Default
)
66 TITLE
+= core libraries
67 DEPENDS
+=+ALL
:gstreamer1
70 define Package
/gstreamer1-libs
/config
71 menu
"Select GStreamer libraries"
72 depends on PACKAGE_gstreamer1-libs
75 bool
"Include all GStreamer1 core libraries"
76 select PACKAGE_gstreamer1
80 $(foreach lib
,$(GSTREAMER_CORE_LIBS
), \
82 prompt
"GStreamer core library $(lib)"
90 define Package
/gstreamer1-utils
91 $(call Package
/gstreamer1
/Default
)
93 DEPENDS
+= +libgstreamer1
+gstreamer1-libs
96 define Package
/gstreamer1-utils
/description
97 $(call Package
/gstreamer1
/description
/Default
)
99 This package contains the GStreamer utilities.
102 define Package
/libgstreamer1
103 $(call Package
/gstreamer1
/Default
)
104 TITLE
+= library
(core
)
105 DEPENDS
+= +glib2
+libpthread
+libxml2
109 define Package
/libgstreamer1
/description
110 $(call Package
/gstreamer1
/description
/Default
)
112 This package contains the GStreamer core library.
123 --without-libiconv-prefix \
124 --without-libintl-prefix \
128 -Wl
,-rpath-link
=$(STAGING_DIR
)/usr
/lib \
129 $(if
$(ICONV_FULL
),-liconv
)
131 define Build
/InstallDev
132 $(INSTALL_DIR
) $(1)/usr
/include/gstreamer-
$(GST_VERSION
)
133 ( cd
$(PKG_INSTALL_DIR
); $(CP
) \
134 .
/usr
/include/gstreamer-
$(GST_VERSION
)/* \
135 $(1)/usr
/include/gstreamer-
$(GST_VERSION
)/ \
137 $(INSTALL_DIR
) $(1)/usr
/lib
138 ( cd
$(PKG_INSTALL_DIR
); $(CP
) \
139 .
/usr
/lib
/libgst
*-$(GST_VERSION
).
{a
,la
,so
*} \
142 $(INSTALL_DIR
) $(1)/usr
/lib
/gstreamer-
$(GST_VERSION
)
143 ( cd
$(PKG_INSTALL_DIR
); $(CP
) \
144 .
/usr
/lib
/gstreamer-
$(GST_VERSION
)/libgst
*.
{la
,so
} \
145 $(1)/usr
/lib
/gstreamer-
$(GST_VERSION
)/ \
147 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
148 ( cd
$(PKG_INSTALL_DIR
); $(CP
) \
149 .
/usr
/lib
/pkgconfig
/gstreamer
*-$(GST_VERSION
).
pc \
150 $(1)/usr
/lib
/pkgconfig
/ \
152 $(INSTALL_DIR
) $(2)/share
/aclocal
153 ( cd
$(PKG_INSTALL_DIR
); $(CP
) \
154 .
/usr
/share
/aclocal
/* \
155 $(2)/share
/aclocal
/ \
159 define Package
/gstreamer1
/install
163 define Package
/gstreamer1-libs
/install
167 define Package
/gstreamer1-utils
/install
168 $(INSTALL_DIR
) $(1)/usr
/bin
169 ( cd
$(PKG_INSTALL_DIR
); $(CP
) \
170 .
/usr
/bin
/gst-launch
* \
171 .
/usr
/bin
/gst-inspect
* \
172 .
/usr
/bin
/gst-typefind
* \
177 define Package
/libgstreamer1
/install
178 $(INSTALL_DIR
) $(1)/usr
/lib
179 ( cd
$(PKG_INSTALL_DIR
); $(CP
) \
180 .
/usr
/lib
/libgstbase-
$(GST_VERSION
).so.
* \
181 .
/usr
/lib
/libgstreamer-
$(GST_VERSION
).so.
* \
184 $(INSTALL_DIR
) $(1)/usr
/lib
/gstreamer-
$(GST_VERSION
)
185 ( cd
$(PKG_INSTALL_DIR
); $(CP
) \
186 .
/usr
/lib
/gstreamer-
$(GST_VERSION
)/libgst
*.so \
187 $(1)/usr
/lib
/gstreamer-
$(GST_VERSION
)/ \
189 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/lib
/gstreamer-
$(GST_VERSION
)/gst-plugin-scanner \
190 $(1)/usr
/lib
/gstreamer-
$(GST_VERSION
)
196 # 3: dependencies on other gstreamer libraries (short name)
197 # 4: dependencies on other packages
198 define GstBuildLibrary
200 define Package
/libgst1
$(1)
201 $(call Package
/gstreamer1
/Default
)
202 TITLE
+= $(2) library
(core
)
203 DEPENDS
+= +libgstreamer1
$$(foreach p
,$(3),+libgst1
$$(p
)) $(4)
207 define Package
/libgst1
$(1)/description
208 $(call Package
/gstreamer1
/description
/Default
)
210 This package contains the GStreamer
$(2) library.
213 define Package
/libgst1
$(1)/install
214 $(INSTALL_DIR
) $$(1)/usr
/lib
215 ( cd
$(PKG_INSTALL_DIR
); $(CP
) \
216 .
/usr
/lib
/libgst
$(1)-$(GST_VERSION
).so.
* \
221 $$(eval
$$(call BuildPackage
,libgst1
$(1)))
224 $(eval
$(call GstBuildLibrary
,check,check unit testing
))
225 $(eval
$(call GstBuildLibrary
,controller
,dynamic parameter control
))
226 $(eval
$(call GstBuildLibrary
,net
,network classes
))
228 $(eval
$(call BuildPackage
,libgstreamer1
))
229 $(eval
$(call BuildPackage
,gstreamer1-libs
))
230 $(eval
$(call BuildPackage
,gstreamer1-utils
))
231 $(eval
$(call BuildPackage
,gstreamer1
))