source: packages/multimedia/gst-plugins-ugly/Makefile @ 22070

Last change on this file since 22070 was 22070, checked in by nico, 6 years ago

[packages] gst-plugins-ugly: update to 0.10.15, rework Makefile:

  • rename gst-plugins-ugly-* plugins to gst-mod-*
  • add a gst-plugins-ugly meta-package
  • remove unneeded extra CFLAGS & LDFLAGS
File size: 2.8 KB
Line 
1#
2# Copyright (C) 2009-2010 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=gst-plugins-ugly
11PKG_VERSION:=0.10.15
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-ugly/
16PKG_MD5SUM:=21c034a762a5da252f91640e53bfe457
17
18PKG_BUILD_DEPENDS:= gstreamer gst-plugins-base liboil
19
20PKG_FIXUP:=libtool
21PKG_INSTALL:=1
22
23include $(INCLUDE_DIR)/package.mk
24
25define Package/gstreamer/Default
26  CATEGORY:=Multimedia
27  SECTION:=multimedia
28  TITLE:=GStreamer
29  URL:=http://gstreamer.freedesktop.org/
30endef
31
32define Package/gstreamer/description/Default
33 GStreamer open source multimedia framework
34endef
35
36
37define Package/gst-plugins-ugly
38$(call Package/gstreamer/Default)
39  TITLE+= plugins collection (ugly)
40  DEPENDS+= $(GST_DEPENDS)
41endef
42
43define Package/gts-plugins-ugly/description
44$(call Package/gstreamer/description/Default)
45 .
46 This meta package contains only dependencies to the other plugins from
47 the ugly plugins collection.
48endef
49
50
51GST_VERSION:=0.10
52
53CONFIGURE_ARGS += \
54        --disable-debug \
55        --disable-examples \
56        \
57        --disable-a52dec \
58        --disable-amrnb \
59        --disable-amrwb \
60        --disable-asfdemux \
61        --disable-cdio \
62        --disable-dvdlpcmdec \
63        --disable-dvdread \
64        --disable-dvdsub \
65        --disable-iec958 \
66        --disable-mpeg2dec \
67        --disable-mpegaudioparse \
68        --disable-mpegstream \
69        --disable-realmedia \
70        --disable-sidplay \
71        --disable-synaesthesia \
72        --disable-twolame \
73        --disable-x264 \
74        \
75        --without-libiconv-prefix \
76        --without-libintl-prefix \
77        --without-x \
78
79EXTRA_LDFLAGS+= \
80        -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
81
82
83define Package/gst-plugins-ugly/install
84        /bin/true
85endef
86
87
88# 1: short name
89# 2: description
90# 3: dependencies on other gstreamer libraries (short name)
91# 4: dependencies on other gstreamer plugins (short name)
92# 5: dependencies on other packages
93define GstBuildPlugin
94
95  GST_DEPENDS += +gst-mod-$(1)
96
97  define Package/gst-mod-$(1)
98    $(call Package/gstreamer/Default)
99    TITLE+= $(2) plugin (ugly)
100    DEPENDS+= +libgstreamer $$(foreach p,$(3),+libgst$$(p)) $$(foreach p,$(4),+gst-mod-$$(p)) $(5)
101  endef
102
103  define Package/gst-mod-$(1)/description
104   $(call Package/gstreamer/description/Default)
105   .
106   This package contains the GStreamer $(2) plugin.
107  endef
108
109  define Package/gst-mod-$(1)/install
110        $(INSTALL_DIR) $$(1)/usr/lib/gstreamer-$(GST_VERSION)
111        ( cd $(PKG_INSTALL_DIR); $(CP) \
112                ./usr/lib/gstreamer-$(GST_VERSION)/libgst$(1).so* \
113                $$(1)/usr/lib/gstreamer-$(GST_VERSION)/ \
114        )
115  endef
116
117  $$(eval $$(call BuildPackage,gst-mod-$(1)))
118endef
119
120$(eval $(call GstBuildPlugin,lame,MP3 encoder (using LAME),,,+lame-lib))
121$(eval $(call GstBuildPlugin,mad,MP3 decoder (using MAD),audio tag,,+libid3tag +libmad))
122
123$(eval $(call BuildPackage,gst-plugins-ugly))
Note: See TracBrowser for help on using the repository browser.