Makefile (4470B)
1 # 2 # Copyright (C) 2009-2016 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:=gst1-plugins-ugly 11 PKG_VERSION:=1.8.2 12 PKG_RELEASE:=1 13 14 PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org> \ 15 Ted Hess <thess@kitschensync.net> 16 17 PKG_LICENSE:=LGPLv2 18 PKG_LICENSE_FILES:=COPYING 19 20 PKG_BUILD_DIR:=$(BUILD_DIR)/gst-plugins-ugly-$(PKG_VERSION) 21 PKG_SOURCE:=gst-plugins-ugly-$(PKG_VERSION).tar.xz 22 PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-ugly/ 23 PKG_MD5SUM:=9c5b33a2a98fc1d6d6c99a1b536b1fb2de45f53cc8bf8ab85a8b8141fed1a8ac 24 25 PKG_BUILD_DEPENDS:= libgstreamer1 gstreamer1-plugins-base 26 PKG_CONFIG_DEPENDS:= \ 27 CONFIG_PACKAGE_gst1-mod-asf \ 28 CONFIG_PACKAGE_gst1-mod-lame \ 29 CONFIG_PACKAGE_gst1-mod-mad \ 30 CONFIG_PACKAGE_gst1-mod-mpeg2dec \ 31 32 PKG_FIXUP:=autoreconf 33 PKG_INSTALL:=1 34 35 include $(INCLUDE_DIR)/package.mk 36 include $(INCLUDE_DIR)/nls.mk 37 38 GST_UGLY_MODULES:= 39 40 define Package/gstreamer1-ugly/Default 41 CATEGORY:=Multimedia 42 SECTION:=multimedia 43 TITLE:=GStreamer 44 URL:=http://gstreamer.freedesktop.org/ 45 DEPENDS:= +libgstreamer1 $(ICONV_DEPENDS) 46 endef 47 48 define Package/gstreamer1-ugly/description/Default 49 GStreamer open source multimedia framework 50 endef 51 52 53 define Package/gst1-plugins-ugly 54 $(call Package/gstreamer1-ugly/Default) 55 TITLE+= plugins collection (ugly) 56 DEPENDS+= $(GST_DEPENDS) 57 HIDDEN:=1 58 endef 59 60 define Package/gts-plugins-ugly/description 61 $(call Package/gstreamer1-ugly/description/Default) 62 . 63 This meta package contains only dependencies to the other plugins from 64 the ugly plugins collection. 65 endef 66 67 68 define Package/gstreamer1-plugins-ugly 69 $(call Package/gstreamer1-ugly/Default) 70 TITLE+= plugins collection (ugly) 71 DEPENDS:=+ALL:gst1-plugins-ugly +gstreamer1-plugins-base 72 endef 73 74 define Package/gstreamer1-plugins-ugly/config 75 menu "Select GStreamer ugly modules" 76 depends on PACKAGE_gstreamer1-plugins-ugly 77 78 79 config gst1-plugins-ugly-all 80 bool "Include all GStreamer ugly plugins" 81 select PACKAGE_gst1-plugins-ugly 82 83 comment "Modules" 84 85 $(foreach mod,$(GST_UGLY_MODULES), \ 86 config PACKAGE_gst1-mod-$(mod) 87 prompt "GStreamer $(mod) module" 88 89 ) 90 91 endmenu 92 93 endef 94 95 GST_COND_SELECT = $(patsubst %,$(if $(CONFIG_PACKAGE_gst1-mod-$(1)),--enable,--disable)-%,$(1)) 96 97 GST_VERSION:=1.0 98 99 CONFIGURE_ARGS += \ 100 --disable-debug \ 101 --disable-examples \ 102 \ 103 --disable-a52dec \ 104 --disable-amrnb \ 105 --disable-amrwb \ 106 $(call GST_COND_SELECT,asf) \ 107 --disable-cdio \ 108 --disable-dvdlpcmdec \ 109 --disable-dvdread \ 110 --disable-dvdsub \ 111 --disable-iec958 \ 112 $(call GST_COND_SELECT,lame) \ 113 $(call GST_COND_SELECT,mad) \ 114 $(call GST_COND_SELECT,mpeg2dec) \ 115 --disable-mpegaudioparse \ 116 --disable-mpegstream \ 117 --disable-realmedia \ 118 --disable-sidplay \ 119 --disable-synaesthesia \ 120 --disable-twolame \ 121 --disable-x264 \ 122 \ 123 --without-libiconv-prefix \ 124 --without-libintl-prefix \ 125 126 EXTRA_LDFLAGS+= \ 127 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ 128 $(if $(ICONV_FULL),-liconv) \ 129 130 131 define Package/gst1-plugins-ugly/install 132 /bin/true 133 endef 134 135 136 # 1: short name 137 # 2: description 138 # 3: dependencies on other gstreamer libraries (short name) 139 # 4: dependencies on other gstreamer plugins (short name) 140 # 5: dependencies on other packages 141 define GstBuildPlugin 142 143 GST_DEPENDS += +gst1-mod-$(1) 144 145 GST_UGLY_MODULES+= $(1) 146 147 define Package/gst1-mod-$(1) 148 $(call Package/gstreamer1-ugly/Default) 149 TITLE+= $(2) plugin (ugly) 150 DEPENDS+= +libgstreamer1 $$(foreach p,$(3),+libgst1$$(p)) $$(foreach p,$(4),+gst1-mod-$$(p)) $(5) 151 HIDDEN:=1 152 endef 153 154 define Package/gst1-mod-$(1)/description 155 $(call Package/gstreamer1-ugly/description/Default) 156 . 157 This package contains the GStreamer $(2) plugin. 158 endef 159 160 define Package/gst1-mod-$(1)/install 161 $(INSTALL_DIR) $$(1)/usr/lib/gstreamer-$(GST_VERSION) 162 ( cd $(PKG_INSTALL_DIR); $(CP) \ 163 ./usr/lib/gstreamer-$(GST_VERSION)/libgst$(1).so* \ 164 $$(1)/usr/lib/gstreamer-$(GST_VERSION)/ \ 165 ) 166 endef 167 168 $$(eval $$(call BuildPackage,gst1-mod-$(1))) 169 endef 170 171 $(eval $(call GstBuildPlugin,asf,ASF demuxer,audio video riff rtp rtsp sdp tag,,)) 172 $(eval $(call GstBuildPlugin,lame,MP3 encoder (using LAME),audio,,+lame-lib)) 173 $(eval $(call GstBuildPlugin,mad,MP3 decoder (using MAD),audio tag,,+libid3tag +libmad)) 174 $(eval $(call GstBuildPlugin,mpeg2dec,MPEG decoder,video,,+libmpeg2)) 175 176 $(eval $(call BuildPackage,gstreamer1-plugins-ugly)) 177 $(eval $(call BuildPackage,gst1-plugins-ugly))