Best way to start unprivileged service
I am packaging a service which I would like to run as an unprivileged user. This server does not support opening its ports before dropping its privileges. I would like the service to listen on a privileged port (i.e., <1024). What is the best way to accomplish this on OpenWrt? I have been looking for an example init.d script. For special cases, I have used "setcap cap_net_bind_service=+ep $command", but CONFIG_KERNEL_EXT4_FS_SECURITY is not the default setting for OpenWrt's kernels. I looked at procd's jails, but I did not see a way to push a privileged port into the jail. Any advice would be appreciated. -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: ath79: Fix for Mikrotik NAND bad blocks - testers needed
> So now I'm looking for testers (and reviewers) who could test this change on > the affected devices (with bad blocks) and NOR Mikrotiks. Also, a word from > OpenWrt maintainers if this is the acceptable approach - there is not much > choice, alternatives would be include porting U-Boot, a task with questionable > chance of success for all Mikrotik boards, or waiting for a bootloader update > from Mikrotik that would allow booting from UBIFS like on their ipq40xx > boards, > and that's also questionable. I have a few RB493G boards that will not boot OpenWrt due to the bad blocks problem. Might your work work with them? The amount of spares I have allows me to offer one to someone who might have hope of modifying OpenWrt so that they boot again. I would be willing to split shipping and charge no more than that (I am in the USA). Of course, I would also be interested in hearing if Danijel's YAFFS2 solution is acceptable to the OpenWrt folks. These boards are still decent hardware. -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Deprecate snort in favor of snort3
OpenWrt provides two snort packages: snort and snort3. Now that snort3 is out of beta, I would like to consider deprecating the snort package. One difficulty of maintaining both packages is that a different version of the libdaq package is required for each. The two versions cannot coexist, and this make build-server builds fail. I do not know how popular the snort package is. I use snort3. Is dropping snort advisable? If so, what is the procedure? -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Corruption in ext4 root
I have a peculiar use case for OpenWrt: an image with an ext4 root filesystem running on Xen as a DomU. I often find the OpenWrt image's root filesystem corrupt after running "poweroff" and then restarting the DomU VM. I have gone as far as to activate CONFIG_TARGET_EXT4_JOURNAL, but this does not seem to help. It occurred to me that I might ask to see if anyone had any suggestions about what I might investigate in our default kernel configuration. Has anyone else seen anything like this? Might we be missing a sync somewhere due to our more typical reliance on overlay filesystems? I have been puzzled for a while. -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: 20.xx: postponse LuCI HTTPS per default
> I think that if the first setup is done with only the router and the trusted > PC connected to it through an ethernet cable (wifi is disabled by default), > there is physically nothing else on that "network" so whatever you see can > be accepted even if you don't have "dual authentication" with the serial > port. Right. With this, I think all we need to do is provide clear information to the user along with a recommendation that he import the certificate into his browser before activating WiFi. You went on to describe this in your email. I think the landing page is a good idea, in addition to the documentation. Thank you for taking the time to work through my concern. -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: 20.xx: postponse LuCI HTTPS per default
I think making use of self-signed certificates in production is a bad idea because (1) it reinforces poor practices, namely electing to trust a self-signed certificate and (2) it does not authenticate the server/router, a critical piece of the TLS security model. >>> maybe, but it's still better than sending all communication to the >>> management interface as plain text. >> What is the difference between transmitting packets containing cleartext >> and transmitting encrypted packets to a party whose identity you do >> not know? > What are you talking about? After the initial "pairing" process where you > see the warning, the browser remembers the certificate for all subsequent > connections. > If the certificate changes (and it will change only if you do a firmware > reset to default settings) you will see the the warning again. > > So you are just changing a CA-based system to a local pairing system. (I really do not mean for any of my comments here or earlier to be patronizing. I am just trying to describe my point of view.) When I make the first SSH connection to a new router, I confirm the fingerprint of the router's key using a serial-port connection. Thus I know it is safe to accept the pairing. If I were to skip this step, then I would have no assurance regarding to whom my encrypted messages were being sent now and in the future. How would our scheme recreate this? What would the interface provide to the user to help them perform this step? What would it recommend? Some tugging on Luiz Angelo Daros de Luca's proposal earlier in this thread (Fri, 20 Nov 2020 14:25:10), especially the addition of a suggested verification process, might help. -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: 20.xx: postponse LuCI HTTPS per default
>> I think making use of self-signed certificates in production is a bad >> idea because (1) it reinforces poor practices, namely electing to trust >> a self-signed certificate and (2) it does not authenticate the >> server/router, a critical piece of the TLS security model. > maybe, but it's still better than sending all communication to the > management interface as plain text. >> My point of view is that we should delay HTTPS-by-default until we have >> a scheme for establishing the identity of the router. Until then, we >> should be honest and make use of HTTP. What is the difference between transmitting packets containing cleartext and transmitting encrypted packets to a party whose identity you do not know? > nobody is working on that, and in most cases it's not really possible. You > always have a point where the user has to make the call of trusting the > device's ID or code or something. Yes. This is true, and trusting CAs is a specialization of this. I understand that we do not have a scheme yet, and the necessary out-of-band channels in a router are limited. What I am arguing is that just falling back on self-signed certificates in order to turn on HTTPS is not a good solution and is in fact counter-productive. -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: 20.xx: postponse LuCI HTTPS per default
I think making use of self-signed certificates in production is a bad idea because (1) it reinforces poor practices, namely electing to trust a self-signed certificate and (2) it does not authenticate the server/router, a critical piece of the TLS security model. My point of view is that we should delay HTTPS-by-default until we have a scheme for establishing the identity of the router. Until then, we should be honest and make use of HTTP. -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
MikroTik RouterBOARD with bad blocks free for OpenWrt developer
I have two MikroTik RouterBOARDs whose bad blocks seem to prevent the devices from holding onto OpenWrt. I would be willing to provide these to an OpenWrt developer for free (I would prefer if you are willing to pay shipping). Both boards boot 19.07.04 fine over DHCP. Please email me if interested. I would like to see these go to someone who could help with the ports of RouterBOARDs to ath79. The boards are: (1) RouterBOARD 493AH (https://github.com/openwrt/openwrt/pull/3138) (2) RouterBoard 493G + MikroTik R52n-M I will hold on to them for a few weeks. -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Support for Turris Omnia 2019/2020
I have found that Klaus Kudielka's patch to add support for the Turris Omnia 2019/2020 both necessary and sound: https://github.com/openwrt/openwrt/pull/2693 Adrian Schmutzler already merged some of Klaus' work, but it is not clear to me what hurdles remain, if anything. Would someone kindly take a look? The merge request is pretty small. My own Turris Omnia "2020" runs great with Klaus' work. -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[PATCH] binutils: fix build after upgrade to 2.34
From: "W. Michael Petullo" Building the binutils package produced the following error: Package binutils is missing dependencies for the following libraries: libctf-nobfd.so.0 This changes the glob for the libctf subpackage so that it catches libctf-nobfd.so.0. Signed-off-by: W. Michael Petullo --- package/devel/binutils/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/devel/binutils/Makefile b/package/devel/binutils/Makefile index 6ad326efa0..fada8009be 100644 --- a/package/devel/binutils/Makefile +++ b/package/devel/binutils/Makefile @@ -106,7 +106,7 @@ endef define Package/libctf/install $(INSTALL_DIR) $(1)/usr/lib - $(CP) $(PKG_INSTALL_DIR)/usr/lib/libctf.so* $(1)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libctf*.so* $(1)/usr/lib/ endef define Package/libopcodes/install -- 2.26.2 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [PATCH procd] initd/init: add minimal SELinux policy loading support
[...] > This is part of a bigger PR on GitHub[1], however this patch should be > added directly to `procd` rather than as a patch in openwrt.git. [...] I will update the GitHub pull request once this is merged. Thank you, Paul! -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Notes on ath79 RouterBoard 493G image
I have some feedback about the ATH79 RouterBoard 493G image built from master, as documented at: https://github.com/openwrt/openwrt/pull/3026 First, I was unable to update to the sysupgrade image at: https://downloads.openwrt.org/snapshots/targets/ath79/mikrotik/openwrt-ath79-mikrotik-mikrotik_routerboard-493g-squashfs-sysupgrade.bin while running 19.07.2, although the initial comments on the pull request above indicate this is possible. I fixed this by untarring the sysupgrade image, renaming its top-level directory from sysupgrade-mikrotik_routerboard-rb493g/ to sysupgrade-routerboard/, and retarring the sysupgrade image. I suspect something changed between the time of the intial pull request comment and the eventual merge. Is there a better way of doing this? DHCP/TFTP booting the ATH79 image directly fails; I suspect this is due to the size of the image (see the related comments throught the merge request referenced above). Second, the boot process fails as follows after performing the sysupgrade: [2.117395] UBI: auto-attach mtd2 [2.120802] ubi0: attaching mtd2 [3.260133] ubi0: scanning is finished [3.326963] ubi0 error: ubi_read_volume_table: not enough PEBs, required 970, available 958 [3.335627] ubi0 error: ubi_attach_mtd_dev: failed to attach mtd2, error -28 [3.342742] UBI error: cannot attach mtd2 [3.347369] /dev/root: Can't open blockdev [3.351531] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6 [3.358996] Please append a correct "root=" boot option; here are the available partitions: [3.367344] 1f00 256 mtdblock0 [3.367347] (driver?) [3.373884] 1f018192 mtdblock1 [3.373886] (driver?) [3.380420] 1f02 122624 mtdblock2 [3.380422] (driver?) [3.386951] 1f03 64 mtdblock3 [3.386953] (driver?) [3.393486] 1f04 44 mtdblock4 [3.393488] (driver?) [3.400024] 1f05 4 mtdblock5 [3.400026] (driver?) [3.406554] 1f06 4 mtdblock6 [3.406557] (driver?) [3.413089] 1f07 8 mtdblock7 [3.413091] (driver?) [3.419620] 1f08 4 mtdblock8 [3.419623] (driver?) [3.426155] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) [3.434403] Rebooting in 1 seconds.. I am not sure what causes this. -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: dm-verity support
> Security sounds fun. Should I just compile the patches and flash on a > device? > > Any concrete test cases to see if it did work? Would any router work or do I > need some flagship x86 device? Please see https://github.com/openwrt/openwrt/pull/3207#issuecomment-660555489 for the steps you could use to test this. I am not sure what architecture Thomas tested, but he used squashfs. I used ext4 on x86_64. This should support a wide range of architectures; I would be interested to hear how much this is the case in practice. -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: dm-verity support
>>> I'm sorry, and although I fear a similar fate will hit the SELinux >>> effort, I still hope you will not feel repelled and continue to >>> contribute to OpenWrt in the future. >> That would be a shame. I stepped up to help Thomas revise his SELinux >> patches for inclusion, and I did a fair amount of work: > And that's exactly my reasoning: A lot of work has been "wasted" since > nobody reviewed the thing. How will it be better if you invest even > more work? I just don't see anybody to review and merge this, and for > a changeset of this size review wouldn't be done quickly either anyway. Okay, but my work will continue because I need SELinux support. Thus my work is not wasted from my perspective. Why not leave the actively-maintained requests open in case someone does deem them worthy to review? -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: SELinux on OpenWrt
> I am very interested in Thomas Petazzoni's work to add SELinux > support to OpenWrt. I spent some time today trying to reproduce his > build. I found a few things needed updating, so I wanted to share my > results here. I updated Thomas' work, and I made my updates available at: https://github.com/openwrt/openwrt/pull/3207 (core) and https://github.com/openwrt/packages/pull/10664 (packages). The first link contains instructions on how to test ( https://github.com/openwrt/openwrt/pull/3207#issuecomment-660555489). Thank you, Thomas! -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
SELinux on OpenWrt
I am very interested in Thomas Petazzoni's work to add SELinux support to OpenWrt. I spent some time today trying to reproduce his build. I found a few things needed updating, so I wanted to share my results here. 1. I pulled Thomas Petazzoni's package tree, available at https://github.com/openwrt/packages/pull/10664. 2. I updated Thomas' selinux-python, libselinux, libsemanage, checkpolicy, and policycoreutils packages to version 3.1, and I modified the packages to make use of Python 3. I pushed this work to https://github.com/flyn-org/packages/tree/selinux. I also submitted the following patches to the upstream SELinux project: - https://github.com/SELinuxProject/selinux/pull/255 - https://github.com/SELinuxProject/selinux/issues/254 3. I applied the patches Thomas Petazzoni made for the core OpenWrt tree: - http://lists.infradead.org/pipermail/openwrt-devel/2019-November/025974.html - http://lists.infradead.org/pipermail/openwrt-devel/2019-November/025975.html - http://lists.infradead.org/pipermail/openwrt-devel/2019-November/025976.html - http://lists.infradead.org/pipermail/openwrt-devel/2019-November/025977.html - http://lists.infradead.org/pipermail/openwrt-devel/2019-November/025978.html - http://lists.infradead.org/pipermail/openwrt-devel/2019-November/025979.html - http://lists.infradead.org/pipermail/openwrt-devel/2019-November/025980.html 4. I ran "./scripts/feeds install python3 pcre libselinux audi libcap- ng policycoreutils libsemanage checkpolicy refpolicy selinux-python". 5. I used "make menuconfig" to select: - x86_64 build - Base system->busybox->Settings->Support NSA Security ... - ...->busybox->Archival Utilities->Support extracting SELinux - ...->busybox->SELinux utilities (I selected all of them) - Languages->Python->{python-sepolgen,python-sepolicy} - Utilities->selinux-* 6. The build prompted me to answer a number of kernel configuration questions. This is common when changes to the kernel configuration get out of sync. 7. I am currently working through some build errors in busybox when configured to support SELinux: ... In file included from /usr/include/features.h:465, from /usr/include/bits/libc-header-start.h:33, from /usr/include/limits.h:26, from include/platform.h:153, from include/libbb.h:13, from include/busybox.h:8, from applets/applets.c:9: /usr/include/bits/stdio2.h:78:35: error: unknown type name '__gnuc_va_list'; did you mean 'va_list'? const char *__restrict __fmt, __gnuc_va_list __ap)) ^~ /usr/include/sys/cdefs.h:57:59: note: in definition of macro '__NTH' # define __NTH(fct) __attribute__ ((__nothrow__ __LEAF)) fct ^~~ In file included from /usr/include/stdlib.h:1017, from include/libbb.h:32, from include/busybox.h:8, from applets/applets.c:9: /usr/include/bits/stdlib.h: In function 'wctomb': /usr/include/bits/stdlib.h:90:3: error: #error "Assumed value of MB_LEN_MAX wrong" # error "Assumed value of MB_LEN_MAX wrong" ^ make[5]: *** [scripts/Makefile.build:198: applets/applets.o] Error 1 make[4]: *** [Makefile:372: applets_dir] Error 2 make[4]: Leaving directory '/home/mike/Scratch/openwrt/build_dir/target-x86_64_musl/busybox- 1.31.1' make[3]: *** [Makefile:134: /home/mike/Scratch/openwrt/build_dir/target-x86_64_musl/busybox- 1.31.1/.built] Error 2 make[3]: Leaving directory '/home/mike/Scratch/openwrt/package/utils/busybox' time: package/utils/busybox/compile#0.96#0.64#3.25 make[2]: *** [package/Makefile:113: package/utils/busybox/compile] Error 2 make[2]: Leaving directory '/home/mike/Scratch/openwrt' make[1]: *** [package/Makefile:107: /home/mike/Scratch/openwrt/staging_dir/target- x86_64_musl/stamp/.package_compile] Error 2 make[1]: Leaving directory '/home/mike/Scratch/openwrt' make: *** [/home/mike/Scratch/openwrt/include/toplevel.mk:235: world] Error 2 -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] ubiformat: bad UBI magic
I am having some trouble with installing an OpenWrt image I built onto a Mikrotik RB493AH. I have been using a RB493G for a long time, but I just bought a 493AH to serve as a backup. The following, when run on the router, produces the error as indicated: $ ubiformat /dev/mtd6 -f /tmp/openwrt-ar71xx-mikrotik-nand-64m-rootfs.ubi ubiformat: 1 eraseblocks have valid erase counter, mean value is 0 ubiformat: 3839 eraseblocks are supposedly empty ubiformat: erase counter 0 will be used for all eraseblocks ubiformat: note, arbitrary erase counter value may be specified using -e option ubiformat: continue? (y/N) y ubiformat: warning!: VID header and data offsets on flash are 2048 and 4096, which is different to requested offsets 512 and 1024 ubiformat: use erase counter 0 for all eraseblocks ubiformat: use new offsets 512 and 1024? ubiformat: continue? (y/N) ubiformat: use offsets 512 and 1024 ubiformat: flashing eraseblock 0 -- 0 % complete ubiformat: flashing eraseblock 1 -- 0 % complete ubiformat: error!: bad UBI magic , should be 0x55424923 ubiformat: error!: bad EC header at eraseblock 1 of "/tmp/openwrt-ar71xx-mikrotik-nand-64m-rootfs.ubi" I suspect this is either a hardware problem or an incorrect use of mkfs.ubifs, ubinize, or ubiformat. Does anyone have any experience with the RB493AH? -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] tools/squashfs: fix compilation with GCC10
> On Fedora 32, it's not compiling because of multiple swap definitions. > Some inlining error probably. Make swap static to avoid a redefinition > error. [...] Rosen Penev's patch fixed building a Microtik RouterBoard 493G image using Fedora 32. I was able to build the image without error, and it seems to be running fine. -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Uncompress image: trailing garbage ignored
I have started to notice a gunzip warning when decompressing the OpenWrt images I build. This is with master df27e949: gunzip openwrt/bin/targets/x86/64/openwrt-x86-64-generic-ext4- combined.img.gz -c >/dev/null gzip: openwrt-aquinas-git/bin/targets/x86/64/openwrt-x86-64-generic- ext4-combined.img.gz: decompression OK, trailing garbage ignored Aside from the warning, gunzip exits with a code of 2. The gunzip man page indicates that an exit code of 2 indicates a warning. Is this a result of an intended change? Should I expect this to continue? Are we sneaking a hash or signature in there? If so, I suppose I will adjust some of the scripts I use to account for the non-zero exit code. -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Java compiler
Has anyone tried to build a Java compiler package for OpenWrt? I am investigating doing this. I see the lang/jamvm JVM, but no compiler akin to devel/gcc or lang/golang. I have packaged a number of things, but I suspect this will be a bit more of a challenge. Hence my question here. Thank you! -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Master kernel not building for x86_64
I am getting a configuration prompt while building the OpenWrt master kernel on x86_64: [...] Dump the EFI pagetable (EFI_PGT_DUMP) [N/y/?] n Warn on W+X mappings at boot (DEBUG_WX) [N/y/?] n Enable doublefault exception handler (DOUBLEFAULT) [Y/n/?] y Set upper limit of TLB entries to flush one-by-one (DEBUG_TLBFLUSH) [N/y/?] n Enable IOMMU debugging (IOMMU_DEBUG) [N/y/?] n x86 instruction decoder selftest (X86_DECODER_SELFTEST) [N/y/?] (NEW) Note the last line, which preceeds the prompt. Does the following commit need to be applied to master too? https://github.com/openwrt/openwrt/commit/d91b52b1a2edd3645c88b29deb1091ae5f82fda8 -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Large images
If there a good reason for the following during the build process? dd if=[...]/build_dir/target-x86_64_musl/linux-x86_64/root.squashfs of=[...]/build_dir/target-x86_64_musl/linux-x86_64/root.squashfs.new bs=4294967296 conv=sync The use of bs=n where n is very large will exhaust the memory on the build host. Shouldn't we use something like bs=m count=o, where m * o = n? -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Wait on syslog-ng
A daemon I wrote for OpenWrt depends on a running syslogd. I use syslog-ng, and I have noticed that its init script completes before the daemon begins to listen on /dev/log. This causes my daemon to terminate if it starts quickly after syslog-ng. There are a few obvious solutions: (1) My daemon could sleep and try again if its connection to syslogd fails. (2) My daemon's init script could sleep for one second before running the daemon. (3) Syslog-ng's init script could sleep for one second after executing syslog-ng and before exiting. (3) seems the most universal, but all of these feel a little kludgy due to the reliance on a timeout. I say this becasue you cannot precisely predict what the timeout value should be (in practice a second or so seems to suffice). Does the init system provide a more general way to solve this problem? The START=n statements seem to impose only the ordering of init script execution and have no bearing on whether the services the scripts run are ready. Do I have this right? I did see sleep in a few other scripts such as network. -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Running Raspberry Pi 3 OpenWrt in QEMU
> Can you please create a ticket on bugs.openwrt.org with a complete kernel > crash report? You should provide complete kernel crash, copy it from the > log, this stripped down version doesn't help much. Thanks. Please see https://bugs.openwrt.org/index.php?do=details_id=2440. -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] ath9k broken
> You can build with the 4.9 kernel. I think that something like > https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=3b53d6fdbc241173b4264aa49142ba94d406a806 > > is needed for your SoC. The following patch seems to fix this. See also https://github.com/openwrt/openwrt/pull/2182. diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-rb4xx.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-rb4xx.c index 722993ff9b..edf90e1872 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-rb4xx.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-rb4xx.c @@ -88,7 +88,7 @@ static struct platform_device rb4xx_nand_device = { .id = -1, }; -static struct ath79_pci_irq rb4xx_pci_irqs[] __initdata = { +static struct ath79_pci_irq rb4xx_pci_irqs[] = { { .slot = 17, .pin= 1, -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Running Raspberry Pi 3 OpenWrt in QEMU
I am interested in running the Raspberry Pi 3 OpenWrt image (built from commit a1210f88) in QEMU. I am close to accomplishing this, but the kernel panics soon after booting. I run QEMU With: qemu-system-aarch64 -kernel build_dir/target-aarch64_cortex-a53_musl/linux-brcm2708_bcm2710/vmlinux -dtb build_dir/target-aarch64_cortex-a53_musl/linux-brcm2708_bcm2710/image-bcm2710-rpi-3-b.dtb -cpu cortex-a53 -m 256 -M raspi3 -serial stdio -append "root=/dev/sda2 rootfstype=ext4 rw" -hda openwrt-brcm2708-bcm2710-rpi-3-ext4-factory.img The kernel call stack at the time of the crash appears to be: DWC_READ_REG32 dwc_otg_driver_probe platform_drv_probe driver_probe_device __driver_attach bus_for_each_dev driver_attach bus_add_driver driver_register __platform_driver_register dwc_otg_driver_init do_one_initcall kernel_init_freeable kernel_init ret_from_fork Has anyone had more luck with this? -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Not sure what is preventing snort3 build
>>> The OpenWrt build server seems to be unable to build my snort3 package. See >>> https://downloads.openwrt.org/snapshots/faillogs/x86_64/packages/snort3/compile.txt: > This fixed it for me > > --- a/cmake/include_libraries.cmake > +++ b/cmake/include_libraries.cmake > @@ -14,7 +14,6 @@ if (ENABLE_UNIT_TESTS) > endif (ENABLE_UNIT_TESTS) > > # optional libraries > -find_package(LibLZMA QUIET) > find_package(Asciidoc QUIET) > find_package(DBLATEX QUIET) > find_package(Ruby QUIET 1.8.7) Yes, you are right. I was thinking backwards, and I did not realize the presence of liblzma rather than the lack of it was breaking the build. I saw the same locally when I selected the liblzma package in addition to snort3. Fixed in https://github.com/openwrt/packages/pull/8724. -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Not sure what is preventing snort3 build
The OpenWrt build server seems to be unable to build my snort3 package. See https://downloads.openwrt.org/snapshots/faillogs/x86_64/packages/snort3/compile.txt: [...] make[4]: Leaving directory '/data/bowl-builder/x86_64/build/sdk/build_dir/target-x86_64_musl/snort3/snort-3.0.0' Package snort3 is missing dependencies for the following libraries: liblzma.so.5 Makefile:103: recipe for target '/data/bowl-builder/x86_64/build/sdk/bin/packages/x86_64/packages/snort3_3.0.0-beta-2_x86_64.ipk' failed make[3]: *** [/data/bowl-builder/x86_64/build/sdk/bin/packages/x86_64/packages/snort3_3.0.0-beta-2_x86_64.ipk] Error 1 time: package/feeds/packages/snort3/compile#851.47#75.04#966.05 I am not sure why liblzma.so.5 is required. The snort3 build process states: LZMA: OFF Furthermore, a local build compiles snort3 without liblzma. The package I build makes no reference to libzma in its binaries: # for f in $(opkg files snort3 | grep -v Package); do ldd $f; done ldd (0x7fbc571cc000) libtirpc.so.3 => /usr/lib/libtirpc.so.3 (0x7fbc5719f000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x7fbc5718b000) libc.so => ldd (0x7fbc571cc000) ldd: /etc/init.d/snort: Not a valid dynamic program /lib/ld-musl-x86_64.so.1 (0x7fcaadb74000) libtirpc.so.3 => /usr/lib/libtirpc.so.3 (0x7fcaadb4c000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x7fcaada12000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x7fcaad9fe000) libc.so => /lib/ld-musl-x86_64.so.1 (0x7fcaadb74000) /lib/ld-musl-x86_64.so.1 (0x7f182ed3c000) libtirpc.so.3 => /usr/lib/libtirpc.so.3 (0x7f182ed14000) libpcap.so.1 => /usr/lib/libpcap.so.1 (0x7f182ecda000) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x7f182eba) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x7f182eb8c000) libc.so => /lib/ld-musl-x86_64.so.1 (0x7f182ed3c000) ldd: /usr/share/lua/snort_plugin.lua: Not a valid dynamic program /lib/ld-musl-x86_64.so.1 (0x7f653b209000) libtirpc.so.3 => /usr/lib/libtirpc.so.3 (0x7f653b1e1000) libdaq.so.4 => /usr/lib/libdaq.so.4 (0x7f653b1d9000) libdnet.so.1 => /usr/lib/libdnet.so.1 (0x7f653b1c9000) libhwloc.so.15 => /usr/lib/libhwloc.so.15 (0x7f653b18c000) libluajit-5.1.so.2 => /usr/lib/libluajit-5.1.so.2 (0x7f653b125000) libcrypto.so.1.1 => /usr/lib/libcrypto.so.1.1 (0x7f653ae64000) libpcap.so.1 => /usr/lib/libpcap.so.1 (0x7f653ae2a000) libpcre.so.1 => /usr/lib/libpcre.so.1 (0x7f653aded000) libuuid.so.1 => /usr/lib/libuuid.so.1 (0x7f653ade4000) libz.so.1 => /usr/lib/libz.so.1 (0x7f653add) libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x7f653ac96000) libc.so => /lib/ld-musl-x86_64.so.1 (0x7f653b209000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x7f653ac82000) ldd (0x7fee74cc5000) libtirpc.so.3 => /usr/lib/libtirpc.so.3 (0x7fee74c98000) libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x7fee74c84000) libc.so => ldd (0x7fee74cc5000) ldd: /etc/config/snort: Not a valid dynamic program ldd: /usr/share/lua/snort_config.lua: Not a valid dynamic program Does anyone have an idea of what might be causing the build server to fail? -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Snort package
I have proposed two pull requests which together update the OpenWrt Snort package to 3.0.0-beta. I thought I might mention this here, because this will affect current Snort users, as the configuration and rule syntax has changed since the version-2 series. The first pull request updates libdaq to 2.2.2. This version appears incompatible with the version-2 series of Snort, but it is required for 3.0.0-beta. Merging this would render the current Snort package unable to build, but it would permit building my proposed Snort 3.0.0-beta package. The second pull request is for Snort itself. I packaged 3.0.0-beta because the folks behind Snort have not published a final release schedule, and 3.0.0-beta has existed for some time. I am interested in hearing from any OpenWrt/Snort users about the idea of jumping to 3.0.0. https://github.com/openwrt/packages/pull/8490 (libdaq) https://github.com/openwrt/packages/pull/8491 (snort) -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] -Werror=format-nonliteral and musl
>> It seems this follows from the use of -Werror=format-nonliteral. The >> definition in musl's stdio.h is as follows: >> >> _FORTIFY_FN(snprintf) int snprintf(char *__s, size_t __n, const char *__f, >> ...) >> { >> size_t __b = __builtin_object_size(__s, 0); >> >> if (__n > __b) >> __builtin_trap(); >> return __orig_snprintf(__s, __n, __f, __builtin_va_arg_pack()); >> } >> >> Other packages address this locally by setting TARGET_CFLAGS to include >> -Wno-format-nonliteral. See for example the commit "package/elfutils: >> add CFLAG -Wno-format-nonliteral." >> >> Is there a more global way to address this? > The issue is probably missing __attribute__((format(printf, x, x))) in > function declarations in fortify-headers. I can whip up a patch if > you'd like. Do you mean a patch for musl? I also came across some trouble when updating the gst1-plugins-good package. Gst-plugins-good captures ioctl with a function pointer, but musl declares ioctl's second argument as an int whereas glibc and gst1-plugins-good expect it to be a long. This causes a "incompatible pointer type" warning, which OpenWrt treats as an error. I again address this by using CFLAGS to turn off a warning. Musl does not provide a __MUSL__-like symbol for cpp to use, so the gst1-plugins-good folks are not likely to fix this with a simple #ifdef as they do with Android. I read musl's position on this in their FAQ, and I do not disagree. I do wonder about the right way to handle this, though. There is some discussion about the ioctl function pointer issue at: https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/issues/576 -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] -Werror=format-nonliteral and musl
While trying to update the gst1-plugins-base package, I came across a compiler error: CC libgsttag_1.0_la-gstxmptag.lo In file included from gstxmptag.c:42:0: /home/mike/Source/openwrt-build-flyn.org/openwrt-herald/staging_dir/toolchain-x86_64_gcc-7.4.0_musl/include/fortify/stdio.h: In function 'snprintf': /home/mike/Source/openwrt-build-flyn.org/openwrt-herald/staging_dir/toolchain-x86_64_gcc-7.4.0_musl/include/fortify/stdio.h:101:2: error: format not a string literal, argument types not checked [-Werror=format-nonliteral] return __orig_snprintf(__s, __n, __f, __builtin_va_arg_pack()); ^~ /home/mike/Source/openwrt-build-flyn.org/openwrt-herald/staging_dir/toolchain-x86_64_gcc-7.4.0_musl/include/fortify/stdio.h: In function 'sprintf': /home/mike/Source/openwrt-build-flyn.org/openwrt-herald/staging_dir/toolchain-x86_64_gcc-7.4.0_musl/include/fortify/stdio.h:110:3: error: format not a string literal, argument types not checked [-Werror=format-nonliteral] __r = __orig_snprintf(__s, __b, __f, __builtin_va_arg_pack()); ^~~ /home/mike/Source/openwrt-build-flyn.org/openwrt-herald/staging_dir/toolchain-x86_64_gcc-7.4.0_musl/include/fortify/stdio.h:114:3: error: format not a string literal, argument types not checked [-Werror=format-nonliteral] __r = __orig_sprintf(__s, __f, __builtin_va_arg_pack()); ^~~ cc1: all warnings being treated as errors make[9]: *** [Makefile:856: libgsttag_1.0_la-gstxmptag.lo] Error 1 It seems this follows from the use of -Werror=format-nonliteral. The definition in musl's stdio.h is as follows: _FORTIFY_FN(snprintf) int snprintf(char *__s, size_t __n, const char *__f, ...) { size_t __b = __builtin_object_size(__s, 0); if (__n > __b) __builtin_trap(); return __orig_snprintf(__s, __n, __f, __builtin_va_arg_pack()); } Other packages address this locally by setting TARGET_CFLAGS to include -Wno-format-nonliteral. See for example the commit "package/elfutils: add CFLAG -Wno-format-nonliteral." Is there a more global way to address this? -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Meson/Ninja build system
A number of upstream projects are beginning to use the Meson/Ninja build system. OpenWrt's sound/mpc and libs/libmpdclient kludge around this, and I would like to update the glib2 package. The latest version of glib2 uses Meson/Ninja. Is there any plan to build the Meson/Ninja environment into the OpenWrt build system? -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] ath9k broken
>> I have been trying to narrow this down as I find time. >> >> A stock install of "OpenWrt 18.06.2, r7676-cddd7b4c77" works. > This doesn't narrow anything down. You need to find a master commit > that broke things down. > And also rebuild /etc/config/wireless What about the fact that the kernel on my build assignes IRQ 0 to the ath9k driver? Is this in itself an indication that something is wrong? >> [Stock] # cat /proc/interrupts >>CPU0 >> 3: 0 MIPS 3 ehci_hcd:usb1 >> 4:400 MIPS 4 eth1 >> 5: 51 MIPS 5 eth0 >> 7: 207161 MIPS 7 timer >> 11:8153 MISC 3 serial >> 14: 0 MISC 6 ohci_hcd:usb2 >> 41: 148108 AR71XX PCI 1 ath9k >> ERR: 11 >> >> [My build] # cat /proc/interrupts >>CPU0 >> 0: 0 MIPS 0 ath9k >> 3: 2 MIPS 3 ehci_hcd:usb1 >> 4: 510116 MIPS 4 eth1 >> 5: 156905 MIPS 5 eth0 >> 7:5050086 MIPS 7 timer >> 11: 12 MISC 3 ttyS0 >> 14: 26 MISC 6 ohci_hcd:usb2 >> ERR: 2 -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] ath9k broken
>> Has anything changed with respect to how to configure things? Is there >> a bug in the ath9k driver? > Please specify a commit you were using before the "git pull" that used > to work correctly. That will simplify looking for a regressing change. I have been trying to narrow this down as I find time. A stock install of "OpenWrt 18.06.2, r7676-cddd7b4c77" works. One thing different between my build and the stock build is that my build seems to assign IRQ 0 to the wireless adapter whereas the stock build assignes IRQ 41: [Stock] # cat /proc/interrupts CPU0 3: 0 MIPS 3 ehci_hcd:usb1 4:400 MIPS 4 eth1 5: 51 MIPS 5 eth0 7: 207161 MIPS 7 timer 11: 8153 MISC 3 serial 14: 0 MISC 6 ohci_hcd:usb2 41: 148108 AR71XX PCI 1 ath9k ERR: 11 [My build] # cat /proc/interrupts CPU0 0: 0 MIPS 0 ath9k 3: 2 MIPS 3 ehci_hcd:usb1 4: 510116 MIPS 4 eth1 5: 156905 MIPS 5 eth0 7:5050086 MIPS 7 timer 11: 12 MISC 3 ttyS0 14: 26 MISC 6 ohci_hcd:usb2 ERR: 2 -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Flexible first-boot message
OpenWrt presently prints the following the first time it boots: === WARNING! = There is no root password defined on this device! Use the "passwd" command to set up a new password in order to prevent unauthorized SSH logins. -- This message is contained as a here document in /etc/profile. I am interested in changing this message on the images I build. It occured to me that an easy way to do this would be to move the message from the here document to something like /etc/finish-install. I could then overwrite /etc/finish-install with my message during the image-build process. Is there any appetite to do something like this? -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] ath9k broken
I have found that my ath9k-based WiFi card is malfunctioning with recent OpenWrt master builds. I build things myself, but my configuration (both the build configuration and /etc/config/wireless and so on) has not changed other than doing a "git pull" to get the latest source from https://git.openwrt.org/openwrt/openwrt.git. I have a R52n-M miniPCI inside a Microtik RouterBoard 493G. Running iwinfo detects the card and prints the appropriate information. Running ifconfig also prints the card's information. Running "brctl show" shows the WiFi adapter bridged with my Ethernet interface. Despite this, none of my client devices detect a WiFi signal from the card. Has anything changed with respect to how to configure things? Is there a bug in the ath9k driver? -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Changes in support for Mikrotik RB493G
Changes in the last year or so have left me a little confused with the OpenWrt support for the Mikrotik RB493G. I generally compile my kernels and root disk images myself, namely by running "make menuconfig" and "make" in an OpenWrt source tree. I then go on to install the built artifacts by booting my router using TFTP and so on. First, it seems that OpenWrt master has dropped YAFFS support. I cannot find a clear statement on this, but I also cannot find how to build an OpenWrt image that supports YAFFS. Because of this, I rely on an old openwrt-ar71xx-nand-vmlinux-initramfs.elf which does contain YAFFS support to install a kernel. /dev/mtdblock5 contains the kernel, and this device bears a YAFFS filesystem on my Mikrotik RB493G. How am I to install a kernel after booting a current openwrt-ar71xx-nand-vmlinux-initramfs.elf when there is no YAFFS support? Second, things are configured to use UBIFS for the root filesystem. I have figured out how to set this up, but it seems rather involved: 1. Extract openwrt-ar71xx-mikrotik-device-nand-64m-rootfs.tar.gz on my build host, and use mkfs.ubifs on my build host to produce an UBIFS from its contents. 2. On the router, run ubinize, ubidetach, and ubiformat to install the UBIFS on /dev/mtd6. I suppose I am surprised that the OpenWrt build process does not build an UBIFS image as it does with tar.gz, ext4, and squashfs images. Am I missing something? -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Enable security labels on ext4?
> what is the size increase in kmod-ext4 due to this? I think the overhead is small. Here are the kernel artifact sizes (KB) without security labels: 3176 ./build_dir/target-x86_64_musl/linux-x86_64/linux-4.14.79/arch/x86/boot/compressed/vmlinux 55624 ./build_dir/target-x86_64_musl/linux-x86_64/linux-4.14.79/vmlinux 11852 ./build_dir/target-x86_64_musl/linux-x86_64/vmlinux 3292./build_dir/target-x86_64_musl/linux-x86_64/root.grub/boot/vmlinuz Here they are with: 3176 ./build_dir/target-x86_64_musl/linux-x86_64/linux-4.14.79/arch/x86/boot/compressed/vmlinux 55632 ./build_dir/target-x86_64_musl/linux-x86_64/linux-4.14.79/vmlinux 11852 ./build_dir/target-x86_64_musl/linux-x86_64/vmlinux 3292./build_dir/target-x86_64_musl/linux-x86_64/root.grub/boot/vmlinuz What is less obvious is the runtime memory overhead. I suspect that the security labels themselves come at little cost, since they are so sparse. However, the extended-attribute infrastructure itself might cost something---it is not yet clear to me if this is present in every ext4 build or only those which include something like security labels or ACLs. I am also reading about "ambient capabilities" as proposed by Etienne. I wonder if we could wire these into the procd system. My near-term aim is to allow network services to run without root privileges. While many drop their privileges after using them to listen on a port < 1024 socket, I would rather they never run as root and instead rely on CAP_NET_BIND_SERVICE. Aside from less room for error in the service source code, it is nice to be able to specify users in the /etc/init.d files as opposed to per-service configuration mechanisms. This has become more pressing for me since I started using Go in more of my Linux work. Goroutines do not seem to play nicely with setuid [1], so on Go things like CAP_NET_BIND_SERVICE are preferred. I am building a few things in Go on OpenWrt. [1] https://github.com/golang/go/issues/1435 -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Enable security labels on ext4?
Capabilities are an important security mechanism on Linux because they allow programs to run with fewer privileges. I would like to propose that we enable security labels by default on filesystems like ext4. This is done by selecting the following kernel build option: File systems -> (The Extended 4 (ext4) filesystem) Ext4 Security Labels I have already submitted a pull request which should allow our build servers to provide the corresponding libcap utilities. See: https://github.com/openwrt/packages/pull/7368 -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Permissions on /dev/urandom
On my OpenWrt 15.05.1 installation, /dev/urandom has the following permissions: crw-r--r-- 1 root root 1, 9 Jul 13 02:09 /dev/urandom On a computer with a more traditional Linux distribution, I found: crw-rw-rw-. 1 root root 1, 9 Jul 30 16:46 /dev/urandom This lack of write permissions on /dev/urandom causes at least prosody to fail when not running as root. See also: https://prosody.im/issues/issue/585 Should we rethink the permissions on the random device nodes? -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] /proc//stat
> According to the PROC(5) manpage, field five of /proc//stat should > be the GID of the process with PID . Yet I find the following for > (e.g.) Postfix's pickup process: > > 5657 (pickup) S 1771 1771 1771 0 -1 4219136 170 0 0 0 0 0 0 0 20 0 1 0 > 3513070 24834048 524 18446744073709551615 4194304 4446388 140727413994400 > 140727413992112 139626969169172 0 0 16781312 8192 0 0 0 17 0 0 0 0 0 0 > 6543544 6546778 24240128 140727414001539 140727414001560 140727414001560 > 140727414001628 0 > > Here the fifth field is 1771. 1771 is the parent process ID, and is > definitely not a valid GID on the computer (not in /etc/group). Am I > going crazy, or is there something wrong in the kernel? > > It does not seem possible to get a GID out of Busybox's ps. Is there > another way to identify the GID of a running process? Bah. The man page means "The process-group ID of the process", not "The process group-ID of the process". What I need is in /proc//status. Sorry for the noise. -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] /proc//stat
According to the PROC(5) manpage, field five of /proc//stat should be the GID of the process with PID . Yet I find the following for (e.g.) Postfix's pickup process: 5657 (pickup) S 1771 1771 1771 0 -1 4219136 170 0 0 0 0 0 0 0 20 0 1 0 3513070 24834048 524 18446744073709551615 4194304 4446388 140727413994400 140727413992112 139626969169172 0 0 16781312 8192 0 0 0 17 0 0 0 0 0 0 6543544 6546778 24240128 140727414001539 140727414001560 140727414001560 140727414001628 0 Here the fifth field is 1771. 1771 is the parent process ID, and is definitely not a valid GID on the computer (not in /etc/group). Am I going crazy, or is there something wrong in the kernel? It does not seem possible to get a GID out of Busybox's ps. Is there another way to identify the GID of a running process? -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] rtl8xxxu: Add new driver for Realtek WiFi USB devices
> This new driver supports RTL8723AU, RTL8188CU, RTL8188RU, RTL8191CU, and > RTL8192CU and is taken from: > https://git.kernel.org/cgit/linux/kernel/git/jes/linux.git/log/?h=rtl8723au-mac80211 Has there been any progress getting this merged? -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] rtl8xxxu: Add new driver for Realtek WiFi USB devices
> This new driver supports RTL8723AU, RTL8188CU, RTL8188RU, RTL8191CU, and > RTL8192CU and is taken from: > https://git.kernel.org/cgit/linux/kernel/git/jes/linux.git/log/?h=rtl8723au-mac80211 [...] This driver seems to work well, and it evidently fixes the problem I earlier described in another email (Subj: Networking on Raspberry Pi Model B). The only trouble I had was that the new driver seems to require the firware installed with the rtl8192cu driver. Thus I had to build and install both drivers. Could this new driver pull in the firmware without the full rtl8192cu driver? -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Networking on Raspberry Pi Model B
I have installed OpenWrt (trunk, as of around October 17) on a Raspberry Pi Model B. The network adapter is an Edimax 802.11b/g/n Nano USB Adapter. Unfortunately, the network stack of the device is failing after a number of minutes. At this point, for example, pinging and other network communication begins to fail. The same device is reliable when running Pidora. I am going to continue to troubleshoot, but wanted to see if any other developers where having trouble with OpenWrt on the Raspberry Pi. Has anyone else seen similar symptoms? -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Package compile which requires Python.h
I am trying to create a new gobject-introspection package for OpenWrt. This package builds some code using Python.h. However, the configuration of gobject-introspection fails with the following appearing in config.log: configure:14641: i486-openwrt-linux-musl-gcc -E -I/home/mike/Source/openwrt/openwrt/staging_dir/target-i386_pentium4_musl-1.1.11/usr/include -I/home/mike/Source/openwrt/openwrt/staging_dir/target-i386_pentium4_musl-1.1.11/include -I/home/mike/Source/openwrt/openwrt/staging_dir/toolchain-i386_pentium4_gcc-4.8-linaro_musl-1.1.11/usr/include -I/home/mike/Source/openwrt/openwrt/staging_dir/toolchain-i386_pentium4_gcc-4.8-linaro_musl-1.1.11/include/fortify -I/home/mike/Source/openwrt/openwrt/staging_dir/toolchain-i386_pentium4_gcc-4.8-linaro_musl-1.1.11/include -I/home/mike/Source/openwrt/openwrt/staging_dir/target-i386_pentium4_musl-1.1.11/usr/lib/libiconv-stub/include -I/home/mike/Source/openwrt/openwrt/staging_dir/target-i386_pentium4_musl-1.1.11/usr/lib/libintl-stub/include -I/home/mike/Source/openwrt/openwrt/staging_dir/host/include/python2.7 -I/home/mike/Source/openwrt/openwrt/staging_dir/host/include/python2.7 conftest.c In file included from /home/mike/Source/openwrt/openwrt/staging_dir/host/include/python2.7/Python.h:8:0, from conftest.c:42: /home/mike/Source/openwrt/openwrt/staging_dir/host/include/python2.7/pyconfig.h:1019:0: warning: "SIZEOF_LONG" redefined [enabled by default] #define SIZEOF_LONG 8 ^ conftest.c:30:0: note: this is the location of the previous definition #define SIZEOF_LONG 4 ^ In file included from /home/mike/Source/openwrt/openwrt/staging_dir/host/include/python2.7/Python.h:58:0, from conftest.c:42: /home/mike/Source/openwrt/openwrt/staging_dir/host/include/python2.7/pyport.h:886:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)." #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)." ^ Has anyone else seen this LONG_BIT check causing a problem when building a Python-related package? -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH packages] lighttpd: backport a fix for running out of filedescriptors
This should be applied to both: master and 15.05 branch. Can you push this? I've pushed this fix on my own. Michael: I hope you're OK and you can still maintain this package in the future. Thank you, Rafał. My workload did not allow me to get to this in time. -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] kernel: add support for NFSv4
From 9dc6a27ba327a6f4ff5892c56c472d857d6ea096 Mon Sep 17 00:00:00 2001 From: W. Michael Petullo m...@flyn.org Date: Mon, 26 Jan 2015 00:01:34 -0500 Subject: [PATCH] kernel: add support for NFSv4 To: openwrt-devel@lists.openwrt.org This work is based on Daniel Colascione's submission to the OpenWrt devel mailing list on January 15th, 2014. I modified his patch so that it applied to the current OpenWrt Barrier Breaker tree. Signed-off-by: W. Michael Petullo m...@flyn.org --- package/kernel/linux/modules/fs.mk | 50 -- package/kernel/linux/modules/lib.mk| 15 + package/kernel/linux/modules/netsupport.mk | 14 + 3 files changed, 62 insertions(+), 17 deletions(-) diff --git a/package/kernel/linux/modules/fs.mk b/package/kernel/linux/modules/fs.mk index c117415..9e3470b 100644 --- a/package/kernel/linux/modules/fs.mk +++ b/package/kernel/linux/modules/fs.mk @@ -292,12 +292,24 @@ define KernelPackage/fs-nfs/description Kernel module for NFS support endef +define KernelPackage/fs-nfs/config + if PACKAGE_kmod-fs-nfs + config KERNEL_NFS_V4 + bool Support NFSv4 in NFS client + depends on PACKAGE_kmod-fs-sunrpc-auth-rpcgss + default n + help + Select this option to support NFSv4 in the NFS server + endif +endef + $(eval $(call KernelPackage,fs-nfs)) define KernelPackage/fs-nfs-common SUBMENU:=$(FS_MENU) TITLE:=Common NFS filesystem modules + DEPENDS:=+kmod-lib-oid-registry KCONFIG:= \ CONFIG_LOCKD \ CONFIG_SUNRPC @@ -310,36 +322,40 @@ endef $(eval $(call KernelPackage,fs-nfs-common)) -define KernelPackage/fs-nfs-common-v4 +define KernelPackage/fs-sunrpc-auth-rpcgss SUBMENU:=$(FS_MENU) - TITLE:=Common NFS V4 filesystem modules - KCONFIG+=\ - CONFIG_SUNRPC_GSS\ - CONFIG_NFS_V4=y\ - CONFIG_NFSD_V4=y - DEPENDS:= @BROKEN - FILES+=$(LINUX_DIR)/net/sunrpc/auth_gss/auth_rpcgss.ko - AUTOLOAD=$(call AutoLoad,30,auth_rpcgss) -endef - -define KernelPackage/fs-nfs-common-v4/description - Kernel modules for NFS V4 NFSD V4 kernel support + TITLE:=GSS authentication for SUN RPC + DEPENDS:=+kmod-fs-nfs-common + KCONFIG:=CONFIG_SUNRPC_GSS + FILES:= \ + $(LINUX_DIR)/net/sunrpc/auth_gss/auth_rpcgss.ko + AUTOLOAD:=$(call AutoLoad,30,auth_rpcgss) endef -$(eval $(call KernelPackage,fs-nfs-common-v4)) - +$(eval $(call KernelPackage,fs-sunrpc-auth-rpcgss)) define KernelPackage/fs-nfsd SUBMENU:=$(FS_MENU) TITLE:=NFS kernel server support - DEPENDS:=+kmod-fs-nfs-common +kmod-fs-exportfs - KCONFIG:= \ + DEPENDS:=+kmod-fs-nfs-common +kmod-fs-exportfs +kmod-fs-sunrpc-auth-rpcgss + KCONFIG= \ CONFIG_NFSD \ CONFIG_NFSD_FAULT_INJECTION=n FILES:=$(LINUX_DIR)/fs/nfsd/nfsd.ko AUTOLOAD:=$(call AutoLoad,40,nfsd) endef +define KernelPackage/fs-nfsd/config + if PACKAGE_kmod-fs-nfsd + config KERNEL_NFSD_V4 + bool Support NFSv4 in NFS server + depends on PACKAGE_kmod-fs-sunrpc-auth-rpcgss + default n + help + Select this option to support NFSv4 in the NFS server + endif +endef + define KernelPackage/fs-nfsd/description Kernel module for NFS kernel server support endef diff --git a/package/kernel/linux/modules/lib.mk b/package/kernel/linux/modules/lib.mk index cd919ba..a148da3 100644 --- a/package/kernel/linux/modules/lib.mk +++ b/package/kernel/linux/modules/lib.mk @@ -202,3 +202,18 @@ define KernelPackage/lib-cordic/description endef $(eval $(call KernelPackage,lib-cordic)) + + +define KernelPackage/lib-oid-registry + SUBMENU:=$(LIB_MENU) + TITLE:=OID-Registry function support + KCONFIG:=CONFIG_OID_REGISTRY + FILES:=$(LINUX_DIR)/lib/oid_registry.ko + AUTOLOAD:=$(call AutoProbe,oid-registry) +endef + +define KernelPackage/lib-oid-registry/description + Kernel module for OID-Registry function support +endef + +$(eval $(call KernelPackage,lib-oid-registry)) diff --git a/package/kernel/linux/modules/netsupport.mk b/package/kernel/linux/modules/netsupport.mk index fc85e22..bffb09c 100644 --- a/package/kernel/linux/modules/netsupport.mk +++ b/package/kernel/linux/modules/netsupport.mk @@ -967,3 +967,17 @@ define KernelPackage/rxrpc/description endef $(eval $(call KernelPackage,rxrpc)) + +define KernelPackage/dns-resolver + SUBMENU:=$(NETWORK_SUPPORT_MENU) + TITLE:=DNS-resolver modules + KCONFIG:=CONFIG_DNS_RESOLVER + FILES:= \ + $(LINUX_DIR)/net/dns_resolver/dns_resolver.ko +endef + +define KernelPackage/dns-resolver/description + Kernel modules for DNS-RESOLVER support +endef + +$(eval $(call KernelPackage,dns-resolver)) -- 2.1.0 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Status of NFSv4
What is the status of NFSv4 on Barrier Breaker? I see that the definition of KernelPackage/fs-nfs-common-v4 contains DEPENDS:= @BROKEN. Is there anything I can do to help? I am the maintainer of OpenWrt's krb5 package, and I am interested in using Kerberized NFSv4 on OpenWrt. -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] No users added while installing packages
I use the OpenWrt code available at git://git.openwrt.org/14.07/openwrt.git to build images for Mikrotik routers. While building a new image, I found that none of my packages were creating users. Here are some examples: 1. lighttpd, which makes use of user_add in /etc/init.d/lighttpd, created an http user, but it was not assigned a UID. 2. dmapd, which makes use of USERID:=dmapd=56:dmapd=56 in its Makefile, did not create a user. 3. postfix, which provides a create_users shell function in /etc/init.d/postfix, did not create a user. Not that /etc/init.d/postfix does not explicitly call the create_users function. 4. ntpd, which makes use of USERID:=ntp=123:ntp=123 in its Makefile, did not create a user. 5. etc. What has changed that these packages no longer create the proper users? I recall some earlier discussion about creating users, but it did not seem that they came to a definite conclusion. I am also curious to know how packages should reserve a UID; for example, postfix seems to assume that no other package will claim 87 and 88. I am the maintainer for some of the packages referenced above. -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Trouble modifying cyrus-sasl to optionally build GSSAPI support
I am trying to modify OpenWrt's cyrus-sasl package to optionally build with GSSAPI support. I first added krb5-libs to the package as an optional dependency. Despite doing this, cyrus-sasl continued to build without GSSAPI support; I found the following in the package's config.log: configure:14957: checking for gss_unwrap in -lgssapi_krb5 configure:14982: mips-openwrt-linux-uclibc-gcc -o conftest -Wall -W -Os -pipe -mno-branch-likely -mips32r2 -mtune=34kc -fno-caller-saves -fhonour-copts -Wno-error=unused-but-set-variable -msoft-float -mips16 -minterlink-mips16 -fpic -I/home/mike/Source/openwrt/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/include -I/home/mike/Source/openwrt/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/include -I/home/mike/Source/openwrt/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/include -I/home/mike/Source/openwrt/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/include -I/home/mike/Source/openwrt/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/include/krb5 -DOBSOLETE_CRAM_ATTR=1 -I/home/mike/Source/openwrt/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/include -L/home/mike/Source/openwrt/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib -R/home/mike/Source/openwrt/openwrt/staging_dir/target-mips_ 34kc_uClibc-0.9.33.2/usr/lib -L/home/mike/Source/openwrt/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib -L/home/mike/Source/openwrt/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/lib -L/home/mike/Source/openwrt/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/usr/lib -L/home/mike/Source/openwrt/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/lib conftest.c -lgssapi_krb5 -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lkrb5support 5 /home/mike/Source/openwrt/openwrt/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/lib/gcc/mips-openwrt-linux-uclibc/4.8.3/../../../../mips-openwrt-linux-uclibc/bin/ld: cannot find -lcom_err collect2: error: ld returned 1 exit status libcom_err seems to be a library that is part of the libext2fs package, so I added this as an optional dependency for cyrus-sasl as well. Building libext2fs did not seem to help, though; I found the same warning in config.log again. One thing I noticed is that building libext2fs results in libcom_err being installed at: staging_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx/usr/lib/ but not: staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib However, manually copying the library from the former directory to the later does not seem to help. Does anyone know what might be going on? -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] Postfix on OpenWRT
Wow! I'm happy that someone new joined the party. Toes it mean that binary packages for Barrier Breaker are going to be available? I'm asking because during the compilation I get the following error: /mnt/trash/barrier_breaker-14.07-rc3/OpenWrt-SDK-ar71xx-for-linux-x86_64-gcc-4.8-linaro_uClibc-0.9.33.2/staging_dir/toolchain-mips_34kc_gcc-4.8-linaro_uClibc-0.9.33.2/bin/../lib/gcc/mips-openwrt-linux-uclibc/4.8.3/../../../../mips-openwrt-linux-uclibc/bin/ld: skipping incompatible /usr/lib64/libc.so when searching for -lc collect2: error: ld returned 1 exit status Makefile:50: recipe for target 'master' failed Postfix compiles fine on my build host (Fedora 20), but actually creating the packages causes the following errors (here it looks like the script is trying to manipulate my build host's root filesystem): Configuring postfix. postfix: error: to submit mail, use the Postfix sendmail command postfix: fatal: the postfix command is reserved for the superuser postfix: error: to submit mail, use the Postfix sendmail command postfix: fatal: the postfix command is reserved for the superuser postalias: fatal: open /etc/aliases.db: Permission denied grep: /etc/sysupgrade.conf: No such file or directory /home/mike/Source/openwrt/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx//usr/lib/opkg/info/postfix.postinst: line 24: [: -eq: unary operator expected /home/mike/Source/openwrt/openwrt/build_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx//usr/lib/opkg/info/postfix.postinst: line 29: /etc/init.d/postfix: No such file or directory The following is the postinst script, with some comments inline: define Package/postfix/postinst #!/bin/sh if [ `grep -c postfix /etc/passwd` -eq 0 ] then echo postfix:x:34: /etc/group echo postdrop:x:35: /etc/group echo postfix:!:34:34::/var:/bin/false /etc/passwd fi Adding users often goes in the init.d script where we can make use of some common shell functions. See, for example, lighttpd's use of user_exists in lighttpd.init at: https://github.com/openwrt/packages/blob/master/net/lighttpd/files/lighttpd.init if [ ! -f /etc/services ] || [ `grep -c smtp /etc/services` -eq 0 ] then echo smtp25/tcp mail /etc/services echo smtp25/udp mail /etc/services fi I think /etc/services always includes smtp on OpenWrt. Is this not correct? if [ ! -f /etc/aliases ] then ln -s /etc/postfix/aliases /etc/aliases fi Why do we need /etc/aliases? postfix set-permissions postfix upgrade-configuration newaliases if [ `ps | grep postfix/master | grep -cv grep` -gt 0 ] then postfix reload fi if [ `grep -c aliases /etc/sysupgrade.conf` -eq 0 ] then echo /etc/postfix/main.cf /etc/sysupgrade.conf echo /etc/postfix/aliases /etc/sysupgrade.conf fi /etc/init.d/postfix enable endef Thanks, -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Thank you!
While perhaps not exactly within the purpose of this mailing list, I wanted to take the time to publicly thank the folks behind the new GitHub-based packages repository. I previously found OpenWrt very frustrating to contribute to, but it seems that the new work-flow is much more contributor-friendly. I would like to especially thank Ted Hess, champtar, and sbyx, who worked with me to copy/add a number of new packages in the last few weeks. I would also like to thank all of those who conceived of this new contribution model in the first place. I have been using OpenWrt for a number of years, and am very glad to see a more workable (at least from the point of view of one non-core developer) means of contributing and updating packages. Regardless of who hosts our repository, OpenWrt has a bright future. Sincerely, -- Mike Petullo :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] New gstreamer packages
I created several new gstreamer module packages (v4l2 for example), they update makefiles and add some patches. But now I confused with paths, after update gstreamer was moved to the oldpackages directory. Which path patch should contain ? to quote Steven Barth who replied to a similar mail: please note that we are not going to accept patches for the (old) packages feed anymore. See: https://forum.openwrt.org/viewtopic.php?id=51078 and the referenced mail for details. If you like you can adopt this package and maintain it in our new github feed: https://github.com/openwrt/packages though. gstreamer is not available in github packages. It has to be there first to get your patch accepted. There are patches for gst1-...-... that has a newer api than the one available in OpenWrt oldpackages. Most of these build fine see http://patchwork.openwrt.org/patch/4982/ and later or the mailing list archive. GStreamer 1.2.3 is now available in the GitHub-hosted packages repository, thanks in part to the work of Ted Hess. -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] New gstreamer packages
I created several new gstreamer module packages (v4l2 for example), they update makefiles and add some patches. But now I confused with paths, after update gstreamer was moved to the oldpackages directory. Which path patch should contain ? to quote Steven Barth who replied to a similar mail: please note that we are not going to accept patches for the (old) packages feed anymore. See: https://forum.openwrt.org/viewtopic.php?id=51078 and the referenced mail for details. If you like you can adopt this package and maintain it in our new github feed: https://github.com/openwrt/packages though. gstreamer is not available in github packages. It has to be there first to get your patch accepted. There are patches for gst1-...-... that has a newer api than the one available in OpenWrt oldpackages. Most of these build fine see http://patchwork.openwrt.org/patch/4982/ and later or the mailing list archive. I just pushed the Gstreamer 1.0+ patches to: https://github.com/MikePetullo/packages/ I am working on getting these and some other packages into the mainstream package repository. -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] New gstreamer packages
I created several new gstreamer module packages (v4l2 for example), they update makefiles and add some patches. But now I confused with paths, after update gstreamer was moved to the oldpackages directory. Which path patch should contain ? [...] gstreamer is not available in github packages. It has to be there first to get your patch accepted. There are patches for gst1-...-... that has a newer api than the one available in OpenWrt oldpackages. Most of these build fine see http://patchwork.openwrt.org/patch/4982/ and later or the mailing list archive. I remain very interested in seeing the GStreamer 1.0+ patches accepted into OpenWrt, especially before Barrier Breaker. I currently am reading the notes about the GitHub migration to learn how I can become a package maintainer. Thanks, -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH 001/005] [packages] gstreamer1: Add a new gstreamer1 package
Subject: [PATCH 2/6] Many applications are starting to require GStreamer 1.0, which is API-incompatible with GStreamer 0.10. The name gstreamer1 allows GStreamer 0.10 and 1.0 to coexist, in a manner similar to gtk1 and gtk2. Does anyone have any interest in reviewing these patches? It would be nice to have GStreamer 1 in OpenWrt proper. Thanks, -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] (no subject)
From 4454a29846b8c580dc380b108cfa8e48a13ff67a Mon Sep 17 00:00:00 2001 From: W. Michael Petullo m...@flyn.org Date: Fri, 7 Mar 2014 21:58:27 -0500 Subject: [PATCH 3/6] Add base plugins for GStreamer 1.0 To: openwrt-devel@lists.openwrt.org Signed-off-by: W. Michael Petullo m...@flyn.org --- multimedia/gst1-plugins-base/Makefile | 237 + .../gst1-plugins-base/patches/001-no_docs.patch| 36 .../gst1-plugins-base/patches/002-no_tests.patch | 38 .../patches/003-no_translations.patch | 49 + 4 files changed, 360 insertions(+) create mode 100644 multimedia/gst1-plugins-base/Makefile create mode 100644 multimedia/gst1-plugins-base/patches/001-no_docs.patch create mode 100644 multimedia/gst1-plugins-base/patches/002-no_tests.patch create mode 100644 multimedia/gst1-plugins-base/patches/003-no_translations.patch diff --git a/multimedia/gst1-plugins-base/Makefile b/multimedia/gst1-plugins-base/Makefile new file mode 100644 index 000..00d9b3e --- /dev/null +++ b/multimedia/gst1-plugins-base/Makefile @@ -0,0 +1,237 @@ +# +# Copyright (C) 2008-2011 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=gst1-plugins-base +PKG_VERSION:=1.2.3 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/gst-plugins-base-$(PKG_VERSION) +PKG_SOURCE:=gst-plugins-base-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-base/ +PKG_MD5SUM:=17aeabfbcd232526f50c9bee375f1b97 + +PKG_BUILD_DEPENDS:= gstreamer1 liboil +PKG_CONFIG_DEPENDS:= \ + CONFIG_PACKAGE_gst1-mod-alsa \ + CONFIG_PACKAGE_gst1-mod-app \ + CONFIG_PACKAGE_gst1-mod-audioconvert \ + CONFIG_PACKAGE_gst1-mod-audiorate \ + CONFIG_PACKAGE_gst1-mod-audioresample \ + CONFIG_PACKAGE_gst1-mod-audiotestsrc \ + CONFIG_PACKAGE_gst1-mod-gio \ + CONFIG_PACKAGE_gst1-mod-ogg \ + CONFIG_PACKAGE_gst1-mod-tcp \ + CONFIG_PACKAGE_gst1-mod-theora \ + CONFIG_PACKAGE_gst1-mod-videotestsrc \ + CONFIG_PACKAGE_gst1-mod-volume \ + CONFIG_PACKAGE_gst1-mod-vorbis \ + +PKG_FIXUP:=autoreconf +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk + +# -liconv crept in from pkg-config, to be revisited later +include $(INCLUDE_DIR)/nls.mk + +define Package/gstreamer1/Default + CATEGORY:=Multimedia + SECTION:=multimedia + TITLE:=GStreamer + URL:=http://gstreamer.freedesktop.org/ +endef + +define Package/gstreamer1/description/Default + GStreamer open source multimedia framework +endef + + +define Package/gst1-plugins-base +$(call Package/gstreamer1/Default) + TITLE+= plugins collection (base) + DEPENDS+= $(GST_DEPENDS) +endef + +define Package/gts1-plugins-base/description +$(call Package/gstreamer1/description/Default) + . + This meta package contains only dependencies to the other libraries and + plugins from the base plugins collection. +endef + + +GST_COND_SELECT = $(patsubst %,$(if $(CONFIG_PACKAGE_gst1-mod-$(1)),--enable,--disable)-%,$(1)) + +GST_VERSION:=1.0 + +CONFIGURE_ARGS += \ + --disable-debug \ + --disable-examples \ + \ + $(call GST_COND_SELECT,alsa) \ + --disable-alsa-test \ + $(call GST_COND_SELECT,app) \ + $(call GST_COND_SELECT,audioconvert) \ + $(call GST_COND_SELECT,audiorate) \ + $(call GST_COND_SELECT,audioresample) \ + $(call GST_COND_SELECT,audiotestsrc) \ + --disable-cdparanoia \ + --disable-ffmpegcolorspace \ + --disable-freetypetest \ + $(call GST_COND_SELECT,gio) \ + --disable-gnome_vfs \ + --disable-gst_v4l \ + --disable-libvisual \ + $(call GST_COND_SELECT,ogg) \ + --disable-oggtest \ + --disable-pango \ + --disable-subparse \ + $(call GST_COND_SELECT,tcp) \ + $(call GST_COND_SELECT,theora) \ + --disable-videorate \ + --disable-videoscale \ + $(call GST_COND_SELECT,videotestsrc) \ + $(call GST_COND_SELECT,volume) \ + $(call GST_COND_SELECT,vorbis) \ + --disable-vorbistest \ + --disable-x \ + --disable-xshm \ + --disable-xvideo \ + \ + --without-libiconv-prefix \ + --without-libintl-prefix \ + --without-x \ + \ + --with-audioresample-format=int \ + +EXTRA_LDFLAGS+= \ + -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ + + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include/gstreamer-$(GST_VERSION) + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/include/gstreamer-$(GST_VERSION)/* \ + $(1)/usr/include/gstreamer-$(GST_VERSION)/ \ + ) + $(INSTALL_DIR) $(1)/usr/lib + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/libgst*-$(GST_VERSION).{la,so*} \ + $(1)/usr/lib/ \ + ) + $(INSTALL_DIR) $(1)/usr/lib/gstreamer-$(GST_VERSION
[OpenWrt-Devel] (no subject)
From f45f723f81bfa889556526f0a5c0ce7ae5ff10b3 Mon Sep 17 00:00:00 2001 From: W. Michael Petullo m...@flyn.org Date: Fri, 7 Mar 2014 22:34:17 -0500 Subject: [PATCH 4/6] Good plugins for GStreamer 1.0. To: openwrt-devel@lists.openwrt.org Signed-off-by: W. Michael Petullo m...@flyn.org --- multimedia/gst1-plugins-good/Makefile | 175 + .../gst1-plugins-good/patches/001-no_docs.patch| 22 +++ .../gst1-plugins-good/patches/002-no_tests.patch | 22 +++ .../patches/003-no_translations.patch | 33 4 files changed, 252 insertions(+) create mode 100644 multimedia/gst1-plugins-good/Makefile create mode 100644 multimedia/gst1-plugins-good/patches/001-no_docs.patch create mode 100644 multimedia/gst1-plugins-good/patches/002-no_tests.patch create mode 100644 multimedia/gst1-plugins-good/patches/003-no_translations.patch diff --git a/multimedia/gst1-plugins-good/Makefile b/multimedia/gst1-plugins-good/Makefile new file mode 100644 index 000..e3a560a --- /dev/null +++ b/multimedia/gst1-plugins-good/Makefile @@ -0,0 +1,175 @@ +## Copyright (C) 2009-2011 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=gst1-plugins-good +PKG_VERSION:=1.0.7 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/gst-plugins-good-$(PKG_VERSION) +PKG_SOURCE:=gst-plugins-good-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-good/ +PKG_MD5SUM:=e4b1c825475a9b478fe29e8e9f34516f + +PKG_BUILD_DEPENDS:= gstreamer1 gst1-plugins-base liboil + +PKG_FIXUP:=autoreconf +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk + +define Package/gstreamer1/Default + CATEGORY:=Multimedia + SECTION:=multimedia + TITLE:=GStreamer + URL:=http://gstreamer.freedesktop.org/ +endef + +define Package/gstreamer1/description/Default + GStreamer open source multimedia framework +endef + + +define Package/gst1-plugins-good +$(call Package/gstreamer1/Default) + TITLE+= plugins collection (good) + DEPENDS+= $(GST_DEPENDS) +endef + +define Package/gts-plugins-good/description +$(call Package/gstreamer1/description/Default) + . + This meta package contains only dependencies to the other plugins from + the good plugins collection. +endef + + +GST_VERSION:=1.0 + +CONFIGURE_ARGS += \ + --disable-debug \ + --disable-examples \ + \ + --disable-aalib \ + --disable-alpha \ + --disable-annodex \ + --disable-apetag \ + --disable-auparse \ + --disable-avi \ + --disable-bz2 \ + --disable-cairo \ + --disable-directsound \ + --disable-dv1394 \ + --disable-effectv \ + --disable-esd \ + --disable-flv \ + --disable-flx \ + --disable-gconf \ + --disable-gconftool \ + --disable-gdk_pixbuf \ + --disable-goom \ + --disable-goom2k1 \ + --disable-gst_v4l2 \ + --disable-hal \ + --disable-jpeg \ + --disable-law \ + --disable-libcaca \ + --disable-libdv \ + --disable-libpng \ + --disable-matroska \ + --disable-monoscope \ + --disable-osx_audio \ + --disable-osx_video \ + --disable-pulse \ + --disable-qtdemux \ + --disable-rtspmanager \ + --disable-smpte \ + --disable-shout2 \ + --disable-speex \ + --disable-sunaudio \ + --disable-taglib \ + --disable-videobox \ + --disable-videocrop \ + --disable-videofilter \ + --disable-videomixer \ + --disable-wavpack \ + --disable-x \ + --disable-xshm \ + --disable-xvideo \ + --disable-y4m \ + --disable-zlib \ + \ + --without-libiconv-prefix \ + --without-libintl-prefix \ + --without-x \ + +EXTRA_LDFLAGS+= \ + -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ + + +define Package/gst1-plugins-good/install + /bin/true +endef + + +# 1: short name +# 2: description +# 3: dependencies on other gstreamer libraries (short name) +# 4: dependencies on other gstreamer plugins (short name) +# 5: dependencies on other packages +define GstBuildPlugin + + GST_DEPENDS += +gst1-mod-$(1) + + define Package/gst1-mod-$(1) +$(call Package/gstreamer1/Default) +TITLE+= $(2) plugin (good) +DEPENDS+= +libgstreamer1 $$(foreach p,$(3),+libgst1$$(p)) $$(foreach p,$(4),+gst1-mod-$$(p)) $(5) + endef + + define Package/gst1-mod-$(1)/description + $(call Package/gstreamer1/description/Default) + . + This package contains the GStreamer $(2) plugin. + endef + + define Package/gst1-mod-$(1)/install + $(INSTALL_DIR) $$(1)/usr/lib/gstreamer-$(GST_VERSION) + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/gstreamer-$(GST_VERSION)/libgst$(1).so* \ + $$(1)/usr/lib/gstreamer-$(GST_VERSION)/ \ + ) + endef + + $$(eval $$(call BuildPackage,gst1-mod-$(1
[OpenWrt-Devel] (no subject)
From 4648b73df7eff02ff7f8633b06bb4a48bb172d9b Mon Sep 17 00:00:00 2001 From: W. Michael Petullo m...@flyn.org Date: Fri, 7 Mar 2014 22:34:56 -0500 Subject: [PATCH 6/6] Ugly plugins for GStreamer 1.0. To: openwrt-devel@lists.openwrt.org Signed-off-by: W. Michael Petullo m...@flyn.org --- multimedia/gst1-plugins-ugly/Makefile | 135 + .../gst1-plugins-ugly/patches/001-no_docs.patch| 24 .../gst1-plugins-ugly/patches/002-no_tests.patch | 24 .../patches/003-no_translations.patch | 35 ++ 4 files changed, 218 insertions(+) create mode 100644 multimedia/gst1-plugins-ugly/Makefile create mode 100644 multimedia/gst1-plugins-ugly/patches/001-no_docs.patch create mode 100644 multimedia/gst1-plugins-ugly/patches/002-no_tests.patch create mode 100644 multimedia/gst1-plugins-ugly/patches/003-no_translations.patch diff --git a/multimedia/gst1-plugins-ugly/Makefile b/multimedia/gst1-plugins-ugly/Makefile new file mode 100644 index 000..dd75e66 --- /dev/null +++ b/multimedia/gst1-plugins-ugly/Makefile @@ -0,0 +1,135 @@ +# +# Copyright (C) 2009-2011 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=gst1-plugins-ugly +PKG_VERSION:=1.2.3 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/gst-plugins-ugly-$(PKG_VERSION) +PKG_SOURCE:=gst-plugins-ugly-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-ugly/ +PKG_MD5SUM:=7ae60e2f759f58f32af5fcdc3c9193c4 + +PKG_BUILD_DEPENDS:= gstreamer1 gst1-plugins-base liboil +PKG_CONFIG_DEPENDS:= \ + CONFIG_PACKAGE_gst1-mod-asf \ + CONFIG_PACKAGE_gst1-mod-lame \ + CONFIG_PACKAGE_gst1-mod-mad \ + CONFIG_PACKAGE_gst1-mod-mpeg2dec \ + +PKG_FIXUP:=autoreconf +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk + +define Package/gstreamer1/Default + CATEGORY:=Multimedia + SECTION:=multimedia + TITLE:=GStreamer + URL:=http://gstreamer.freedesktop.org/ +endef + +define Package/gstreamer1/description/Default + GStreamer open source multimedia framework +endef + + +define Package/gst1-plugins-ugly +$(call Package/gstreamer1/Default) + TITLE+= plugins collection (ugly) + DEPENDS+= $(GST_DEPENDS) +endef + +define Package/gts-plugins-ugly/description +$(call Package/gstreamer1/description/Default) + . + This meta package contains only dependencies to the other plugins from + the ugly plugins collection. +endef + + +GST_COND_SELECT = $(patsubst %,$(if $(CONFIG_PACKAGE_gst1-mod-$(1)),--enable,--disable)-%,$(1)) + +GST_VERSION:=1.0 + +CONFIGURE_ARGS += \ + --disable-debug \ + --disable-examples \ + \ + --disable-a52dec \ + --disable-amrnb \ + --disable-amrwb \ + $(call GST_COND_SELECT,asf) \ + --disable-cdio \ + --disable-dvdlpcmdec \ + --disable-dvdread \ + --disable-dvdsub \ + --disable-iec958 \ + $(call GST_COND_SELECT,lame) \ + $(call GST_COND_SELECT,mad) \ + $(call GST_COND_SELECT,mpeg2dec) \ + --disable-mpegaudioparse \ + --disable-mpegstream \ + --disable-realmedia \ + --disable-sidplay \ + --disable-synaesthesia \ + --disable-twolame \ + --disable-x264 \ + \ + --without-libiconv-prefix \ + --without-libintl-prefix \ + +EXTRA_LDFLAGS+= \ + -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ + + +define Package/gst1-plugins-ugly/install + /bin/true +endef + + +# 1: short name +# 2: description +# 3: dependencies on other gstreamer libraries (short name) +# 4: dependencies on other gstreamer plugins (short name) +# 5: dependencies on other packages +define GstBuildPlugin + + GST_DEPENDS += +gst1-mod-$(1) + + define Package/gst1-mod-$(1) +$(call Package/gstreamer1/Default) +TITLE+= $(2) plugin (ugly) +DEPENDS+= +libgstreamer1 $$(foreach p,$(3),+libgst1$$(p)) $$(foreach p,$(4),+gst1-mod-$$(p)) $(5) + endef + + define Package/gst1-mod-$(1)/description + $(call Package/gstreamer1/description/Default) + . + This package contains the GStreamer $(2) plugin. + endef + + define Package/gst1-mod-$(1)/install + $(INSTALL_DIR) $$(1)/usr/lib/gstreamer-$(GST_VERSION) + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/gstreamer-$(GST_VERSION)/libgst$(1).so* \ + $$(1)/usr/lib/gstreamer-$(GST_VERSION)/ \ + ) + endef + + $$(eval $$(call BuildPackage,gst1-mod-$(1))) +endef + +$(eval $(call GstBuildPlugin,asf,ASF demuxer,audio riff rtp rtsp sdp tag,,)) +$(eval $(call GstBuildPlugin,lame,MP3 encoder (using LAME),audio,,+lame-lib)) +$(eval $(call GstBuildPlugin,mad,MP3 decoder (using MAD),audio tag,,+libid3tag +libmad)) +$(eval $(call GstBuildPlugin,mpeg2dec,MPEG decoder,video,,+libmpeg2)) + +$(eval $(call BuildPackage,gst1-plugins-ugly)) diff --git a/multimedia/gst1-plugins-ugly/patches/001-no_docs.patch b
[OpenWrt-Devel] (no subject)
From 42ce62f764ec046620fbdc2120f1891a22dd966b Mon Sep 17 00:00:00 2001 From: W. Michael Petullo m...@flyn.org Date: Fri, 7 Mar 2014 21:57:00 -0500 Subject: [PATCH 2/6] Many applications are starting to require GStreamer 1.0, which is API-incompatible with GStreamer 0.10. The name gstreamer1 allows GStreamer 0.10 and 1.0 to coexist, in a manner similar to gtk1 and gtk2. To: openwrt-devel@lists.openwrt.org Signed-off-by: W. Michael Petullo m...@flyn.org --- multimedia/gstreamer1/Makefile | 189 + multimedia/gstreamer1/patches/001-no_docs.patch| 37 multimedia/gstreamer1/patches/002-no_tests.patch | 39 + .../gstreamer1/patches/003-no_translations.patch | 48 ++ 4 files changed, 313 insertions(+) create mode 100644 multimedia/gstreamer1/Makefile create mode 100644 multimedia/gstreamer1/patches/001-no_docs.patch create mode 100644 multimedia/gstreamer1/patches/002-no_tests.patch create mode 100644 multimedia/gstreamer1/patches/003-no_translations.patch diff --git a/multimedia/gstreamer1/Makefile b/multimedia/gstreamer1/Makefile new file mode 100644 index 000..d410960 --- /dev/null +++ b/multimedia/gstreamer1/Makefile @@ -0,0 +1,189 @@ +# +# Copyright (C) 2008-2012 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=gstreamer1 +PKG_VERSION:=1.2.3 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/gstreamer-$(PKG_VERSION) +PKG_SOURCE:=gstreamer-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gstreamer/ +PKG_MD5SUM:=8155b9c7574ccaa361cc504e8e0e72dc + +PKG_FIXUP:=autoreconf +PKG_REMOVE_FILES:=autogen.sh aclocal.m4 + +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk + +define Package/gstreamer1/Default + CATEGORY:=Multimedia + SECTION:=multimedia + TITLE:=GStreamer + URL:=http://gstreamer.freedesktop.org/ +endef + +define Package/gstreamer1/description/Default + GStreamer open source multimedia framework +endef + + +define Package/gstreamer1 +$(call Package/gstreamer1/Default) + TITLE+= framework + DEPENDS+= +libgstreamer1 \ + +libgst1check \ + +libgst1controller \ + +libgst1net +endef + +define Package/gstreamer1/description +$(call Package/gstreamer1/description/Default) + . + This meta package contains only dependencies on the other GStreamer + componenents. +endef + + +define Package/gstreamer1-utils +$(call Package/gstreamer1/Default) + TITLE+= utilities + DEPENDS+= +libgstreamer1 +endef + +define Package/gstreamer1-utils/description +$(call Package/gstreamer1/description/Default) + . + This package contains the GStreamer utilities. +endef + + +define Package/libgstreamer1 +$(call Package/gstreamer1/Default) + TITLE+= library (core) + DEPENDS+= +glib2 +libpthread +libxml2 +endef + +define Package/libgstreamer1/description +$(call Package/gstreamer1/description/Default) + . + This package contains the GStreamer core library. +endef + + +GST_VERSION:=1.0 + +CONFIGURE_ARGS += \ + --enable-static \ + --disable-examples \ + --disable-tests \ + --disable-valgrind \ + --without-libiconv-prefix \ + --without-libintl-prefix \ + --without-x \ + +EXTRA_LDFLAGS+= \ + -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ + -L$(ICONV_PREFIX)/lib -L$(INTL_PREFIX)/lib + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include/gstreamer-$(GST_VERSION) + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/include/gstreamer-$(GST_VERSION)/* \ + $(1)/usr/include/gstreamer-$(GST_VERSION)/ \ + ) + $(INSTALL_DIR) $(1)/usr/lib + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/libgst*-$(GST_VERSION).{a,la,so*} \ + $(1)/usr/lib/ \ + ) + $(INSTALL_DIR) $(1)/usr/lib/gstreamer-$(GST_VERSION) + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/gstreamer-$(GST_VERSION)/libgst*.{la,so} \ + $(1)/usr/lib/gstreamer-$(GST_VERSION)/ \ + ) + $(INSTALL_DIR) $(1)/usr/lib/pkgconfig + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/pkgconfig/gstreamer*-$(GST_VERSION).pc \ + $(1)/usr/lib/pkgconfig/ \ + ) + $(INSTALL_DIR) $(2)/share/aclocal + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/share/aclocal/* \ + $(2)/share/aclocal/ \ + ) +endef + +define Package/gstreamer1/install + /bin/true +endef + +define Package/gstreamer1-utils/install + $(INSTALL_DIR) $(1)/usr/bin + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/bin/gst-launch* \ + ./usr/bin/gst-inspect* \ + ./usr/bin/gst-typefind* \ + $(1)/usr/bin/ \ + ) +endef + +define Package/libgstreamer1/install + $(INSTALL_DIR) $(1)/usr/lib + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib
[OpenWrt-Devel] (no subject)
From ff2e304c49fc5efc549558f3c958ed439c1d942f Mon Sep 17 00:00:00 2001 From: W. Michael Petullo m...@flyn.org Date: Fri, 7 Mar 2014 22:34:39 -0500 Subject: [PATCH 5/6] Bad plugins for GStreamer 1.0. To: openwrt-devel@lists.openwrt.org Signed-off-by: W. Michael Petullo m...@flyn.org --- multimedia/gst1-plugins-bad/Makefile | 253 + .../gst1-plugins-bad/patches/000-gettext.patch | 45 2 files changed, 298 insertions(+) create mode 100644 multimedia/gst1-plugins-bad/Makefile create mode 100644 multimedia/gst1-plugins-bad/patches/000-gettext.patch diff --git a/multimedia/gst1-plugins-bad/Makefile b/multimedia/gst1-plugins-bad/Makefile new file mode 100644 index 000..b82b1dd --- /dev/null +++ b/multimedia/gst1-plugins-bad/Makefile @@ -0,0 +1,253 @@ +# +# Copyright (C) 2011 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=gst1-plugins-bad +PKG_VERSION:=1.2.3 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/gst-plugins-bad-$(PKG_VERSION) +PKG_SOURCE:=gst-plugins-bad-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-bad/ +PKG_MD5SUM:=cfd6f303c8df2740b27cc63b945decef + +PKG_BUILD_DEPENDS:= gstreamer1 gst1-plugins-base liboil + +PKG_FIXUP:=autoreconf +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk + +define Package/gstreamer1/Default + CATEGORY:=Multimedia + SECTION:=multimedia + TITLE:=GStreamer + URL:=http://gstreamer.freedesktop.org/ +endef + +define Package/gstreamer1/description/Default + GStreamer open source multimedia framework +endef + + +define Package/gst1-plugins-bad +$(call Package/gstreamer1/Default) + TITLE+= plugins collection (bad) + DEPENDS+= $(GST_DEPENDS) +endef + +define Package/gts1-plugins-bad/description +$(call Package/gstreamer1/description/Default) + . + This meta package contains only dependencies to the other plugins from + the bad plugins collection. +endef + + +GST_VERSION:=1.0 + +CONFIGURE_ARGS += \ + --disable-debug \ + --disable-examples \ + --disable-nls \ + \ + --disable-directsound \ + --disable-directdraw \ + --disable-osx_video \ + --disable-quicktime \ + --disable-vcd \ + --disable-alsa \ + --disable-assrender \ + --disable-amrwb \ + --disable-apexsink \ + --disable-bz2 \ + --disable-cdaudio \ + --disable-celt \ + --disable-cog \ + --disable-dc1394 \ + --disable-directfb \ + --disable-dirac \ + --disable-dts \ + --disable-divx \ + --disable-resindvd \ + --disable-metadata \ + --disable-faac \ + --disable-faad \ + --disable-fbdev \ + --disable-flite \ + --disable-gsm \ + --disable-jack \ + --disable-jp2k \ + --disable-kate \ + --disable-ladspa \ + --disable-lv2 \ + --disable-modplug \ + --disable-mimic \ + --disable-libmms \ + --disable-mpeg2enc \ + --disable-mplex \ + --disable-musepack \ + --disable-musicbrainz \ + --disable-mythtv \ + --disable-nas \ + --disable-neon \ + --disable-ofa \ + --disable-rsvg \ + --disable-timidity \ + --disable-wildmidi \ + --disable-sdl \ + --disable-sdltest \ + --disable-sndfile \ + --disable-soundtouch \ + --disable-spc \ + --disable-gme \ + --disable-swfdec \ + --disable-theoradec \ + --disable-xvid \ + --disable-dvb \ + --disable-wininet \ + --disable-acm \ + --disable-vdpau \ + --disable-schro \ + --disable-zbar \ + --disable-vp8 \ + --disable-librfb \ + \ + --without-libiconv-prefix \ + --without-libintl-prefix \ + --without-x \ + +EXTRA_LDFLAGS+= \ + -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ + + +define Package/gst1-plugins-ugly/install + /bin/true +endef + +# 1: short name +# 2: description +# 3: dependencies on other gstreamer libraries (short name) +# 4: dependencies on other packages +define GstBuildLibrary + + GST_DEPENDS += +libgst1$(1) + + define Package/libgst1$(1) +$(call Package/gstreamer1/Default) +TITLE+= $(2) library (base) +DEPENDS+= +libgstreamer1 $$(foreach p,$(3),+libgst1$$(p)) $(4) + endef + + define Package/libgst1$(1)/description + $(call Package/gstreamer1/description/Default) + . + This package contains the GStreamer $(2) library. + endef + + define Package/libgst1$(1)/install + $(INSTALL_DIR) $$(1)/usr/lib + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/libgst$(1)-$(GST_VERSION).so.* \ + $$(1)/usr/lib/ \ + ) + endef + + $$(eval $$(call BuildPackage,libgst1$(1))) +endef +$(eval $(call GstBuildLibrary,photography,photography,,)) + + +# 1: short name +# 2: description +# 3
[OpenWrt-Devel] (no subject)
From 0e3d0fc4fef035b210250d927640e677f1f4bf88 Mon Sep 17 00:00:00 2001 From: W. Michael Petullo m...@flyn.org Date: Fri, 7 Mar 2014 21:56:14 -0500 Subject: [PATCH 1/6] Fix build of glib2 on Fedora 20 To: openwrt-devel@lists.openwrt.org Signed-off-by: W. Michael Petullo m...@flyn.org --- libs/glib2/Makefile | 7 +++ 1 file changed, 7 insertions(+) diff --git a/libs/glib2/Makefile b/libs/glib2/Makefile index 978e816..9c69ee6 100644 --- a/libs/glib2/Makefile +++ b/libs/glib2/Makefile @@ -57,6 +57,13 @@ define Build/Configure ); endef +# Fix build on Fedora 20. +define Host/Configure + $(call Host/Configure/Default, \ + --disable-selinux \ + ); +endef + define Build/InstallDev $(INSTALL_DIR) $(1)/usr/include $(CP) \ -- 1.8.5.3 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 001/005] [packages] gstreamer1: Add a new gstreamer1 package
From 42ce62f764ec046620fbdc2120f1891a22dd966b Mon Sep 17 00:00:00 2001 From: W. Michael Petullo m...@flyn.org Date: Fri, 7 Mar 2014 21:57:00 -0500 Subject: [PATCH 2/6] Many applications are starting to require GStreamer 1.0, which is API-incompatible with GStreamer 0.10. The name gstreamer1 allows GStreamer 0.10 and 1.0 to coexist, in a manner similar to gtk1 and gtk2. To: openwrt-devel@lists.openwrt.org Signed-off-by: W. Michael Petullo m...@flyn.org --- multimedia/gstreamer1/Makefile | 189 + multimedia/gstreamer1/patches/001-no_docs.patch| 37 multimedia/gstreamer1/patches/002-no_tests.patch | 39 + .../gstreamer1/patches/003-no_translations.patch | 48 ++ 4 files changed, 313 insertions(+) create mode 100644 multimedia/gstreamer1/Makefile create mode 100644 multimedia/gstreamer1/patches/001-no_docs.patch create mode 100644 multimedia/gstreamer1/patches/002-no_tests.patch create mode 100644 multimedia/gstreamer1/patches/003-no_translations.patch diff --git a/multimedia/gstreamer1/Makefile b/multimedia/gstreamer1/Makefile new file mode 100644 index 000..d410960 --- /dev/null +++ b/multimedia/gstreamer1/Makefile @@ -0,0 +1,189 @@ +# +# Copyright (C) 2008-2012 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=gstreamer1 +PKG_VERSION:=1.2.3 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/gstreamer-$(PKG_VERSION) +PKG_SOURCE:=gstreamer-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gstreamer/ +PKG_MD5SUM:=8155b9c7574ccaa361cc504e8e0e72dc + +PKG_FIXUP:=autoreconf +PKG_REMOVE_FILES:=autogen.sh aclocal.m4 + +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk + +define Package/gstreamer1/Default + CATEGORY:=Multimedia + SECTION:=multimedia + TITLE:=GStreamer + URL:=http://gstreamer.freedesktop.org/ +endef + +define Package/gstreamer1/description/Default + GStreamer open source multimedia framework +endef + + +define Package/gstreamer1 +$(call Package/gstreamer1/Default) + TITLE+= framework + DEPENDS+= +libgstreamer1 \ + +libgst1check \ + +libgst1controller \ + +libgst1net +endef + +define Package/gstreamer1/description +$(call Package/gstreamer1/description/Default) + . + This meta package contains only dependencies on the other GStreamer + componenents. +endef + + +define Package/gstreamer1-utils +$(call Package/gstreamer1/Default) + TITLE+= utilities + DEPENDS+= +libgstreamer1 +endef + +define Package/gstreamer1-utils/description +$(call Package/gstreamer1/description/Default) + . + This package contains the GStreamer utilities. +endef + + +define Package/libgstreamer1 +$(call Package/gstreamer1/Default) + TITLE+= library (core) + DEPENDS+= +glib2 +libpthread +libxml2 +endef + +define Package/libgstreamer1/description +$(call Package/gstreamer1/description/Default) + . + This package contains the GStreamer core library. +endef + + +GST_VERSION:=1.0 + +CONFIGURE_ARGS += \ + --enable-static \ + --disable-examples \ + --disable-tests \ + --disable-valgrind \ + --without-libiconv-prefix \ + --without-libintl-prefix \ + --without-x \ + +EXTRA_LDFLAGS+= \ + -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ + -L$(ICONV_PREFIX)/lib -L$(INTL_PREFIX)/lib + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include/gstreamer-$(GST_VERSION) + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/include/gstreamer-$(GST_VERSION)/* \ + $(1)/usr/include/gstreamer-$(GST_VERSION)/ \ + ) + $(INSTALL_DIR) $(1)/usr/lib + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/libgst*-$(GST_VERSION).{a,la,so*} \ + $(1)/usr/lib/ \ + ) + $(INSTALL_DIR) $(1)/usr/lib/gstreamer-$(GST_VERSION) + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/gstreamer-$(GST_VERSION)/libgst*.{la,so} \ + $(1)/usr/lib/gstreamer-$(GST_VERSION)/ \ + ) + $(INSTALL_DIR) $(1)/usr/lib/pkgconfig + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/pkgconfig/gstreamer*-$(GST_VERSION).pc \ + $(1)/usr/lib/pkgconfig/ \ + ) + $(INSTALL_DIR) $(2)/share/aclocal + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/share/aclocal/* \ + $(2)/share/aclocal/ \ + ) +endef + +define Package/gstreamer1/install + /bin/true +endef + +define Package/gstreamer1-utils/install + $(INSTALL_DIR) $(1)/usr/bin + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/bin/gst-launch* \ + ./usr/bin/gst-inspect* \ + ./usr/bin/gst-typefind* \ + $(1)/usr/bin/ \ + ) +endef + +define Package/libgstreamer1/install + $(INSTALL_DIR) $(1)/usr/lib + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib
[OpenWrt-Devel] [PATCH 002/005] [packages] gst1-plugins-base: Add a new gst1-plugins-base package
From 4454a29846b8c580dc380b108cfa8e48a13ff67a Mon Sep 17 00:00:00 2001 From: W. Michael Petullo m...@flyn.org Date: Fri, 7 Mar 2014 21:58:27 -0500 Subject: [PATCH 3/6] Add base plugins for GStreamer 1.0 To: openwrt-devel@lists.openwrt.org Signed-off-by: W. Michael Petullo m...@flyn.org --- multimedia/gst1-plugins-base/Makefile | 237 + .../gst1-plugins-base/patches/001-no_docs.patch| 36 .../gst1-plugins-base/patches/002-no_tests.patch | 38 .../patches/003-no_translations.patch | 49 + 4 files changed, 360 insertions(+) create mode 100644 multimedia/gst1-plugins-base/Makefile create mode 100644 multimedia/gst1-plugins-base/patches/001-no_docs.patch create mode 100644 multimedia/gst1-plugins-base/patches/002-no_tests.patch create mode 100644 multimedia/gst1-plugins-base/patches/003-no_translations.patch diff --git a/multimedia/gst1-plugins-base/Makefile b/multimedia/gst1-plugins-base/Makefile new file mode 100644 index 000..00d9b3e --- /dev/null +++ b/multimedia/gst1-plugins-base/Makefile @@ -0,0 +1,237 @@ +# +# Copyright (C) 2008-2011 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=gst1-plugins-base +PKG_VERSION:=1.2.3 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/gst-plugins-base-$(PKG_VERSION) +PKG_SOURCE:=gst-plugins-base-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-base/ +PKG_MD5SUM:=17aeabfbcd232526f50c9bee375f1b97 + +PKG_BUILD_DEPENDS:= gstreamer1 liboil +PKG_CONFIG_DEPENDS:= \ + CONFIG_PACKAGE_gst1-mod-alsa \ + CONFIG_PACKAGE_gst1-mod-app \ + CONFIG_PACKAGE_gst1-mod-audioconvert \ + CONFIG_PACKAGE_gst1-mod-audiorate \ + CONFIG_PACKAGE_gst1-mod-audioresample \ + CONFIG_PACKAGE_gst1-mod-audiotestsrc \ + CONFIG_PACKAGE_gst1-mod-gio \ + CONFIG_PACKAGE_gst1-mod-ogg \ + CONFIG_PACKAGE_gst1-mod-tcp \ + CONFIG_PACKAGE_gst1-mod-theora \ + CONFIG_PACKAGE_gst1-mod-videotestsrc \ + CONFIG_PACKAGE_gst1-mod-volume \ + CONFIG_PACKAGE_gst1-mod-vorbis \ + +PKG_FIXUP:=autoreconf +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk + +# -liconv crept in from pkg-config, to be revisited later +include $(INCLUDE_DIR)/nls.mk + +define Package/gstreamer1/Default + CATEGORY:=Multimedia + SECTION:=multimedia + TITLE:=GStreamer + URL:=http://gstreamer.freedesktop.org/ +endef + +define Package/gstreamer1/description/Default + GStreamer open source multimedia framework +endef + + +define Package/gst1-plugins-base +$(call Package/gstreamer1/Default) + TITLE+= plugins collection (base) + DEPENDS+= $(GST_DEPENDS) +endef + +define Package/gts1-plugins-base/description +$(call Package/gstreamer1/description/Default) + . + This meta package contains only dependencies to the other libraries and + plugins from the base plugins collection. +endef + + +GST_COND_SELECT = $(patsubst %,$(if $(CONFIG_PACKAGE_gst1-mod-$(1)),--enable,--disable)-%,$(1)) + +GST_VERSION:=1.0 + +CONFIGURE_ARGS += \ + --disable-debug \ + --disable-examples \ + \ + $(call GST_COND_SELECT,alsa) \ + --disable-alsa-test \ + $(call GST_COND_SELECT,app) \ + $(call GST_COND_SELECT,audioconvert) \ + $(call GST_COND_SELECT,audiorate) \ + $(call GST_COND_SELECT,audioresample) \ + $(call GST_COND_SELECT,audiotestsrc) \ + --disable-cdparanoia \ + --disable-ffmpegcolorspace \ + --disable-freetypetest \ + $(call GST_COND_SELECT,gio) \ + --disable-gnome_vfs \ + --disable-gst_v4l \ + --disable-libvisual \ + $(call GST_COND_SELECT,ogg) \ + --disable-oggtest \ + --disable-pango \ + --disable-subparse \ + $(call GST_COND_SELECT,tcp) \ + $(call GST_COND_SELECT,theora) \ + --disable-videorate \ + --disable-videoscale \ + $(call GST_COND_SELECT,videotestsrc) \ + $(call GST_COND_SELECT,volume) \ + $(call GST_COND_SELECT,vorbis) \ + --disable-vorbistest \ + --disable-x \ + --disable-xshm \ + --disable-xvideo \ + \ + --without-libiconv-prefix \ + --without-libintl-prefix \ + --without-x \ + \ + --with-audioresample-format=int \ + +EXTRA_LDFLAGS+= \ + -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ + + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include/gstreamer-$(GST_VERSION) + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/include/gstreamer-$(GST_VERSION)/* \ + $(1)/usr/include/gstreamer-$(GST_VERSION)/ \ + ) + $(INSTALL_DIR) $(1)/usr/lib + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/libgst*-$(GST_VERSION).{la,so*} \ + $(1)/usr/lib/ \ + ) + $(INSTALL_DIR) $(1)/usr/lib/gstreamer-$(GST_VERSION
[OpenWrt-Devel] [PATCH 003/005] [packages] gst1-plugins-good: Add a new gst1-plugins-good package
From f45f723f81bfa889556526f0a5c0ce7ae5ff10b3 Mon Sep 17 00:00:00 2001 From: W. Michael Petullo m...@flyn.org Date: Fri, 7 Mar 2014 22:34:17 -0500 Subject: [PATCH 4/6] Good plugins for GStreamer 1.0. To: openwrt-devel@lists.openwrt.org Signed-off-by: W. Michael Petullo m...@flyn.org --- multimedia/gst1-plugins-good/Makefile | 175 + .../gst1-plugins-good/patches/001-no_docs.patch| 22 +++ .../gst1-plugins-good/patches/002-no_tests.patch | 22 +++ .../patches/003-no_translations.patch | 33 4 files changed, 252 insertions(+) create mode 100644 multimedia/gst1-plugins-good/Makefile create mode 100644 multimedia/gst1-plugins-good/patches/001-no_docs.patch create mode 100644 multimedia/gst1-plugins-good/patches/002-no_tests.patch create mode 100644 multimedia/gst1-plugins-good/patches/003-no_translations.patch diff --git a/multimedia/gst1-plugins-good/Makefile b/multimedia/gst1-plugins-good/Makefile new file mode 100644 index 000..e3a560a --- /dev/null +++ b/multimedia/gst1-plugins-good/Makefile @@ -0,0 +1,175 @@ +## Copyright (C) 2009-2011 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=gst1-plugins-good +PKG_VERSION:=1.0.7 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/gst-plugins-good-$(PKG_VERSION) +PKG_SOURCE:=gst-plugins-good-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-good/ +PKG_MD5SUM:=e4b1c825475a9b478fe29e8e9f34516f + +PKG_BUILD_DEPENDS:= gstreamer1 gst1-plugins-base liboil + +PKG_FIXUP:=autoreconf +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk + +define Package/gstreamer1/Default + CATEGORY:=Multimedia + SECTION:=multimedia + TITLE:=GStreamer + URL:=http://gstreamer.freedesktop.org/ +endef + +define Package/gstreamer1/description/Default + GStreamer open source multimedia framework +endef + + +define Package/gst1-plugins-good +$(call Package/gstreamer1/Default) + TITLE+= plugins collection (good) + DEPENDS+= $(GST_DEPENDS) +endef + +define Package/gts-plugins-good/description +$(call Package/gstreamer1/description/Default) + . + This meta package contains only dependencies to the other plugins from + the good plugins collection. +endef + + +GST_VERSION:=1.0 + +CONFIGURE_ARGS += \ + --disable-debug \ + --disable-examples \ + \ + --disable-aalib \ + --disable-alpha \ + --disable-annodex \ + --disable-apetag \ + --disable-auparse \ + --disable-avi \ + --disable-bz2 \ + --disable-cairo \ + --disable-directsound \ + --disable-dv1394 \ + --disable-effectv \ + --disable-esd \ + --disable-flv \ + --disable-flx \ + --disable-gconf \ + --disable-gconftool \ + --disable-gdk_pixbuf \ + --disable-goom \ + --disable-goom2k1 \ + --disable-gst_v4l2 \ + --disable-hal \ + --disable-jpeg \ + --disable-law \ + --disable-libcaca \ + --disable-libdv \ + --disable-libpng \ + --disable-matroska \ + --disable-monoscope \ + --disable-osx_audio \ + --disable-osx_video \ + --disable-pulse \ + --disable-qtdemux \ + --disable-rtspmanager \ + --disable-smpte \ + --disable-shout2 \ + --disable-speex \ + --disable-sunaudio \ + --disable-taglib \ + --disable-videobox \ + --disable-videocrop \ + --disable-videofilter \ + --disable-videomixer \ + --disable-wavpack \ + --disable-x \ + --disable-xshm \ + --disable-xvideo \ + --disable-y4m \ + --disable-zlib \ + \ + --without-libiconv-prefix \ + --without-libintl-prefix \ + --without-x \ + +EXTRA_LDFLAGS+= \ + -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ + + +define Package/gst1-plugins-good/install + /bin/true +endef + + +# 1: short name +# 2: description +# 3: dependencies on other gstreamer libraries (short name) +# 4: dependencies on other gstreamer plugins (short name) +# 5: dependencies on other packages +define GstBuildPlugin + + GST_DEPENDS += +gst1-mod-$(1) + + define Package/gst1-mod-$(1) +$(call Package/gstreamer1/Default) +TITLE+= $(2) plugin (good) +DEPENDS+= +libgstreamer1 $$(foreach p,$(3),+libgst1$$(p)) $$(foreach p,$(4),+gst1-mod-$$(p)) $(5) + endef + + define Package/gst1-mod-$(1)/description + $(call Package/gstreamer1/description/Default) + . + This package contains the GStreamer $(2) plugin. + endef + + define Package/gst1-mod-$(1)/install + $(INSTALL_DIR) $$(1)/usr/lib/gstreamer-$(GST_VERSION) + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/gstreamer-$(GST_VERSION)/libgst$(1).so* \ + $$(1)/usr/lib/gstreamer-$(GST_VERSION)/ \ + ) + endef + + $$(eval $$(call BuildPackage,gst1-mod-$(1
[OpenWrt-Devel] [PATCH 005/005] [packages] gst1-plugins-ugly: Add a new gst1-plugins-ugly package
From 4648b73df7eff02ff7f8633b06bb4a48bb172d9b Mon Sep 17 00:00:00 2001 From: W. Michael Petullo m...@flyn.org Date: Fri, 7 Mar 2014 22:34:56 -0500 Subject: [PATCH 6/6] Ugly plugins for GStreamer 1.0. To: openwrt-devel@lists.openwrt.org Signed-off-by: W. Michael Petullo m...@flyn.org --- multimedia/gst1-plugins-ugly/Makefile | 135 + .../gst1-plugins-ugly/patches/001-no_docs.patch| 24 .../gst1-plugins-ugly/patches/002-no_tests.patch | 24 .../patches/003-no_translations.patch | 35 ++ 4 files changed, 218 insertions(+) create mode 100644 multimedia/gst1-plugins-ugly/Makefile create mode 100644 multimedia/gst1-plugins-ugly/patches/001-no_docs.patch create mode 100644 multimedia/gst1-plugins-ugly/patches/002-no_tests.patch create mode 100644 multimedia/gst1-plugins-ugly/patches/003-no_translations.patch diff --git a/multimedia/gst1-plugins-ugly/Makefile b/multimedia/gst1-plugins-ugly/Makefile new file mode 100644 index 000..dd75e66 --- /dev/null +++ b/multimedia/gst1-plugins-ugly/Makefile @@ -0,0 +1,135 @@ +# +# Copyright (C) 2009-2011 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=gst1-plugins-ugly +PKG_VERSION:=1.2.3 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/gst-plugins-ugly-$(PKG_VERSION) +PKG_SOURCE:=gst-plugins-ugly-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-ugly/ +PKG_MD5SUM:=7ae60e2f759f58f32af5fcdc3c9193c4 + +PKG_BUILD_DEPENDS:= gstreamer1 gst1-plugins-base liboil +PKG_CONFIG_DEPENDS:= \ + CONFIG_PACKAGE_gst1-mod-asf \ + CONFIG_PACKAGE_gst1-mod-lame \ + CONFIG_PACKAGE_gst1-mod-mad \ + CONFIG_PACKAGE_gst1-mod-mpeg2dec \ + +PKG_FIXUP:=autoreconf +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk + +define Package/gstreamer1/Default + CATEGORY:=Multimedia + SECTION:=multimedia + TITLE:=GStreamer + URL:=http://gstreamer.freedesktop.org/ +endef + +define Package/gstreamer1/description/Default + GStreamer open source multimedia framework +endef + + +define Package/gst1-plugins-ugly +$(call Package/gstreamer1/Default) + TITLE+= plugins collection (ugly) + DEPENDS+= $(GST_DEPENDS) +endef + +define Package/gts-plugins-ugly/description +$(call Package/gstreamer1/description/Default) + . + This meta package contains only dependencies to the other plugins from + the ugly plugins collection. +endef + + +GST_COND_SELECT = $(patsubst %,$(if $(CONFIG_PACKAGE_gst1-mod-$(1)),--enable,--disable)-%,$(1)) + +GST_VERSION:=1.0 + +CONFIGURE_ARGS += \ + --disable-debug \ + --disable-examples \ + \ + --disable-a52dec \ + --disable-amrnb \ + --disable-amrwb \ + $(call GST_COND_SELECT,asf) \ + --disable-cdio \ + --disable-dvdlpcmdec \ + --disable-dvdread \ + --disable-dvdsub \ + --disable-iec958 \ + $(call GST_COND_SELECT,lame) \ + $(call GST_COND_SELECT,mad) \ + $(call GST_COND_SELECT,mpeg2dec) \ + --disable-mpegaudioparse \ + --disable-mpegstream \ + --disable-realmedia \ + --disable-sidplay \ + --disable-synaesthesia \ + --disable-twolame \ + --disable-x264 \ + \ + --without-libiconv-prefix \ + --without-libintl-prefix \ + +EXTRA_LDFLAGS+= \ + -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ + + +define Package/gst1-plugins-ugly/install + /bin/true +endef + + +# 1: short name +# 2: description +# 3: dependencies on other gstreamer libraries (short name) +# 4: dependencies on other gstreamer plugins (short name) +# 5: dependencies on other packages +define GstBuildPlugin + + GST_DEPENDS += +gst1-mod-$(1) + + define Package/gst1-mod-$(1) +$(call Package/gstreamer1/Default) +TITLE+= $(2) plugin (ugly) +DEPENDS+= +libgstreamer1 $$(foreach p,$(3),+libgst1$$(p)) $$(foreach p,$(4),+gst1-mod-$$(p)) $(5) + endef + + define Package/gst1-mod-$(1)/description + $(call Package/gstreamer1/description/Default) + . + This package contains the GStreamer $(2) plugin. + endef + + define Package/gst1-mod-$(1)/install + $(INSTALL_DIR) $$(1)/usr/lib/gstreamer-$(GST_VERSION) + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/gstreamer-$(GST_VERSION)/libgst$(1).so* \ + $$(1)/usr/lib/gstreamer-$(GST_VERSION)/ \ + ) + endef + + $$(eval $$(call BuildPackage,gst1-mod-$(1))) +endef + +$(eval $(call GstBuildPlugin,asf,ASF demuxer,audio riff rtp rtsp sdp tag,,)) +$(eval $(call GstBuildPlugin,lame,MP3 encoder (using LAME),audio,,+lame-lib)) +$(eval $(call GstBuildPlugin,mad,MP3 decoder (using MAD),audio tag,,+libid3tag +libmad)) +$(eval $(call GstBuildPlugin,mpeg2dec,MPEG decoder,video,,+libmpeg2)) + +$(eval $(call BuildPackage,gst1-plugins-ugly)) diff --git a/multimedia/gst1-plugins-ugly/patches/001-no_docs.patch b
[OpenWrt-Devel] [PATCH 004/005] [packages] gst1-plugins-bad: Add a new gst1-plugins-bad package
From ff2e304c49fc5efc549558f3c958ed439c1d942f Mon Sep 17 00:00:00 2001 From: W. Michael Petullo m...@flyn.org Date: Fri, 7 Mar 2014 22:34:39 -0500 Subject: [PATCH 5/6] Bad plugins for GStreamer 1.0. To: openwrt-devel@lists.openwrt.org Signed-off-by: W. Michael Petullo m...@flyn.org --- multimedia/gst1-plugins-bad/Makefile | 253 + .../gst1-plugins-bad/patches/000-gettext.patch | 45 2 files changed, 298 insertions(+) create mode 100644 multimedia/gst1-plugins-bad/Makefile create mode 100644 multimedia/gst1-plugins-bad/patches/000-gettext.patch diff --git a/multimedia/gst1-plugins-bad/Makefile b/multimedia/gst1-plugins-bad/Makefile new file mode 100644 index 000..b82b1dd --- /dev/null +++ b/multimedia/gst1-plugins-bad/Makefile @@ -0,0 +1,253 @@ +# +# Copyright (C) 2011 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=gst1-plugins-bad +PKG_VERSION:=1.2.3 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/gst-plugins-bad-$(PKG_VERSION) +PKG_SOURCE:=gst-plugins-bad-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-bad/ +PKG_MD5SUM:=cfd6f303c8df2740b27cc63b945decef + +PKG_BUILD_DEPENDS:= gstreamer1 gst1-plugins-base liboil + +PKG_FIXUP:=autoreconf +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk + +define Package/gstreamer1/Default + CATEGORY:=Multimedia + SECTION:=multimedia + TITLE:=GStreamer + URL:=http://gstreamer.freedesktop.org/ +endef + +define Package/gstreamer1/description/Default + GStreamer open source multimedia framework +endef + + +define Package/gst1-plugins-bad +$(call Package/gstreamer1/Default) + TITLE+= plugins collection (bad) + DEPENDS+= $(GST_DEPENDS) +endef + +define Package/gts1-plugins-bad/description +$(call Package/gstreamer1/description/Default) + . + This meta package contains only dependencies to the other plugins from + the bad plugins collection. +endef + + +GST_VERSION:=1.0 + +CONFIGURE_ARGS += \ + --disable-debug \ + --disable-examples \ + --disable-nls \ + \ + --disable-directsound \ + --disable-directdraw \ + --disable-osx_video \ + --disable-quicktime \ + --disable-vcd \ + --disable-alsa \ + --disable-assrender \ + --disable-amrwb \ + --disable-apexsink \ + --disable-bz2 \ + --disable-cdaudio \ + --disable-celt \ + --disable-cog \ + --disable-dc1394 \ + --disable-directfb \ + --disable-dirac \ + --disable-dts \ + --disable-divx \ + --disable-resindvd \ + --disable-metadata \ + --disable-faac \ + --disable-faad \ + --disable-fbdev \ + --disable-flite \ + --disable-gsm \ + --disable-jack \ + --disable-jp2k \ + --disable-kate \ + --disable-ladspa \ + --disable-lv2 \ + --disable-modplug \ + --disable-mimic \ + --disable-libmms \ + --disable-mpeg2enc \ + --disable-mplex \ + --disable-musepack \ + --disable-musicbrainz \ + --disable-mythtv \ + --disable-nas \ + --disable-neon \ + --disable-ofa \ + --disable-rsvg \ + --disable-timidity \ + --disable-wildmidi \ + --disable-sdl \ + --disable-sdltest \ + --disable-sndfile \ + --disable-soundtouch \ + --disable-spc \ + --disable-gme \ + --disable-swfdec \ + --disable-theoradec \ + --disable-xvid \ + --disable-dvb \ + --disable-wininet \ + --disable-acm \ + --disable-vdpau \ + --disable-schro \ + --disable-zbar \ + --disable-vp8 \ + --disable-librfb \ + \ + --without-libiconv-prefix \ + --without-libintl-prefix \ + --without-x \ + +EXTRA_LDFLAGS+= \ + -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ + + +define Package/gst1-plugins-ugly/install + /bin/true +endef + +# 1: short name +# 2: description +# 3: dependencies on other gstreamer libraries (short name) +# 4: dependencies on other packages +define GstBuildLibrary + + GST_DEPENDS += +libgst1$(1) + + define Package/libgst1$(1) +$(call Package/gstreamer1/Default) +TITLE+= $(2) library (base) +DEPENDS+= +libgstreamer1 $$(foreach p,$(3),+libgst1$$(p)) $(4) + endef + + define Package/libgst1$(1)/description + $(call Package/gstreamer1/description/Default) + . + This package contains the GStreamer $(2) library. + endef + + define Package/libgst1$(1)/install + $(INSTALL_DIR) $$(1)/usr/lib + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/libgst$(1)-$(GST_VERSION).so.* \ + $$(1)/usr/lib/ \ + ) + endef + + $$(eval $$(call BuildPackage,libgst1$(1))) +endef +$(eval $(call GstBuildLibrary,photography,photography,,)) + + +# 1: short name +# 2: description +# 3
Re: [OpenWrt-Devel] [PATCH][packages] gstreamer: Update to version 1.2.2. Make grammar.y work with Bison 3
Update gstreamer to version 1.2.2. This will break packages that depend on 0.10 series of gstreamer. I have already submitted a patch, [PATCH][packages]gstreamer: update grammar.y to build with bison 3, that addresses this issue. It was submitted early December. For reference, I also submitted [packages] gstreamer1: Add a new gstreamer1 package and four 1.0-series GStreamer plugin packages on November 17th, 2013. These packages would exist in parallel with the 0.10 packages, for the reason described above. -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 1/8] Add a GStreamer 1.0 package. Many applications are starting to require GStreamer 1.0, which is API-incompatible with GStreamer 0.10. The name gstreamer1 allows GStreamer 0.
Signed-off-by: W. Michael Petullo m...@flyn.org --- multimedia/gstreamer1/Makefile | 190 + multimedia/gstreamer1/patches/001-no_docs.patch| 37 multimedia/gstreamer1/patches/002-no_tests.patch | 39 + .../gstreamer1/patches/003-no_translations.patch | 48 ++ 4 files changed, 314 insertions(+) create mode 100644 multimedia/gstreamer1/Makefile create mode 100644 multimedia/gstreamer1/patches/001-no_docs.patch create mode 100644 multimedia/gstreamer1/patches/002-no_tests.patch create mode 100644 multimedia/gstreamer1/patches/003-no_translations.patch diff --git a/multimedia/gstreamer1/Makefile b/multimedia/gstreamer1/Makefile new file mode 100644 index 000..2315415 --- /dev/null +++ b/multimedia/gstreamer1/Makefile @@ -0,0 +1,190 @@ +# +# Copyright (C) 2008-2012 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=gstreamer1 +PKG_VERSION:=1.0.7 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/gstreamer-$(PKG_VERSION) +PKG_SOURCE:=gstreamer-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gstreamer/ +PKG_MD5SUM:=8f6066a37c71a0d0ff5fe5f7687fea12 + +PKG_FIXUP:=autoreconf +PKG_REMOVE_FILES:=autogen.sh aclocal.m4 + +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk + +define Package/gstreamer1/Default + CATEGORY:=Multimedia + SECTION:=multimedia + TITLE:=GStreamer + URL:=http://gstreamer.freedesktop.org/ +endef + +define Package/gstreamer1/description/Default + GStreamer open source multimedia framework +endef + + +define Package/gstreamer1 +$(call Package/gstreamer1/Default) + TITLE+= framework + DEPENDS+= +libgstreamer1 \ + +libgst1check \ + +libgst1controller \ + +libgst1net +endef + +define Package/gstreamer1/description +$(call Package/gstreamer1/description/Default) + . + This meta package contains only dependencies on the other GStreamer + componenents. +endef + + +define Package/gstreamer1-utils +$(call Package/gstreamer1/Default) + TITLE+= utilities + DEPENDS+= +libgstreamer1 +endef + +define Package/gstreamer1-utils/description +$(call Package/gstreamer1/description/Default) + . + This package contains the GStreamer utilities. +endef + + +define Package/libgstreamer1 +$(call Package/gstreamer1/Default) + TITLE+= library (core) + DEPENDS+= +glib2 +libpthread +libxml2 +endef + +define Package/libgstreamer1/description +$(call Package/gstreamer1/description/Default) + . + This package contains the GStreamer core library. +endef + + +GST_VERSION:=1.0 + +CONFIGURE_ARGS += \ + --enable-static \ + --disable-examples \ + --disable-tests \ + --disable-valgrind \ + --without-libiconv-prefix \ + --without-libintl-prefix \ + --without-x \ + +EXTRA_LDFLAGS+= \ + -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ + -L$(ICONV_PREFIX)/lib -L$(INTL_PREFIX)/lib + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include/gstreamer-$(GST_VERSION) + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/include/gstreamer-$(GST_VERSION)/* \ + $(1)/usr/include/gstreamer-$(GST_VERSION)/ \ + ) + $(INSTALL_DIR) $(1)/usr/lib + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/libgst*-$(GST_VERSION).{a,la,so*} \ + $(1)/usr/lib/ \ + ) + $(INSTALL_DIR) $(1)/usr/lib/gstreamer-$(GST_VERSION) + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/gstreamer-$(GST_VERSION)/libgst*.{la,so} \ + $(1)/usr/lib/gstreamer-$(GST_VERSION)/ \ + ) + $(INSTALL_DIR) $(1)/usr/lib/pkgconfig + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/pkgconfig/gstreamer*-$(GST_VERSION).pc \ + $(1)/usr/lib/pkgconfig/ \ + ) + $(INSTALL_DIR) $(2)/share/aclocal + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/share/aclocal/* \ + $(2)/share/aclocal/ \ + ) +endef + +define Package/gstreamer1/install + /bin/true +endef + +define Package/gstreamer1-utils/install + $(INSTALL_DIR) $(1)/usr/bin + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/bin/gst-launch* \ + ./usr/bin/gst-inspect* \ + ./usr/bin/gst-typefind* \ + $(1)/usr/bin/ \ + ) +endef + +define Package/libgstreamer1/install + $(INSTALL_DIR) $(1)/usr/lib + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/libgstbase-$(GST_VERSION).so.* \ + ./usr/lib/libgstreamer-$(GST_VERSION).so.* \ + $(1)/usr/lib/ \ + ) + $(INSTALL_DIR) $(1)/usr/lib/gstreamer-$(GST_VERSION) + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/gstreamer-$(GST_VERSION)/libgst*.so \ + $(1)/usr/lib/gstreamer-$(GST_VERSION)/ \ + ) +endef + + +# 1: short name +# 2
[OpenWrt-Devel] [PATCH 2/8] Add base plugins for GStreamer 1.0
Signed-off-by: W. Michael Petullo m...@flyn.org --- multimedia/gst1-plugins-base/Makefile | 237 + .../gst1-plugins-base/patches/001-no_docs.patch| 36 .../gst1-plugins-base/patches/002-no_tests.patch | 38 .../patches/003-no_translations.patch | 49 + 4 files changed, 360 insertions(+) create mode 100644 multimedia/gst1-plugins-base/Makefile create mode 100644 multimedia/gst1-plugins-base/patches/001-no_docs.patch create mode 100644 multimedia/gst1-plugins-base/patches/002-no_tests.patch create mode 100644 multimedia/gst1-plugins-base/patches/003-no_translations.patch diff --git a/multimedia/gst1-plugins-base/Makefile b/multimedia/gst1-plugins-base/Makefile new file mode 100644 index 000..270b67b --- /dev/null +++ b/multimedia/gst1-plugins-base/Makefile @@ -0,0 +1,237 @@ +# +# Copyright (C) 2008-2011 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=gst1-plugins-base +PKG_VERSION:=1.0.7 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/gst-plugins-base-$(PKG_VERSION) +PKG_SOURCE:=gst-plugins-base-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-base/ +PKG_MD5SUM:=b5b43cfbf82b413ce2e07a190d87e68f + +PKG_BUILD_DEPENDS:= gstreamer1 liboil +PKG_CONFIG_DEPENDS:= \ + CONFIG_PACKAGE_gst1-mod-alsa \ + CONFIG_PACKAGE_gst1-mod-app \ + CONFIG_PACKAGE_gst1-mod-audioconvert \ + CONFIG_PACKAGE_gst1-mod-audiorate \ + CONFIG_PACKAGE_gst1-mod-audioresample \ + CONFIG_PACKAGE_gst1-mod-audiotestsrc \ + CONFIG_PACKAGE_gst1-mod-gio \ + CONFIG_PACKAGE_gst1-mod-ogg \ + CONFIG_PACKAGE_gst1-mod-tcp \ + CONFIG_PACKAGE_gst1-mod-theora \ + CONFIG_PACKAGE_gst1-mod-videotestsrc \ + CONFIG_PACKAGE_gst1-mod-volume \ + CONFIG_PACKAGE_gst1-mod-vorbis \ + +PKG_FIXUP:=autoreconf +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk + +# -liconv crept in from pkg-config, to be revisited later +include $(INCLUDE_DIR)/nls.mk + +define Package/gstreamer1/Default + CATEGORY:=Multimedia + SECTION:=multimedia + TITLE:=GStreamer + URL:=http://gstreamer.freedesktop.org/ +endef + +define Package/gstreamer1/description/Default + GStreamer open source multimedia framework +endef + + +define Package/gst1-plugins-base +$(call Package/gstreamer1/Default) + TITLE+= plugins collection (base) + DEPENDS+= $(GST_DEPENDS) +endef + +define Package/gts1-plugins-base/description +$(call Package/gstreamer1/description/Default) + . + This meta package contains only dependencies to the other libraries and + plugins from the base plugins collection. +endef + + +GST_COND_SELECT = $(patsubst %,$(if $(CONFIG_PACKAGE_gst1-mod-$(1)),--enable,--disable)-%,$(1)) + +GST_VERSION:=1.0 + +CONFIGURE_ARGS += \ + --disable-debug \ + --disable-examples \ + \ + $(call GST_COND_SELECT,alsa) \ + --disable-alsa-test \ + $(call GST_COND_SELECT,app) \ + $(call GST_COND_SELECT,audioconvert) \ + $(call GST_COND_SELECT,audiorate) \ + $(call GST_COND_SELECT,audioresample) \ + $(call GST_COND_SELECT,audiotestsrc) \ + --disable-cdparanoia \ + --disable-ffmpegcolorspace \ + --disable-freetypetest \ + $(call GST_COND_SELECT,gio) \ + --disable-gnome_vfs \ + --disable-gst_v4l \ + --disable-libvisual \ + $(call GST_COND_SELECT,ogg) \ + --disable-oggtest \ + --disable-pango \ + --disable-subparse \ + $(call GST_COND_SELECT,tcp) \ + $(call GST_COND_SELECT,theora) \ + --disable-videorate \ + --disable-videoscale \ + $(call GST_COND_SELECT,videotestsrc) \ + $(call GST_COND_SELECT,volume) \ + $(call GST_COND_SELECT,vorbis) \ + --disable-vorbistest \ + --disable-x \ + --disable-xshm \ + --disable-xvideo \ + \ + --without-libiconv-prefix \ + --without-libintl-prefix \ + --without-x \ + \ + --with-audioresample-format=int \ + +EXTRA_LDFLAGS+= \ + -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ + + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include/gstreamer-$(GST_VERSION) + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/include/gstreamer-$(GST_VERSION)/* \ + $(1)/usr/include/gstreamer-$(GST_VERSION)/ \ + ) + $(INSTALL_DIR) $(1)/usr/lib + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/libgst*-$(GST_VERSION).{la,so*} \ + $(1)/usr/lib/ \ + ) + $(INSTALL_DIR) $(1)/usr/lib/gstreamer-$(GST_VERSION) + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/gstreamer-$(GST_VERSION)/libgst*.{la,so} \ + $(1)/usr/lib/gstreamer-$(GST_VERSION)/ \ + ) + $(INSTALL_DIR) $(1)/usr/lib/pkgconfig + ( cd
[OpenWrt-Devel] [PATCH 3/8] Add good plugins for GStreamer 1.0
Signed-off-by: W. Michael Petullo m...@flyn.org --- multimedia/gst1-plugins-good/Makefile | 175 + .../gst1-plugins-good/patches/001-no_docs.patch| 22 +++ .../gst1-plugins-good/patches/002-no_tests.patch | 22 +++ .../patches/003-no_translations.patch | 33 4 files changed, 252 insertions(+) create mode 100644 multimedia/gst1-plugins-good/Makefile create mode 100644 multimedia/gst1-plugins-good/patches/001-no_docs.patch create mode 100644 multimedia/gst1-plugins-good/patches/002-no_tests.patch create mode 100644 multimedia/gst1-plugins-good/patches/003-no_translations.patch diff --git a/multimedia/gst1-plugins-good/Makefile b/multimedia/gst1-plugins-good/Makefile new file mode 100644 index 000..df923af --- /dev/null +++ b/multimedia/gst1-plugins-good/Makefile @@ -0,0 +1,175 @@ +## Copyright (C) 2009-2011 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=gst1-plugins-good +PKG_VERSION:=1.0.7 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/gst-plugins-good-$(PKG_VERSION) +PKG_SOURCE:=gst-plugins-good-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-good/ +PKG_MD5SUM:=e4b1c825475a9b478fe29e8e9f34516f + +PKG_BUILD_DEPENDS:= gstreamer1 gst1-plugins-base liboil + +PKG_FIXUP:=autoreconf +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk + +define Package/gstreamer1/Default + CATEGORY:=Multimedia + SECTION:=multimedia + TITLE:=GStreamer + URL:=http://gstreamer.freedesktop.org/ +endef + +define Package/gstreamer1/description/Default + GStreamer open source multimedia framework +endef + + +define Package/gst1-plugins-good +$(call Package/gstreamer1/Default) + TITLE+= plugins collection (good) + DEPENDS+= $(GST_DEPENDS) +endef + +define Package/gts-plugins-good/description +$(call Package/gstreamer1/description/Default) + . + This meta package contains only dependencies to the other plugins from + the good plugins collection. +endef + + +GST_VERSION:=1.0 + +CONFIGURE_ARGS += \ + --disable-debug \ + --disable-examples \ + \ + --disable-aalib \ + --disable-alpha \ + --disable-annodex \ + --disable-apetag \ + --disable-auparse \ + --disable-avi \ + --disable-bz2 \ + --disable-cairo \ + --disable-directsound \ + --disable-dv1394 \ + --disable-effectv \ + --disable-esd \ + --disable-flv \ + --disable-flx \ + --disable-gconf \ + --disable-gconftool \ + --disable-gdk_pixbuf \ + --disable-goom \ + --disable-goom2k1 \ + --disable-gst_v4l2 \ + --disable-hal \ + --disable-jpeg \ + --disable-law \ + --disable-libcaca \ + --disable-libdv \ + --disable-libpng \ + --disable-matroska \ + --disable-monoscope \ + --disable-osx_audio \ + --disable-osx_video \ + --disable-pulse \ + --disable-qtdemux \ + --disable-rtspmanager \ + --disable-smpte \ + --disable-shout2 \ + --disable-speex \ + --disable-sunaudio \ + --disable-taglib \ + --disable-videobox \ + --disable-videocrop \ + --disable-videofilter \ + --disable-videomixer \ + --disable-wavpack \ + --disable-x \ + --disable-xshm \ + --disable-xvideo \ + --disable-y4m \ + --disable-zlib \ + \ + --without-libiconv-prefix \ + --without-libintl-prefix \ + --without-x \ + +EXTRA_LDFLAGS+= \ + -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ + + +define Package/gst1-plugins-good/install + /bin/true +endef + + +# 1: short name +# 2: description +# 3: dependencies on other gstreamer libraries (short name) +# 4: dependencies on other gstreamer plugins (short name) +# 5: dependencies on other packages +define GstBuildPlugin + + GST_DEPENDS += +gst1-mod-$(1) + + define Package/gst1-mod-$(1) +$(call Package/gstreamer1/Default) +TITLE+= $(2) plugin (good) +DEPENDS+= +libgstreamer1 $$(foreach p,$(3),+libgst1$$(p)) $$(foreach p,$(4),+gst1-mod-$$(p)) $(5) + endef + + define Package/gst1-mod-$(1)/description + $(call Package/gstreamer1/description/Default) + . + This package contains the GStreamer $(2) plugin. + endef + + define Package/gst1-mod-$(1)/install + $(INSTALL_DIR) $$(1)/usr/lib/gstreamer-$(GST_VERSION) + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/gstreamer-$(GST_VERSION)/libgst$(1).so* \ + $$(1)/usr/lib/gstreamer-$(GST_VERSION)/ \ + ) + endef + + $$(eval $$(call BuildPackage,gst1-mod-$(1))) +endef + +$(eval $(call GstBuildPlugin,audiofx,audio effects,audio fft controller,,)) +$(eval $(call GstBuildPlugin,autodetect,format auto-detection,,,)) +$(eval $(call GstBuildPlugin,cutter,audio cutter,audio,,)) +$(eval $(call
[OpenWrt-Devel] [PATCH 4/8] Add bad plugins for GStreamer 1.0
Signed-off-by: W. Michael Petullo m...@flyn.org --- multimedia/gst1-plugins-bad/Makefile | 253 + .../gst1-plugins-bad/patches/000-gettext.patch | 45 2 files changed, 298 insertions(+) create mode 100644 multimedia/gst1-plugins-bad/Makefile create mode 100644 multimedia/gst1-plugins-bad/patches/000-gettext.patch diff --git a/multimedia/gst1-plugins-bad/Makefile b/multimedia/gst1-plugins-bad/Makefile new file mode 100644 index 000..3707973 --- /dev/null +++ b/multimedia/gst1-plugins-bad/Makefile @@ -0,0 +1,253 @@ +# +# Copyright (C) 2011 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=gst1-plugins-bad +PKG_VERSION:=1.0.7 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/gst-plugins-bad-$(PKG_VERSION) +PKG_SOURCE:=gst-plugins-bad-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-bad/ +PKG_MD5SUM:=d1493d1219b836a8cbf54f4fba962420 + +PKG_BUILD_DEPENDS:= gstreamer1 gst1-plugins-base liboil + +PKG_FIXUP:=autoreconf +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk + +define Package/gstreamer1/Default + CATEGORY:=Multimedia + SECTION:=multimedia + TITLE:=GStreamer + URL:=http://gstreamer.freedesktop.org/ +endef + +define Package/gstreamer1/description/Default + GStreamer open source multimedia framework +endef + + +define Package/gst1-plugins-bad +$(call Package/gstreamer1/Default) + TITLE+= plugins collection (bad) + DEPENDS+= $(GST_DEPENDS) +endef + +define Package/gts1-plugins-bad/description +$(call Package/gstreamer1/description/Default) + . + This meta package contains only dependencies to the other plugins from + the bad plugins collection. +endef + + +GST_VERSION:=1.0 + +CONFIGURE_ARGS += \ + --disable-debug \ + --disable-examples \ + --disable-nls \ + \ + --disable-directsound \ + --disable-directdraw \ + --disable-osx_video \ + --disable-quicktime \ + --disable-vcd \ + --disable-alsa \ + --disable-assrender \ + --disable-amrwb \ + --disable-apexsink \ + --disable-bz2 \ + --disable-cdaudio \ + --disable-celt \ + --disable-cog \ + --disable-dc1394 \ + --disable-directfb \ + --disable-dirac \ + --disable-dts \ + --disable-divx \ + --disable-resindvd \ + --disable-metadata \ + --disable-faac \ + --disable-faad \ + --disable-fbdev \ + --disable-flite \ + --disable-gsm \ + --disable-jack \ + --disable-jp2k \ + --disable-kate \ + --disable-ladspa \ + --disable-lv2 \ + --disable-modplug \ + --disable-mimic \ + --disable-libmms \ + --disable-mpeg2enc \ + --disable-mplex \ + --disable-musepack \ + --disable-musicbrainz \ + --disable-mythtv \ + --disable-nas \ + --disable-neon \ + --disable-ofa \ + --disable-rsvg \ + --disable-timidity \ + --disable-wildmidi \ + --disable-sdl \ + --disable-sdltest \ + --disable-sndfile \ + --disable-soundtouch \ + --disable-spc \ + --disable-gme \ + --disable-swfdec \ + --disable-theoradec \ + --disable-xvid \ + --disable-dvb \ + --disable-wininet \ + --disable-acm \ + --disable-vdpau \ + --disable-schro \ + --disable-zbar \ + --disable-vp8 \ + --disable-librfb \ + \ + --without-libiconv-prefix \ + --without-libintl-prefix \ + --without-x \ + +EXTRA_LDFLAGS+= \ + -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ + + +define Package/gst1-plugins-ugly/install + /bin/true +endef + +# 1: short name +# 2: description +# 3: dependencies on other gstreamer libraries (short name) +# 4: dependencies on other packages +define GstBuildLibrary + + GST_DEPENDS += +libgst1$(1) + + define Package/libgst1$(1) +$(call Package/gstreamer1/Default) +TITLE+= $(2) library (base) +DEPENDS+= +libgstreamer1 $$(foreach p,$(3),+libgst1$$(p)) $(4) + endef + + define Package/libgst1$(1)/description + $(call Package/gstreamer1/description/Default) + . + This package contains the GStreamer $(2) library. + endef + + define Package/libgst1$(1)/install + $(INSTALL_DIR) $$(1)/usr/lib + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/libgst$(1)-$(GST_VERSION).so.* \ + $$(1)/usr/lib/ \ + ) + endef + + $$(eval $$(call BuildPackage,libgst1$(1))) +endef +$(eval $(call GstBuildLibrary,photography,photography,,)) + + +# 1: short name +# 2: description +# 3: dependencies on other gstreamer libraries (short name) +# 4: dependencies on other gstreamer plugins (short name) +# 5: dependencies on other packages +define GstBuildPlugin + + GST_DEPENDS += +gst1-mod-$(1) + + define Package/gst1-mod
[OpenWrt-Devel] [PATCH 5/8] Add ugly plugins for GStreamer 1.0
Signed-off-by: W. Michael Petullo m...@flyn.org --- multimedia/gst1-plugins-ugly/Makefile | 135 + .../gst1-plugins-ugly/patches/001-no_docs.patch| 24 .../gst1-plugins-ugly/patches/002-no_tests.patch | 24 .../patches/003-no_translations.patch | 35 ++ 4 files changed, 218 insertions(+) create mode 100644 multimedia/gst1-plugins-ugly/Makefile create mode 100644 multimedia/gst1-plugins-ugly/patches/001-no_docs.patch create mode 100644 multimedia/gst1-plugins-ugly/patches/002-no_tests.patch create mode 100644 multimedia/gst1-plugins-ugly/patches/003-no_translations.patch diff --git a/multimedia/gst1-plugins-ugly/Makefile b/multimedia/gst1-plugins-ugly/Makefile new file mode 100644 index 000..2346ecc --- /dev/null +++ b/multimedia/gst1-plugins-ugly/Makefile @@ -0,0 +1,135 @@ +# +# Copyright (C) 2009-2011 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=gst1-plugins-ugly +PKG_VERSION:=1.0.7 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/gst-plugins-ugly-$(PKG_VERSION) +PKG_SOURCE:=gst-plugins-ugly-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-ugly/ +PKG_MD5SUM:=8754edf6c3be235f232fb75ad11708bb + +PKG_BUILD_DEPENDS:= gstreamer1 gst1-plugins-base liboil +PKG_CONFIG_DEPENDS:= \ + CONFIG_PACKAGE_gst1-mod-asf \ + CONFIG_PACKAGE_gst1-mod-lame \ + CONFIG_PACKAGE_gst1-mod-mad \ + CONFIG_PACKAGE_gst1-mod-mpeg2dec \ + +PKG_FIXUP:=autoreconf +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk + +define Package/gstreamer1/Default + CATEGORY:=Multimedia + SECTION:=multimedia + TITLE:=GStreamer + URL:=http://gstreamer.freedesktop.org/ +endef + +define Package/gstreamer1/description/Default + GStreamer open source multimedia framework +endef + + +define Package/gst1-plugins-ugly +$(call Package/gstreamer1/Default) + TITLE+= plugins collection (ugly) + DEPENDS+= $(GST_DEPENDS) +endef + +define Package/gts-plugins-ugly/description +$(call Package/gstreamer1/description/Default) + . + This meta package contains only dependencies to the other plugins from + the ugly plugins collection. +endef + + +GST_COND_SELECT = $(patsubst %,$(if $(CONFIG_PACKAGE_gst1-mod-$(1)),--enable,--disable)-%,$(1)) + +GST_VERSION:=1.0 + +CONFIGURE_ARGS += \ + --disable-debug \ + --disable-examples \ + \ + --disable-a52dec \ + --disable-amrnb \ + --disable-amrwb \ + $(call GST_COND_SELECT,asf) \ + --disable-cdio \ + --disable-dvdlpcmdec \ + --disable-dvdread \ + --disable-dvdsub \ + --disable-iec958 \ + $(call GST_COND_SELECT,lame) \ + $(call GST_COND_SELECT,mad) \ + $(call GST_COND_SELECT,mpeg2dec) \ + --disable-mpegaudioparse \ + --disable-mpegstream \ + --disable-realmedia \ + --disable-sidplay \ + --disable-synaesthesia \ + --disable-twolame \ + --disable-x264 \ + \ + --without-libiconv-prefix \ + --without-libintl-prefix \ + +EXTRA_LDFLAGS+= \ + -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ + + +define Package/gst1-plugins-ugly/install + /bin/true +endef + + +# 1: short name +# 2: description +# 3: dependencies on other gstreamer libraries (short name) +# 4: dependencies on other gstreamer plugins (short name) +# 5: dependencies on other packages +define GstBuildPlugin + + GST_DEPENDS += +gst1-mod-$(1) + + define Package/gst1-mod-$(1) +$(call Package/gstreamer1/Default) +TITLE+= $(2) plugin (ugly) +DEPENDS+= +libgstreamer1 $$(foreach p,$(3),+libgst1$$(p)) $$(foreach p,$(4),+gst1-mod-$$(p)) $(5) + endef + + define Package/gst1-mod-$(1)/description + $(call Package/gstreamer1/description/Default) + . + This package contains the GStreamer $(2) plugin. + endef + + define Package/gst1-mod-$(1)/install + $(INSTALL_DIR) $$(1)/usr/lib/gstreamer-$(GST_VERSION) + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/gstreamer-$(GST_VERSION)/libgst$(1).so* \ + $$(1)/usr/lib/gstreamer-$(GST_VERSION)/ \ + ) + endef + + $$(eval $$(call BuildPackage,gst1-mod-$(1))) +endef + +$(eval $(call GstBuildPlugin,asf,ASF demuxer,audio riff rtp rtsp sdp tag,,)) +$(eval $(call GstBuildPlugin,lame,MP3 encoder (using LAME),audio,,+lame-lib)) +$(eval $(call GstBuildPlugin,mad,MP3 decoder (using MAD),audio tag,,+libid3tag +libmad)) +$(eval $(call GstBuildPlugin,mpeg2dec,MPEG decoder,video,,+libmpeg2)) + +$(eval $(call BuildPackage,gst1-plugins-ugly)) diff --git a/multimedia/gst1-plugins-ugly/patches/001-no_docs.patch b/multimedia/gst1-plugins-ugly/patches/001-no_docs.patch new file mode 100644 index 000..5d99fd4 --- /dev/null +++ b/multimedia/gst1-plugins-ugly/patches/001-no_docs.patch @@ -0,0 +1,24 @@ +diff -u --recursive gst-plugins-ugly-1.0.7
[OpenWrt-Devel] [PATCH 6/8] [packges] gstreamer1: update to 1.0.10
Signed-off-by: W. Michael Petullo m...@flyn.org --- multimedia/gstreamer1/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/multimedia/gstreamer1/Makefile b/multimedia/gstreamer1/Makefile index 2315415..2ad5958 100644 --- a/multimedia/gstreamer1/Makefile +++ b/multimedia/gstreamer1/Makefile @@ -8,13 +8,13 @@ include $(TOPDIR)/rules.mk PKG_NAME:=gstreamer1 -PKG_VERSION:=1.0.7 +PKG_VERSION:=1.0.10 PKG_RELEASE:=1 PKG_BUILD_DIR:=$(BUILD_DIR)/gstreamer-$(PKG_VERSION) PKG_SOURCE:=gstreamer-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gstreamer/ -PKG_MD5SUM:=8f6066a37c71a0d0ff5fe5f7687fea12 +PKG_MD5SUM:=fddc83a851f7c695bd667b7325455b47 PKG_FIXUP:=autoreconf PKG_REMOVE_FILES:=autogen.sh aclocal.m4 -- 1.8.4.2 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 8/8] [packges] gst1-plugins-good: fix some dependencies
Signed-off-by: W. Michael Petullo m...@flyn.org --- multimedia/gst1-plugins-good/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/multimedia/gst1-plugins-good/Makefile b/multimedia/gst1-plugins-good/Makefile index df923af..00d492b 100644 --- a/multimedia/gst1-plugins-good/Makefile +++ b/multimedia/gst1-plugins-good/Makefile @@ -160,15 +160,15 @@ $(eval $(call GstBuildPlugin,icydemux,icy demuxer,audio tag,,)) $(eval $(call GstBuildPlugin,interleave,audio interleave,audio,,)) $(eval $(call GstBuildPlugin,level,audio level,audio,,)) $(eval $(call GstBuildPlugin,audioparsers,audioparsers,audio tag,,)) -$(eval $(call GstBuildPlugin,multifile,multiple files access,,,)) +$(eval $(call GstBuildPlugin,multifile,multiple files access,video,,)) $(eval $(call GstBuildPlugin,multipart,multipart stream handling,,,)) $(eval $(call GstBuildPlugin,ossaudio,OSS audio support,audio,,)) $(eval $(call GstBuildPlugin,replaygain,volume normalization,pbutils,,)) -$(eval $(call GstBuildPlugin,rtp,RTP,audio rtp tag,,)) +$(eval $(call GstBuildPlugin,rtp,RTP,audio pbutils rtp tag video,,)) $(eval $(call GstBuildPlugin,rtsp,RTSP,rtp rtsp sdp,,)) $(eval $(call GstBuildPlugin,souphttpsrc,soup input,audio tag,,+libsoup)) $(eval $(call GstBuildPlugin,spectrum,spectrum data output,audio fft,,)) -$(eval $(call GstBuildPlugin,udp,UDP,,,)) +$(eval $(call GstBuildPlugin,udp,UDP,net,,)) $(eval $(call GstBuildPlugin,wavenc,Wav encoder,riff,,)) $(eval $(call GstBuildPlugin,wavparse,Wav parser,audio riff tag,,)) -- 1.8.4.2 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 001/005] [packages] gstreamer1: Add a new gstreamer1 package
From 3d62dc179887b6ac1ad89af0ac85910cb0d4212d Mon Sep 17 00:00:00 2001 From: W. Michael Petullo m...@flyn.org Date: Sun, 17 Nov 2013 17:02:34 -0500 Subject: [PATCH 1/5] Add a GStreamer 1.0 package. Many applications are starting to require GStreamer 1.0, which is API-incompatible with GStreamer 0.10. The name gstreamer1 allows GStreamer 0.10 and 1.0 to coexist, in a manner similar to gtk1 and gtk2. Signed-off-by: W. Michael Petullo m...@flyn.org --- multimedia/gstreamer1/Makefile | 190 + multimedia/gstreamer1/patches/001-no_docs.patch| 37 multimedia/gstreamer1/patches/002-no_tests.patch | 39 + .../gstreamer1/patches/003-no_translations.patch | 48 ++ 4 files changed, 314 insertions(+) create mode 100644 multimedia/gstreamer1/Makefile create mode 100644 multimedia/gstreamer1/patches/001-no_docs.patch create mode 100644 multimedia/gstreamer1/patches/002-no_tests.patch create mode 100644 multimedia/gstreamer1/patches/003-no_translations.patch diff --git a/multimedia/gstreamer1/Makefile b/multimedia/gstreamer1/Makefile new file mode 100644 index 000..2315415 --- /dev/null +++ b/multimedia/gstreamer1/Makefile @@ -0,0 +1,190 @@ +# +# Copyright (C) 2008-2012 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=gstreamer1 +PKG_VERSION:=1.0.10 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/gstreamer-$(PKG_VERSION) +PKG_SOURCE:=gstreamer-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gstreamer/ +PKG_MD5SUM:=fddc83a851f7c695bd667b7325455b47 + +PKG_FIXUP:=autoreconf +PKG_REMOVE_FILES:=autogen.sh aclocal.m4 + +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk + +define Package/gstreamer1/Default + CATEGORY:=Multimedia + SECTION:=multimedia + TITLE:=GStreamer + URL:=http://gstreamer.freedesktop.org/ +endef + +define Package/gstreamer1/description/Default + GStreamer open source multimedia framework +endef + + +define Package/gstreamer1 +$(call Package/gstreamer1/Default) + TITLE+= framework + DEPENDS+= +libgstreamer1 \ + +libgst1check \ + +libgst1controller \ + +libgst1net +endef + +define Package/gstreamer1/description +$(call Package/gstreamer1/description/Default) + . + This meta package contains only dependencies on the other GStreamer + componenents. +endef + + +define Package/gstreamer1-utils +$(call Package/gstreamer1/Default) + TITLE+= utilities + DEPENDS+= +libgstreamer1 +endef + +define Package/gstreamer1-utils/description +$(call Package/gstreamer1/description/Default) + . + This package contains the GStreamer utilities. +endef + + +define Package/libgstreamer1 +$(call Package/gstreamer1/Default) + TITLE+= library (core) + DEPENDS+= +glib2 +libpthread +libxml2 +endef + +define Package/libgstreamer1/description +$(call Package/gstreamer1/description/Default) + . + This package contains the GStreamer core library. +endef + + +GST_VERSION:=1.0 + +CONFIGURE_ARGS += \ + --enable-static \ + --disable-examples \ + --disable-tests \ + --disable-valgrind \ + --without-libiconv-prefix \ + --without-libintl-prefix \ + --without-x \ + +EXTRA_LDFLAGS+= \ + -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ + -L$(ICONV_PREFIX)/lib -L$(INTL_PREFIX)/lib + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include/gstreamer-$(GST_VERSION) + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/include/gstreamer-$(GST_VERSION)/* \ + $(1)/usr/include/gstreamer-$(GST_VERSION)/ \ + ) + $(INSTALL_DIR) $(1)/usr/lib + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/libgst*-$(GST_VERSION).{a,la,so*} \ + $(1)/usr/lib/ \ + ) + $(INSTALL_DIR) $(1)/usr/lib/gstreamer-$(GST_VERSION) + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/gstreamer-$(GST_VERSION)/libgst*.{la,so} \ + $(1)/usr/lib/gstreamer-$(GST_VERSION)/ \ + ) + $(INSTALL_DIR) $(1)/usr/lib/pkgconfig + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/pkgconfig/gstreamer*-$(GST_VERSION).pc \ + $(1)/usr/lib/pkgconfig/ \ + ) + $(INSTALL_DIR) $(2)/share/aclocal + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/share/aclocal/* \ + $(2)/share/aclocal/ \ + ) +endef + +define Package/gstreamer1/install + /bin/true +endef + +define Package/gstreamer1-utils/install + $(INSTALL_DIR) $(1)/usr/bin + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/bin/gst-launch* \ + ./usr/bin/gst-inspect* \ + ./usr/bin/gst-typefind* \ + $(1)/usr/bin/ \ + ) +endef + +define Package/libgstreamer1/install + $(INSTALL_DIR) $(1)/usr/lib + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib
[OpenWrt-Devel] [PATCH 002/005] [packages] gst1-plugins-base: Add a new gst1-plugins-base package
From e451c5bc0076daa294e34ea865f2ac5cd69bb9cf Mon Sep 17 00:00:00 2001 From: W. Michael Petullo m...@flyn.org Date: Sun, 17 Nov 2013 17:04:47 -0500 Subject: [PATCH 2/5] Add base plugins for GStreamer 1.0 Signed-off-by: W. Michael Petullo m...@flyn.org --- multimedia/gst1-plugins-base/Makefile | 237 + .../gst1-plugins-base/patches/001-no_docs.patch| 36 .../gst1-plugins-base/patches/002-no_tests.patch | 38 .../patches/003-no_translations.patch | 49 + 4 files changed, 360 insertions(+) create mode 100644 multimedia/gst1-plugins-base/Makefile create mode 100644 multimedia/gst1-plugins-base/patches/001-no_docs.patch create mode 100644 multimedia/gst1-plugins-base/patches/002-no_tests.patch create mode 100644 multimedia/gst1-plugins-base/patches/003-no_translations.patch diff --git a/multimedia/gst1-plugins-base/Makefile b/multimedia/gst1-plugins-base/Makefile new file mode 100644 index 000..270b67b --- /dev/null +++ b/multimedia/gst1-plugins-base/Makefile @@ -0,0 +1,237 @@ +# +# Copyright (C) 2008-2011 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=gst1-plugins-base +PKG_VERSION:=1.0.7 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/gst-plugins-base-$(PKG_VERSION) +PKG_SOURCE:=gst-plugins-base-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-base/ +PKG_MD5SUM:=b5b43cfbf82b413ce2e07a190d87e68f + +PKG_BUILD_DEPENDS:= gstreamer1 liboil +PKG_CONFIG_DEPENDS:= \ + CONFIG_PACKAGE_gst1-mod-alsa \ + CONFIG_PACKAGE_gst1-mod-app \ + CONFIG_PACKAGE_gst1-mod-audioconvert \ + CONFIG_PACKAGE_gst1-mod-audiorate \ + CONFIG_PACKAGE_gst1-mod-audioresample \ + CONFIG_PACKAGE_gst1-mod-audiotestsrc \ + CONFIG_PACKAGE_gst1-mod-gio \ + CONFIG_PACKAGE_gst1-mod-ogg \ + CONFIG_PACKAGE_gst1-mod-tcp \ + CONFIG_PACKAGE_gst1-mod-theora \ + CONFIG_PACKAGE_gst1-mod-videotestsrc \ + CONFIG_PACKAGE_gst1-mod-volume \ + CONFIG_PACKAGE_gst1-mod-vorbis \ + +PKG_FIXUP:=autoreconf +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk + +# -liconv crept in from pkg-config, to be revisited later +include $(INCLUDE_DIR)/nls.mk + +define Package/gstreamer1/Default + CATEGORY:=Multimedia + SECTION:=multimedia + TITLE:=GStreamer + URL:=http://gstreamer.freedesktop.org/ +endef + +define Package/gstreamer1/description/Default + GStreamer open source multimedia framework +endef + + +define Package/gst1-plugins-base +$(call Package/gstreamer1/Default) + TITLE+= plugins collection (base) + DEPENDS+= $(GST_DEPENDS) +endef + +define Package/gts1-plugins-base/description +$(call Package/gstreamer1/description/Default) + . + This meta package contains only dependencies to the other libraries and + plugins from the base plugins collection. +endef + + +GST_COND_SELECT = $(patsubst %,$(if $(CONFIG_PACKAGE_gst1-mod-$(1)),--enable,--disable)-%,$(1)) + +GST_VERSION:=1.0 + +CONFIGURE_ARGS += \ + --disable-debug \ + --disable-examples \ + \ + $(call GST_COND_SELECT,alsa) \ + --disable-alsa-test \ + $(call GST_COND_SELECT,app) \ + $(call GST_COND_SELECT,audioconvert) \ + $(call GST_COND_SELECT,audiorate) \ + $(call GST_COND_SELECT,audioresample) \ + $(call GST_COND_SELECT,audiotestsrc) \ + --disable-cdparanoia \ + --disable-ffmpegcolorspace \ + --disable-freetypetest \ + $(call GST_COND_SELECT,gio) \ + --disable-gnome_vfs \ + --disable-gst_v4l \ + --disable-libvisual \ + $(call GST_COND_SELECT,ogg) \ + --disable-oggtest \ + --disable-pango \ + --disable-subparse \ + $(call GST_COND_SELECT,tcp) \ + $(call GST_COND_SELECT,theora) \ + --disable-videorate \ + --disable-videoscale \ + $(call GST_COND_SELECT,videotestsrc) \ + $(call GST_COND_SELECT,volume) \ + $(call GST_COND_SELECT,vorbis) \ + --disable-vorbistest \ + --disable-x \ + --disable-xshm \ + --disable-xvideo \ + \ + --without-libiconv-prefix \ + --without-libintl-prefix \ + --without-x \ + \ + --with-audioresample-format=int \ + +EXTRA_LDFLAGS+= \ + -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ + + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include/gstreamer-$(GST_VERSION) + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/include/gstreamer-$(GST_VERSION)/* \ + $(1)/usr/include/gstreamer-$(GST_VERSION)/ \ + ) + $(INSTALL_DIR) $(1)/usr/lib + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/libgst*-$(GST_VERSION).{la,so*} \ + $(1)/usr/lib/ \ + ) + $(INSTALL_DIR) $(1)/usr/lib/gstreamer-$(GST_VERSION) + ( cd $(PKG_INSTALL_DIR); $(CP
[OpenWrt-Devel] [PATCH 003/005] [packages] gst1-plugins-good: Add a new gst1-plugins-good package
From 20804543858dda76874f12ebe8142f26e95088b4 Mon Sep 17 00:00:00 2001 From: W. Michael Petullo m...@flyn.org Date: Sun, 17 Nov 2013 17:05:18 -0500 Subject: [PATCH 3/5] Add good plugins for GStreamer 1.0 Signed-off-by: W. Michael Petullo m...@flyn.org --- multimedia/gst1-plugins-good/Makefile | 175 + .../gst1-plugins-good/patches/001-no_docs.patch| 22 +++ .../gst1-plugins-good/patches/002-no_tests.patch | 22 +++ .../patches/003-no_translations.patch | 33 4 files changed, 252 insertions(+) create mode 100644 multimedia/gst1-plugins-good/Makefile create mode 100644 multimedia/gst1-plugins-good/patches/001-no_docs.patch create mode 100644 multimedia/gst1-plugins-good/patches/002-no_tests.patch create mode 100644 multimedia/gst1-plugins-good/patches/003-no_translations.patch diff --git a/multimedia/gst1-plugins-good/Makefile b/multimedia/gst1-plugins-good/Makefile new file mode 100644 index 000..df923af --- /dev/null +++ b/multimedia/gst1-plugins-good/Makefile @@ -0,0 +1,175 @@ +## Copyright (C) 2009-2011 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=gst1-plugins-good +PKG_VERSION:=1.0.7 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/gst-plugins-good-$(PKG_VERSION) +PKG_SOURCE:=gst-plugins-good-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-good/ +PKG_MD5SUM:=e4b1c825475a9b478fe29e8e9f34516f + +PKG_BUILD_DEPENDS:= gstreamer1 gst1-plugins-base liboil + +PKG_FIXUP:=autoreconf +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk + +define Package/gstreamer1/Default + CATEGORY:=Multimedia + SECTION:=multimedia + TITLE:=GStreamer + URL:=http://gstreamer.freedesktop.org/ +endef + +define Package/gstreamer1/description/Default + GStreamer open source multimedia framework +endef + + +define Package/gst1-plugins-good +$(call Package/gstreamer1/Default) + TITLE+= plugins collection (good) + DEPENDS+= $(GST_DEPENDS) +endef + +define Package/gts-plugins-good/description +$(call Package/gstreamer1/description/Default) + . + This meta package contains only dependencies to the other plugins from + the good plugins collection. +endef + + +GST_VERSION:=1.0 + +CONFIGURE_ARGS += \ + --disable-debug \ + --disable-examples \ + \ + --disable-aalib \ + --disable-alpha \ + --disable-annodex \ + --disable-apetag \ + --disable-auparse \ + --disable-avi \ + --disable-bz2 \ + --disable-cairo \ + --disable-directsound \ + --disable-dv1394 \ + --disable-effectv \ + --disable-esd \ + --disable-flv \ + --disable-flx \ + --disable-gconf \ + --disable-gconftool \ + --disable-gdk_pixbuf \ + --disable-goom \ + --disable-goom2k1 \ + --disable-gst_v4l2 \ + --disable-hal \ + --disable-jpeg \ + --disable-law \ + --disable-libcaca \ + --disable-libdv \ + --disable-libpng \ + --disable-matroska \ + --disable-monoscope \ + --disable-osx_audio \ + --disable-osx_video \ + --disable-pulse \ + --disable-qtdemux \ + --disable-rtspmanager \ + --disable-smpte \ + --disable-shout2 \ + --disable-speex \ + --disable-sunaudio \ + --disable-taglib \ + --disable-videobox \ + --disable-videocrop \ + --disable-videofilter \ + --disable-videomixer \ + --disable-wavpack \ + --disable-x \ + --disable-xshm \ + --disable-xvideo \ + --disable-y4m \ + --disable-zlib \ + \ + --without-libiconv-prefix \ + --without-libintl-prefix \ + --without-x \ + +EXTRA_LDFLAGS+= \ + -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ + + +define Package/gst1-plugins-good/install + /bin/true +endef + + +# 1: short name +# 2: description +# 3: dependencies on other gstreamer libraries (short name) +# 4: dependencies on other gstreamer plugins (short name) +# 5: dependencies on other packages +define GstBuildPlugin + + GST_DEPENDS += +gst1-mod-$(1) + + define Package/gst1-mod-$(1) +$(call Package/gstreamer1/Default) +TITLE+= $(2) plugin (good) +DEPENDS+= +libgstreamer1 $$(foreach p,$(3),+libgst1$$(p)) $$(foreach p,$(4),+gst1-mod-$$(p)) $(5) + endef + + define Package/gst1-mod-$(1)/description + $(call Package/gstreamer1/description/Default) + . + This package contains the GStreamer $(2) plugin. + endef + + define Package/gst1-mod-$(1)/install + $(INSTALL_DIR) $$(1)/usr/lib/gstreamer-$(GST_VERSION) + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/gstreamer-$(GST_VERSION)/libgst$(1).so* \ + $$(1)/usr/lib/gstreamer-$(GST_VERSION)/ \ + ) + endef + + $$(eval $$(call BuildPackage,gst1-mod-$(1))) +endef + +$(eval $(call
[OpenWrt-Devel] [PATCH 004/005] [packages] gst1-plugins-bad: Add a new gst1-plugins-bad package
From 1e40dce27fe5e4ca52d1ffb665c3dfe6eef1310b Mon Sep 17 00:00:00 2001 From: W. Michael Petullo m...@flyn.org Date: Sun, 17 Nov 2013 17:06:27 -0500 Subject: [PATCH 4/5] Add bad plugins for GStreamer 1.0 Signed-off-by: W. Michael Petullo m...@flyn.org --- multimedia/gst1-plugins-bad/Makefile | 253 + .../gst1-plugins-bad/patches/000-gettext.patch | 45 2 files changed, 298 insertions(+) create mode 100644 multimedia/gst1-plugins-bad/Makefile create mode 100644 multimedia/gst1-plugins-bad/patches/000-gettext.patch diff --git a/multimedia/gst1-plugins-bad/Makefile b/multimedia/gst1-plugins-bad/Makefile new file mode 100644 index 000..3707973 --- /dev/null +++ b/multimedia/gst1-plugins-bad/Makefile @@ -0,0 +1,253 @@ +# +# Copyright (C) 2011 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=gst1-plugins-bad +PKG_VERSION:=1.0.7 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/gst-plugins-bad-$(PKG_VERSION) +PKG_SOURCE:=gst-plugins-bad-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-bad/ +PKG_MD5SUM:=d1493d1219b836a8cbf54f4fba962420 + +PKG_BUILD_DEPENDS:= gstreamer1 gst1-plugins-base liboil + +PKG_FIXUP:=autoreconf +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk + +define Package/gstreamer1/Default + CATEGORY:=Multimedia + SECTION:=multimedia + TITLE:=GStreamer + URL:=http://gstreamer.freedesktop.org/ +endef + +define Package/gstreamer1/description/Default + GStreamer open source multimedia framework +endef + + +define Package/gst1-plugins-bad +$(call Package/gstreamer1/Default) + TITLE+= plugins collection (bad) + DEPENDS+= $(GST_DEPENDS) +endef + +define Package/gts1-plugins-bad/description +$(call Package/gstreamer1/description/Default) + . + This meta package contains only dependencies to the other plugins from + the bad plugins collection. +endef + + +GST_VERSION:=1.0 + +CONFIGURE_ARGS += \ + --disable-debug \ + --disable-examples \ + --disable-nls \ + \ + --disable-directsound \ + --disable-directdraw \ + --disable-osx_video \ + --disable-quicktime \ + --disable-vcd \ + --disable-alsa \ + --disable-assrender \ + --disable-amrwb \ + --disable-apexsink \ + --disable-bz2 \ + --disable-cdaudio \ + --disable-celt \ + --disable-cog \ + --disable-dc1394 \ + --disable-directfb \ + --disable-dirac \ + --disable-dts \ + --disable-divx \ + --disable-resindvd \ + --disable-metadata \ + --disable-faac \ + --disable-faad \ + --disable-fbdev \ + --disable-flite \ + --disable-gsm \ + --disable-jack \ + --disable-jp2k \ + --disable-kate \ + --disable-ladspa \ + --disable-lv2 \ + --disable-modplug \ + --disable-mimic \ + --disable-libmms \ + --disable-mpeg2enc \ + --disable-mplex \ + --disable-musepack \ + --disable-musicbrainz \ + --disable-mythtv \ + --disable-nas \ + --disable-neon \ + --disable-ofa \ + --disable-rsvg \ + --disable-timidity \ + --disable-wildmidi \ + --disable-sdl \ + --disable-sdltest \ + --disable-sndfile \ + --disable-soundtouch \ + --disable-spc \ + --disable-gme \ + --disable-swfdec \ + --disable-theoradec \ + --disable-xvid \ + --disable-dvb \ + --disable-wininet \ + --disable-acm \ + --disable-vdpau \ + --disable-schro \ + --disable-zbar \ + --disable-vp8 \ + --disable-librfb \ + \ + --without-libiconv-prefix \ + --without-libintl-prefix \ + --without-x \ + +EXTRA_LDFLAGS+= \ + -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ + + +define Package/gst1-plugins-ugly/install + /bin/true +endef + +# 1: short name +# 2: description +# 3: dependencies on other gstreamer libraries (short name) +# 4: dependencies on other packages +define GstBuildLibrary + + GST_DEPENDS += +libgst1$(1) + + define Package/libgst1$(1) +$(call Package/gstreamer1/Default) +TITLE+= $(2) library (base) +DEPENDS+= +libgstreamer1 $$(foreach p,$(3),+libgst1$$(p)) $(4) + endef + + define Package/libgst1$(1)/description + $(call Package/gstreamer1/description/Default) + . + This package contains the GStreamer $(2) library. + endef + + define Package/libgst1$(1)/install + $(INSTALL_DIR) $$(1)/usr/lib + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/libgst$(1)-$(GST_VERSION).so.* \ + $$(1)/usr/lib/ \ + ) + endef + + $$(eval $$(call BuildPackage,libgst1$(1))) +endef +$(eval $(call GstBuildLibrary,photography,photography,,)) + + +# 1: short name +# 2: description +# 3: dependencies on other gstreamer
[OpenWrt-Devel] [PATCH 005/005] [packages] gst1-plugins-ugly: Add a new gst1-plugins-ugly package
From 5562f9e22d7c930ae34c2e0ac1d14b431c134d1a Mon Sep 17 00:00:00 2001 From: W. Michael Petullo m...@flyn.org Date: Sun, 17 Nov 2013 17:07:03 -0500 Subject: [PATCH 5/5] Add ugly plugins for GStreamer 1.0 Signed-off-by: W. Michael Petullo m...@flyn.org --- multimedia/gst1-plugins-ugly/Makefile | 135 + .../gst1-plugins-ugly/patches/001-no_docs.patch| 24 .../gst1-plugins-ugly/patches/002-no_tests.patch | 24 .../patches/003-no_translations.patch | 35 ++ 4 files changed, 218 insertions(+) create mode 100644 multimedia/gst1-plugins-ugly/Makefile create mode 100644 multimedia/gst1-plugins-ugly/patches/001-no_docs.patch create mode 100644 multimedia/gst1-plugins-ugly/patches/002-no_tests.patch create mode 100644 multimedia/gst1-plugins-ugly/patches/003-no_translations.patch diff --git a/multimedia/gst1-plugins-ugly/Makefile b/multimedia/gst1-plugins-ugly/Makefile new file mode 100644 index 000..2346ecc --- /dev/null +++ b/multimedia/gst1-plugins-ugly/Makefile @@ -0,0 +1,135 @@ +# +# Copyright (C) 2009-2011 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=gst1-plugins-ugly +PKG_VERSION:=1.0.7 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/gst-plugins-ugly-$(PKG_VERSION) +PKG_SOURCE:=gst-plugins-ugly-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-ugly/ +PKG_MD5SUM:=8754edf6c3be235f232fb75ad11708bb + +PKG_BUILD_DEPENDS:= gstreamer1 gst1-plugins-base liboil +PKG_CONFIG_DEPENDS:= \ + CONFIG_PACKAGE_gst1-mod-asf \ + CONFIG_PACKAGE_gst1-mod-lame \ + CONFIG_PACKAGE_gst1-mod-mad \ + CONFIG_PACKAGE_gst1-mod-mpeg2dec \ + +PKG_FIXUP:=autoreconf +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk + +define Package/gstreamer1/Default + CATEGORY:=Multimedia + SECTION:=multimedia + TITLE:=GStreamer + URL:=http://gstreamer.freedesktop.org/ +endef + +define Package/gstreamer1/description/Default + GStreamer open source multimedia framework +endef + + +define Package/gst1-plugins-ugly +$(call Package/gstreamer1/Default) + TITLE+= plugins collection (ugly) + DEPENDS+= $(GST_DEPENDS) +endef + +define Package/gts-plugins-ugly/description +$(call Package/gstreamer1/description/Default) + . + This meta package contains only dependencies to the other plugins from + the ugly plugins collection. +endef + + +GST_COND_SELECT = $(patsubst %,$(if $(CONFIG_PACKAGE_gst1-mod-$(1)),--enable,--disable)-%,$(1)) + +GST_VERSION:=1.0 + +CONFIGURE_ARGS += \ + --disable-debug \ + --disable-examples \ + \ + --disable-a52dec \ + --disable-amrnb \ + --disable-amrwb \ + $(call GST_COND_SELECT,asf) \ + --disable-cdio \ + --disable-dvdlpcmdec \ + --disable-dvdread \ + --disable-dvdsub \ + --disable-iec958 \ + $(call GST_COND_SELECT,lame) \ + $(call GST_COND_SELECT,mad) \ + $(call GST_COND_SELECT,mpeg2dec) \ + --disable-mpegaudioparse \ + --disable-mpegstream \ + --disable-realmedia \ + --disable-sidplay \ + --disable-synaesthesia \ + --disable-twolame \ + --disable-x264 \ + \ + --without-libiconv-prefix \ + --without-libintl-prefix \ + +EXTRA_LDFLAGS+= \ + -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ + + +define Package/gst1-plugins-ugly/install + /bin/true +endef + + +# 1: short name +# 2: description +# 3: dependencies on other gstreamer libraries (short name) +# 4: dependencies on other gstreamer plugins (short name) +# 5: dependencies on other packages +define GstBuildPlugin + + GST_DEPENDS += +gst1-mod-$(1) + + define Package/gst1-mod-$(1) +$(call Package/gstreamer1/Default) +TITLE+= $(2) plugin (ugly) +DEPENDS+= +libgstreamer1 $$(foreach p,$(3),+libgst1$$(p)) $$(foreach p,$(4),+gst1-mod-$$(p)) $(5) + endef + + define Package/gst1-mod-$(1)/description + $(call Package/gstreamer1/description/Default) + . + This package contains the GStreamer $(2) plugin. + endef + + define Package/gst1-mod-$(1)/install + $(INSTALL_DIR) $$(1)/usr/lib/gstreamer-$(GST_VERSION) + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/gstreamer-$(GST_VERSION)/libgst$(1).so* \ + $$(1)/usr/lib/gstreamer-$(GST_VERSION)/ \ + ) + endef + + $$(eval $$(call BuildPackage,gst1-mod-$(1))) +endef + +$(eval $(call GstBuildPlugin,asf,ASF demuxer,audio riff rtp rtsp sdp tag,,)) +$(eval $(call GstBuildPlugin,lame,MP3 encoder (using LAME),audio,,+lame-lib)) +$(eval $(call GstBuildPlugin,mad,MP3 decoder (using MAD),audio tag,,+libid3tag +libmad)) +$(eval $(call GstBuildPlugin,mpeg2dec,MPEG decoder,video,,+libmpeg2)) + +$(eval $(call BuildPackage,gst1-plugins-ugly)) diff --git a/multimedia/gst1-plugins-ugly/patches/001-no_docs.patch b/multimedia/gst1-plugins-ugly
[OpenWrt-Devel] Missing libiconv?
Why are the libiconv and libiconv-full packages not present in packages master? Has anyone had success building glib2 in packages master? My build fails with: [...] checking for libiconv_open in -liconv... no configure: error: *** No iconv() implementation found in C library or libiconv Thanks, -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Volunteer to maintain packages
I would like to volunteer to maintain some OpenWrt packages. https://dev.openwrt.org/wiki/packages lists me as maintaining: db47 dmapd krb5 netatalk openldap However, I no longer seem to have write access to the package repository. Additionally, I would like to maintain: glib2 gstreamer1 gst1-plugins-bad gst1-plugins-base gst1-plugins-good gst1-plugins-ugly libdmapsharing mdnsresponder vips I have submitted patches to update (or create, as in the case of gstreamer1 and gst1*) these packages, but no one has responded to my submissions. You can find my patches in the mailing list archives, beginning with the subject of [PATCH 001/009] [packages] libffi: Modify to support glib2 2.32 build. Who should I contact to request write access to these packages' source trees? Thank you, -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH 001/009] [packages] libffi: Modify to support glib2 2.32 build (attempt #3)
From: W. Michael Petullo m...@flyn.org Glib 2.32+ requires libffi, so the libffi Makefile needs to call HostBuild. [...] Is there any reason these patches are not being acknowledged? Have I been improperly submitting them? -- Mike :wq ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 001/009] [packages] libffi: Modify to support glib2 2.32 build (attempt #3)
From: W. Michael Petullo m...@flyn.org Glib 2.32+ requires libffi, so the libffi Makefile needs to call HostBuild. Signed-off-by: W. Michael Petullo m...@flyn.org --- libs/libffi/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/libffi/Makefile b/libs/libffi/Makefile index e6bd7a6..e0b04ca 100644 --- a/libs/libffi/Makefile +++ b/libs/libffi/Makefile @@ -18,6 +18,7 @@ PKG_MD5SUM:=79390673f5d07a8fb342bc09b5055b6f PKG_FIXUP:=autoreconf PKG_INSTALL:=1 +include $(INCLUDE_DIR)/host-build.mk include $(INCLUDE_DIR)/package.mk define Package/libffi @@ -71,4 +72,5 @@ define Package/libffi/install $(1)/usr/lib/ endef +$(eval $(call HostBuild)) $(eval $(call BuildPackage,libffi)) -- 1.8.3.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 002/009] [packages] glib2: Bump to 2.36.3 (attempt #3)
From: W. Michael Petullo m...@flyn.org Bump glib2 to 2.36.3. Signed-off-by: W. Michael Petullo m...@flyn.org --- libs/glib2/Makefile| 18 ++--- libs/glib2/patches/001-automake-compat.patch | 12 .../patches/002-missing-gthread-include.patch | 10 --- libs/glib2/patches/010-move-iconv-to-libs.patch| 7 +- .../patches/020-no-docs-tests-translations.patch | 84 ++ 5 files changed, 50 insertions(+), 81 deletions(-) delete mode 100644 libs/glib2/patches/001-automake-compat.patch delete mode 100644 libs/glib2/patches/002-missing-gthread-include.patch diff --git a/libs/glib2/Makefile b/libs/glib2/Makefile index 21a7426..a64f8a0 100644 --- a/libs/glib2/Makefile +++ b/libs/glib2/Makefile @@ -8,17 +8,19 @@ include $(TOPDIR)/rules.mk PKG_NAME:=glib2 -PKG_VERSION:=2.26.1 -PKG_RELEASE:=3 +PKG_VERSION:=2.36.3 +PKG_RELEASE:=1 -PKG_SOURCE:=glib-$(PKG_VERSION).tar.bz2 +PKG_SOURCE:=glib-$(PKG_VERSION).tar.xz PKG_BUILD_DIR:=$(BUILD_DIR)/glib-$(PKG_VERSION) -PKG_SOURCE_URL:=@GNOME/glib/2.26 -PKG_MD5SUM:=17535accceef55bcb17a74d73f9c2aef +PKG_SOURCE_URL:=@GNOME/glib/2.36 +PKG_SHA256SUM:=5ec433bf6ce02e4c436619c3d0b9cecdd1898469398a636bad27c1f5804c761e PKG_FIXUP:=autoreconf -PKG_BUILD_DEPENDS:=glib2/host libpthread zlib libintl -HOST_BUILD_DEPENDS:=gettext/host libiconv/host +PKG_BUILD_DEPENDS:=glib2/host +# Note that this uses the libintl/libiconv stubs for the host build regardless +# of BUILD_NLS. +HOST_BUILD_DEPENDS:=libintl/host libiconv/host libffi/host PKG_INSTALL:=1 HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/glib-$(PKG_VERSION) @@ -30,7 +32,7 @@ include $(INCLUDE_DIR)/nls.mk define Package/glib2 SECTION:=libs CATEGORY:=Libraries - DEPENDS:=$(ICONV_DEPENDS) $(INTL_DEPENDS) +zlib +libpthread + DEPENDS:=$(ICONV_DEPENDS) $(INTL_DEPENDS) +zlib +libpthread +libffi TITLE:=glib 2.0 URL:=http://www.gtk.org/ endef diff --git a/libs/glib2/patches/001-automake-compat.patch b/libs/glib2/patches/001-automake-compat.patch deleted file mode 100644 index aa6833a..000 --- a/libs/glib2/patches/001-automake-compat.patch +++ /dev/null @@ -1,12 +0,0 @@ a/configure.ac -+++ b/configure.ac -@@ -2741,7 +2741,8 @@ dnl ** - dnl *** Checks for gtk-doc *** - dnl ** - --GTK_DOC_CHECK([1.15]) -+AM_CONDITIONAL([ENABLE_GTK_DOC], [false]) -+AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [false]) - - AC_ARG_ENABLE(man, - [AC_HELP_STRING([--enable-man], diff --git a/libs/glib2/patches/002-missing-gthread-include.patch b/libs/glib2/patches/002-missing-gthread-include.patch deleted file mode 100644 index 8def409..000 --- a/libs/glib2/patches/002-missing-gthread-include.patch +++ /dev/null @@ -1,10 +0,0 @@ a/glib/gatomic.c -+++ b/glib/gatomic.c -@@ -881,6 +881,7 @@ g_atomic_pointer_compare_and_exchange (v - #endif /* DEFINE_WITH_WIN32_INTERLOCKED */ - - #ifdef DEFINE_WITH_MUTEXES -+#include gthread.h - /* We have to use the slow, but safe locking method */ - static GMutex *g_atomic_mutex; - diff --git a/libs/glib2/patches/010-move-iconv-to-libs.patch b/libs/glib2/patches/010-move-iconv-to-libs.patch index 89b3fea..2b44b73 100644 --- a/libs/glib2/patches/010-move-iconv-to-libs.patch +++ b/libs/glib2/patches/010-move-iconv-to-libs.patch @@ -1,10 +1,11 @@ --- a/glib-2.0.pc.in +++ b/glib-2.0.pc.in -@@ -10,6 +10,5 @@ glib_mkenums=glib-mkenums - Name: GLib +@@ -11,6 +11,6 @@ Name: GLib Description: C Utility Library Version: @VERSION@ + Requires.private: @PCRE_REQUIRES@ -Libs: -L${libdir} -lglib-2.0 @INTLLIBS@ --Libs.private: @ICONV_LIBS@ +-Libs.private: @G_THREAD_LIBS@ @G_LIBS_EXTRA@ @PCRE_LIBS@ @INTLLIBS@ @ICONV_LIBS@ +Libs: -L${libdir} -lglib-2.0 @INTLLIBS@ @ICONV_LIBS@ ++Libs.private: @G_THREAD_LIBS@ @G_LIBS_EXTRA@ @PCRE_LIBS@ Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include @GLIB_EXTRA_CFLAGS@ diff --git a/libs/glib2/patches/020-no-docs-tests-translations.patch b/libs/glib2/patches/020-no-docs-tests-translations.patch index 0460640..451b727 100644 --- a/libs/glib2/patches/020-no-docs-tests-translations.patch +++ b/libs/glib2/patches/020-no-docs-tests-translations.patch @@ -1,9 +1,10 @@ a/configure.ac -+++ b/configure.ac -@@ -3737,18 +3737,6 @@ gio/fen/Makefile - gio/fam/Makefile - gio/win32/Makefile - gio/tests/Makefile +diff -u --recursive glib-2.36.3-vanilla/configure.ac glib-2.36.3/configure.ac +--- glib-2.36.3-vanilla/configure.ac 2013-07-13 15:22:04.363505081 -0400 glib-2.36.3/configure.ac 2013-07-13 15:25:42.463804445 -0400 +@@ -3710,19 +3710,6 @@ + gio/tests/gdbus-object-manager-example/Makefile + gio/tests/services/Makefile + gio/tests/services/org.gtk.GDBus.Examples.ObjectManager.service -po/Makefile.in -docs/Makefile -docs/reference/Makefile @@ -12,6 +13,7 @@ -docs/reference/gobject/Makefile -docs/reference/gobject/version.xml -docs/reference/gio/Makefile +-docs/reference/gio/gdbus-object-manager-example/Makefile -docs
[OpenWrt-Devel] [PATCH 003/009] [packages] gstreamer1: Add a new gstreamer1 package (attempt #3)
From: W. Michael Petullo m...@flyn.org Many applications are starting to require GStreamer 1.0, which is API-incompatible with GStreamer 0.10. The name gstreamer1 allows GStreamer 0.10 and 1.0 to coexist, in a manner similar to gtk1 and gtk2. Signed-off-by: W. Michael Petullo m...@flyn.org --- multimedia/gstreamer1/Makefile | 190 + multimedia/gstreamer1/patches/001-no_docs.patch| 37 multimedia/gstreamer1/patches/002-no_tests.patch | 39 + .../gstreamer1/patches/003-no_translations.patch | 48 ++ 4 files changed, 314 insertions(+) create mode 100644 multimedia/gstreamer1/Makefile create mode 100644 multimedia/gstreamer1/patches/001-no_docs.patch create mode 100644 multimedia/gstreamer1/patches/002-no_tests.patch create mode 100644 multimedia/gstreamer1/patches/003-no_translations.patch diff --git a/multimedia/gstreamer1/Makefile b/multimedia/gstreamer1/Makefile new file mode 100644 index 000..2315415 --- /dev/null +++ b/multimedia/gstreamer1/Makefile @@ -0,0 +1,190 @@ +# +# Copyright (C) 2008-2012 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=gstreamer1 +PKG_VERSION:=1.0.7 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/gstreamer-$(PKG_VERSION) +PKG_SOURCE:=gstreamer-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gstreamer/ +PKG_MD5SUM:=8f6066a37c71a0d0ff5fe5f7687fea12 + +PKG_FIXUP:=autoreconf +PKG_REMOVE_FILES:=autogen.sh aclocal.m4 + +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk + +define Package/gstreamer1/Default + CATEGORY:=Multimedia + SECTION:=multimedia + TITLE:=GStreamer + URL:=http://gstreamer.freedesktop.org/ +endef + +define Package/gstreamer1/description/Default + GStreamer open source multimedia framework +endef + + +define Package/gstreamer1 +$(call Package/gstreamer1/Default) + TITLE+= framework + DEPENDS+= +libgstreamer1 \ + +libgst1check \ + +libgst1controller \ + +libgst1net +endef + +define Package/gstreamer1/description +$(call Package/gstreamer1/description/Default) + . + This meta package contains only dependencies on the other GStreamer + componenents. +endef + + +define Package/gstreamer1-utils +$(call Package/gstreamer1/Default) + TITLE+= utilities + DEPENDS+= +libgstreamer1 +endef + +define Package/gstreamer1-utils/description +$(call Package/gstreamer1/description/Default) + . + This package contains the GStreamer utilities. +endef + + +define Package/libgstreamer1 +$(call Package/gstreamer1/Default) + TITLE+= library (core) + DEPENDS+= +glib2 +libpthread +libxml2 +endef + +define Package/libgstreamer1/description +$(call Package/gstreamer1/description/Default) + . + This package contains the GStreamer core library. +endef + + +GST_VERSION:=1.0 + +CONFIGURE_ARGS += \ + --enable-static \ + --disable-examples \ + --disable-tests \ + --disable-valgrind \ + --without-libiconv-prefix \ + --without-libintl-prefix \ + --without-x \ + +EXTRA_LDFLAGS+= \ + -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ + -L$(ICONV_PREFIX)/lib -L$(INTL_PREFIX)/lib + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include/gstreamer-$(GST_VERSION) + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/include/gstreamer-$(GST_VERSION)/* \ + $(1)/usr/include/gstreamer-$(GST_VERSION)/ \ + ) + $(INSTALL_DIR) $(1)/usr/lib + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/libgst*-$(GST_VERSION).{a,la,so*} \ + $(1)/usr/lib/ \ + ) + $(INSTALL_DIR) $(1)/usr/lib/gstreamer-$(GST_VERSION) + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/gstreamer-$(GST_VERSION)/libgst*.{la,so} \ + $(1)/usr/lib/gstreamer-$(GST_VERSION)/ \ + ) + $(INSTALL_DIR) $(1)/usr/lib/pkgconfig + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/pkgconfig/gstreamer*-$(GST_VERSION).pc \ + $(1)/usr/lib/pkgconfig/ \ + ) + $(INSTALL_DIR) $(2)/share/aclocal + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/share/aclocal/* \ + $(2)/share/aclocal/ \ + ) +endef + +define Package/gstreamer1/install + /bin/true +endef + +define Package/gstreamer1-utils/install + $(INSTALL_DIR) $(1)/usr/bin + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/bin/gst-launch* \ + ./usr/bin/gst-inspect* \ + ./usr/bin/gst-typefind* \ + $(1)/usr/bin/ \ + ) +endef + +define Package/libgstreamer1/install + $(INSTALL_DIR) $(1)/usr/lib + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/libgstbase-$(GST_VERSION).so.* \ + ./usr/lib/libgstreamer-$(GST_VERSION).so.* \ + $(1)/usr/lib/ \ + ) + $(INSTALL_DIR) $(1)/usr
[OpenWrt-Devel] [PATCH 004/009] [packages] gst1-plugins-base: Add a new gst1-plugins-base package (attempt #3)
From: W. Michael Petullo m...@flyn.org Base plugins for GStreamer 1.0. Signed-off-by: W. Michael Petullo m...@flyn.org --- multimedia/gst1-plugins-base/Makefile | 237 + .../gst1-plugins-base/patches/001-no_docs.patch| 36 .../gst1-plugins-base/patches/002-no_tests.patch | 38 .../patches/003-no_translations.patch | 49 + 4 files changed, 360 insertions(+) create mode 100644 multimedia/gst1-plugins-base/Makefile create mode 100644 multimedia/gst1-plugins-base/patches/001-no_docs.patch create mode 100644 multimedia/gst1-plugins-base/patches/002-no_tests.patch create mode 100644 multimedia/gst1-plugins-base/patches/003-no_translations.patch diff --git a/multimedia/gst1-plugins-base/Makefile b/multimedia/gst1-plugins-base/Makefile new file mode 100644 index 000..270b67b --- /dev/null +++ b/multimedia/gst1-plugins-base/Makefile @@ -0,0 +1,237 @@ +# +# Copyright (C) 2008-2011 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=gst1-plugins-base +PKG_VERSION:=1.0.7 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/gst-plugins-base-$(PKG_VERSION) +PKG_SOURCE:=gst-plugins-base-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-base/ +PKG_MD5SUM:=b5b43cfbf82b413ce2e07a190d87e68f + +PKG_BUILD_DEPENDS:= gstreamer1 liboil +PKG_CONFIG_DEPENDS:= \ + CONFIG_PACKAGE_gst1-mod-alsa \ + CONFIG_PACKAGE_gst1-mod-app \ + CONFIG_PACKAGE_gst1-mod-audioconvert \ + CONFIG_PACKAGE_gst1-mod-audiorate \ + CONFIG_PACKAGE_gst1-mod-audioresample \ + CONFIG_PACKAGE_gst1-mod-audiotestsrc \ + CONFIG_PACKAGE_gst1-mod-gio \ + CONFIG_PACKAGE_gst1-mod-ogg \ + CONFIG_PACKAGE_gst1-mod-tcp \ + CONFIG_PACKAGE_gst1-mod-theora \ + CONFIG_PACKAGE_gst1-mod-videotestsrc \ + CONFIG_PACKAGE_gst1-mod-volume \ + CONFIG_PACKAGE_gst1-mod-vorbis \ + +PKG_FIXUP:=autoreconf +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk + +# -liconv crept in from pkg-config, to be revisited later +include $(INCLUDE_DIR)/nls.mk + +define Package/gstreamer1/Default + CATEGORY:=Multimedia + SECTION:=multimedia + TITLE:=GStreamer + URL:=http://gstreamer.freedesktop.org/ +endef + +define Package/gstreamer1/description/Default + GStreamer open source multimedia framework +endef + + +define Package/gst1-plugins-base +$(call Package/gstreamer1/Default) + TITLE+= plugins collection (base) + DEPENDS+= $(GST_DEPENDS) +endef + +define Package/gts1-plugins-base/description +$(call Package/gstreamer1/description/Default) + . + This meta package contains only dependencies to the other libraries and + plugins from the base plugins collection. +endef + + +GST_COND_SELECT = $(patsubst %,$(if $(CONFIG_PACKAGE_gst1-mod-$(1)),--enable,--disable)-%,$(1)) + +GST_VERSION:=1.0 + +CONFIGURE_ARGS += \ + --disable-debug \ + --disable-examples \ + \ + $(call GST_COND_SELECT,alsa) \ + --disable-alsa-test \ + $(call GST_COND_SELECT,app) \ + $(call GST_COND_SELECT,audioconvert) \ + $(call GST_COND_SELECT,audiorate) \ + $(call GST_COND_SELECT,audioresample) \ + $(call GST_COND_SELECT,audiotestsrc) \ + --disable-cdparanoia \ + --disable-ffmpegcolorspace \ + --disable-freetypetest \ + $(call GST_COND_SELECT,gio) \ + --disable-gnome_vfs \ + --disable-gst_v4l \ + --disable-libvisual \ + $(call GST_COND_SELECT,ogg) \ + --disable-oggtest \ + --disable-pango \ + --disable-subparse \ + $(call GST_COND_SELECT,tcp) \ + $(call GST_COND_SELECT,theora) \ + --disable-videorate \ + --disable-videoscale \ + $(call GST_COND_SELECT,videotestsrc) \ + $(call GST_COND_SELECT,volume) \ + $(call GST_COND_SELECT,vorbis) \ + --disable-vorbistest \ + --disable-x \ + --disable-xshm \ + --disable-xvideo \ + \ + --without-libiconv-prefix \ + --without-libintl-prefix \ + --without-x \ + \ + --with-audioresample-format=int \ + +EXTRA_LDFLAGS+= \ + -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ + + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include/gstreamer-$(GST_VERSION) + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/include/gstreamer-$(GST_VERSION)/* \ + $(1)/usr/include/gstreamer-$(GST_VERSION)/ \ + ) + $(INSTALL_DIR) $(1)/usr/lib + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/libgst*-$(GST_VERSION).{la,so*} \ + $(1)/usr/lib/ \ + ) + $(INSTALL_DIR) $(1)/usr/lib/gstreamer-$(GST_VERSION) + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/gstreamer-$(GST_VERSION)/libgst*.{la,so} \ + $(1)/usr/lib/gstreamer-$(GST_VERSION
[OpenWrt-Devel] [PATCH 005/009] [packages] gst1-plugins-good: Add a new gst1-plugins-good package (attempt #3)
From: W. Michael Petullo m...@flyn.org Good plugins for GStreamer 1.0. Signed-off-by: W. Michael Petullo m...@flyn.org --- multimedia/gst1-plugins-good/Makefile | 175 + .../gst1-plugins-good/patches/001-no_docs.patch| 22 +++ .../gst1-plugins-good/patches/002-no_tests.patch | 22 +++ .../patches/003-no_translations.patch | 33 4 files changed, 252 insertions(+) create mode 100644 multimedia/gst1-plugins-good/Makefile create mode 100644 multimedia/gst1-plugins-good/patches/001-no_docs.patch create mode 100644 multimedia/gst1-plugins-good/patches/002-no_tests.patch create mode 100644 multimedia/gst1-plugins-good/patches/003-no_translations.patch diff --git a/multimedia/gst1-plugins-good/Makefile b/multimedia/gst1-plugins-good/Makefile new file mode 100644 index 000..df923af --- /dev/null +++ b/multimedia/gst1-plugins-good/Makefile @@ -0,0 +1,175 @@ +## Copyright (C) 2009-2011 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=gst1-plugins-good +PKG_VERSION:=1.0.7 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/gst-plugins-good-$(PKG_VERSION) +PKG_SOURCE:=gst-plugins-good-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-good/ +PKG_MD5SUM:=e4b1c825475a9b478fe29e8e9f34516f + +PKG_BUILD_DEPENDS:= gstreamer1 gst1-plugins-base liboil + +PKG_FIXUP:=autoreconf +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk + +define Package/gstreamer1/Default + CATEGORY:=Multimedia + SECTION:=multimedia + TITLE:=GStreamer + URL:=http://gstreamer.freedesktop.org/ +endef + +define Package/gstreamer1/description/Default + GStreamer open source multimedia framework +endef + + +define Package/gst1-plugins-good +$(call Package/gstreamer1/Default) + TITLE+= plugins collection (good) + DEPENDS+= $(GST_DEPENDS) +endef + +define Package/gts-plugins-good/description +$(call Package/gstreamer1/description/Default) + . + This meta package contains only dependencies to the other plugins from + the good plugins collection. +endef + + +GST_VERSION:=1.0 + +CONFIGURE_ARGS += \ + --disable-debug \ + --disable-examples \ + \ + --disable-aalib \ + --disable-alpha \ + --disable-annodex \ + --disable-apetag \ + --disable-auparse \ + --disable-avi \ + --disable-bz2 \ + --disable-cairo \ + --disable-directsound \ + --disable-dv1394 \ + --disable-effectv \ + --disable-esd \ + --disable-flv \ + --disable-flx \ + --disable-gconf \ + --disable-gconftool \ + --disable-gdk_pixbuf \ + --disable-goom \ + --disable-goom2k1 \ + --disable-gst_v4l2 \ + --disable-hal \ + --disable-jpeg \ + --disable-law \ + --disable-libcaca \ + --disable-libdv \ + --disable-libpng \ + --disable-matroska \ + --disable-monoscope \ + --disable-osx_audio \ + --disable-osx_video \ + --disable-pulse \ + --disable-qtdemux \ + --disable-rtspmanager \ + --disable-smpte \ + --disable-shout2 \ + --disable-speex \ + --disable-sunaudio \ + --disable-taglib \ + --disable-videobox \ + --disable-videocrop \ + --disable-videofilter \ + --disable-videomixer \ + --disable-wavpack \ + --disable-x \ + --disable-xshm \ + --disable-xvideo \ + --disable-y4m \ + --disable-zlib \ + \ + --without-libiconv-prefix \ + --without-libintl-prefix \ + --without-x \ + +EXTRA_LDFLAGS+= \ + -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ + + +define Package/gst1-plugins-good/install + /bin/true +endef + + +# 1: short name +# 2: description +# 3: dependencies on other gstreamer libraries (short name) +# 4: dependencies on other gstreamer plugins (short name) +# 5: dependencies on other packages +define GstBuildPlugin + + GST_DEPENDS += +gst1-mod-$(1) + + define Package/gst1-mod-$(1) +$(call Package/gstreamer1/Default) +TITLE+= $(2) plugin (good) +DEPENDS+= +libgstreamer1 $$(foreach p,$(3),+libgst1$$(p)) $$(foreach p,$(4),+gst1-mod-$$(p)) $(5) + endef + + define Package/gst1-mod-$(1)/description + $(call Package/gstreamer1/description/Default) + . + This package contains the GStreamer $(2) plugin. + endef + + define Package/gst1-mod-$(1)/install + $(INSTALL_DIR) $$(1)/usr/lib/gstreamer-$(GST_VERSION) + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/gstreamer-$(GST_VERSION)/libgst$(1).so* \ + $$(1)/usr/lib/gstreamer-$(GST_VERSION)/ \ + ) + endef + + $$(eval $$(call BuildPackage,gst1-mod-$(1))) +endef + +$(eval $(call GstBuildPlugin,audiofx,audio effects,audio fft controller,,)) +$(eval $(call GstBuildPlugin,autodetect,format auto-detection
[OpenWrt-Devel] [PATCH 006/009] [packages] gst1-plugins-bad: Add a new gst1-plugins-bad package (attempt #3)
From: W. Michael Petullo m...@flyn.org Bad plugins for GStreamer 1.0. Signed-off-by: W. Michael Petullo m...@flyn.org --- multimedia/gst1-plugins-bad/Makefile | 253 + .../gst1-plugins-bad/patches/000-gettext.patch | 45 2 files changed, 298 insertions(+) create mode 100644 multimedia/gst1-plugins-bad/Makefile create mode 100644 multimedia/gst1-plugins-bad/patches/000-gettext.patch diff --git a/multimedia/gst1-plugins-bad/Makefile b/multimedia/gst1-plugins-bad/Makefile new file mode 100644 index 000..3707973 --- /dev/null +++ b/multimedia/gst1-plugins-bad/Makefile @@ -0,0 +1,253 @@ +# +# Copyright (C) 2011 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=gst1-plugins-bad +PKG_VERSION:=1.0.7 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/gst-plugins-bad-$(PKG_VERSION) +PKG_SOURCE:=gst-plugins-bad-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-bad/ +PKG_MD5SUM:=d1493d1219b836a8cbf54f4fba962420 + +PKG_BUILD_DEPENDS:= gstreamer1 gst1-plugins-base liboil + +PKG_FIXUP:=autoreconf +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk + +define Package/gstreamer1/Default + CATEGORY:=Multimedia + SECTION:=multimedia + TITLE:=GStreamer + URL:=http://gstreamer.freedesktop.org/ +endef + +define Package/gstreamer1/description/Default + GStreamer open source multimedia framework +endef + + +define Package/gst1-plugins-bad +$(call Package/gstreamer1/Default) + TITLE+= plugins collection (bad) + DEPENDS+= $(GST_DEPENDS) +endef + +define Package/gts1-plugins-bad/description +$(call Package/gstreamer1/description/Default) + . + This meta package contains only dependencies to the other plugins from + the bad plugins collection. +endef + + +GST_VERSION:=1.0 + +CONFIGURE_ARGS += \ + --disable-debug \ + --disable-examples \ + --disable-nls \ + \ + --disable-directsound \ + --disable-directdraw \ + --disable-osx_video \ + --disable-quicktime \ + --disable-vcd \ + --disable-alsa \ + --disable-assrender \ + --disable-amrwb \ + --disable-apexsink \ + --disable-bz2 \ + --disable-cdaudio \ + --disable-celt \ + --disable-cog \ + --disable-dc1394 \ + --disable-directfb \ + --disable-dirac \ + --disable-dts \ + --disable-divx \ + --disable-resindvd \ + --disable-metadata \ + --disable-faac \ + --disable-faad \ + --disable-fbdev \ + --disable-flite \ + --disable-gsm \ + --disable-jack \ + --disable-jp2k \ + --disable-kate \ + --disable-ladspa \ + --disable-lv2 \ + --disable-modplug \ + --disable-mimic \ + --disable-libmms \ + --disable-mpeg2enc \ + --disable-mplex \ + --disable-musepack \ + --disable-musicbrainz \ + --disable-mythtv \ + --disable-nas \ + --disable-neon \ + --disable-ofa \ + --disable-rsvg \ + --disable-timidity \ + --disable-wildmidi \ + --disable-sdl \ + --disable-sdltest \ + --disable-sndfile \ + --disable-soundtouch \ + --disable-spc \ + --disable-gme \ + --disable-swfdec \ + --disable-theoradec \ + --disable-xvid \ + --disable-dvb \ + --disable-wininet \ + --disable-acm \ + --disable-vdpau \ + --disable-schro \ + --disable-zbar \ + --disable-vp8 \ + --disable-librfb \ + \ + --without-libiconv-prefix \ + --without-libintl-prefix \ + --without-x \ + +EXTRA_LDFLAGS+= \ + -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ + + +define Package/gst1-plugins-ugly/install + /bin/true +endef + +# 1: short name +# 2: description +# 3: dependencies on other gstreamer libraries (short name) +# 4: dependencies on other packages +define GstBuildLibrary + + GST_DEPENDS += +libgst1$(1) + + define Package/libgst1$(1) +$(call Package/gstreamer1/Default) +TITLE+= $(2) library (base) +DEPENDS+= +libgstreamer1 $$(foreach p,$(3),+libgst1$$(p)) $(4) + endef + + define Package/libgst1$(1)/description + $(call Package/gstreamer1/description/Default) + . + This package contains the GStreamer $(2) library. + endef + + define Package/libgst1$(1)/install + $(INSTALL_DIR) $$(1)/usr/lib + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/libgst$(1)-$(GST_VERSION).so.* \ + $$(1)/usr/lib/ \ + ) + endef + + $$(eval $$(call BuildPackage,libgst1$(1))) +endef +$(eval $(call GstBuildLibrary,photography,photography,,)) + + +# 1: short name +# 2: description +# 3: dependencies on other gstreamer libraries (short name) +# 4: dependencies on other gstreamer plugins (short name) +# 5: dependencies on other packages +define
[OpenWrt-Devel] [PATCH 007/009] [packages] gst1-plugins-ugly: Add a new gst1-plugins-ugly package (attempt #3)
From: W. Michael Petullo m...@flyn.org Ugly plugins for GStreamer 1.0. Signed-off-by: W. Michael Petullo m...@flyn.org --- multimedia/gst1-plugins-ugly/Makefile | 135 + .../gst1-plugins-ugly/patches/001-no_docs.patch| 24 .../gst1-plugins-ugly/patches/002-no_tests.patch | 24 .../patches/003-no_translations.patch | 35 ++ 4 files changed, 218 insertions(+) create mode 100644 multimedia/gst1-plugins-ugly/Makefile create mode 100644 multimedia/gst1-plugins-ugly/patches/001-no_docs.patch create mode 100644 multimedia/gst1-plugins-ugly/patches/002-no_tests.patch create mode 100644 multimedia/gst1-plugins-ugly/patches/003-no_translations.patch diff --git a/multimedia/gst1-plugins-ugly/Makefile b/multimedia/gst1-plugins-ugly/Makefile new file mode 100644 index 000..2346ecc --- /dev/null +++ b/multimedia/gst1-plugins-ugly/Makefile @@ -0,0 +1,135 @@ +# +# Copyright (C) 2009-2011 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=gst1-plugins-ugly +PKG_VERSION:=1.0.7 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/gst-plugins-ugly-$(PKG_VERSION) +PKG_SOURCE:=gst-plugins-ugly-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-ugly/ +PKG_MD5SUM:=8754edf6c3be235f232fb75ad11708bb + +PKG_BUILD_DEPENDS:= gstreamer1 gst1-plugins-base liboil +PKG_CONFIG_DEPENDS:= \ + CONFIG_PACKAGE_gst1-mod-asf \ + CONFIG_PACKAGE_gst1-mod-lame \ + CONFIG_PACKAGE_gst1-mod-mad \ + CONFIG_PACKAGE_gst1-mod-mpeg2dec \ + +PKG_FIXUP:=autoreconf +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk + +define Package/gstreamer1/Default + CATEGORY:=Multimedia + SECTION:=multimedia + TITLE:=GStreamer + URL:=http://gstreamer.freedesktop.org/ +endef + +define Package/gstreamer1/description/Default + GStreamer open source multimedia framework +endef + + +define Package/gst1-plugins-ugly +$(call Package/gstreamer1/Default) + TITLE+= plugins collection (ugly) + DEPENDS+= $(GST_DEPENDS) +endef + +define Package/gts-plugins-ugly/description +$(call Package/gstreamer1/description/Default) + . + This meta package contains only dependencies to the other plugins from + the ugly plugins collection. +endef + + +GST_COND_SELECT = $(patsubst %,$(if $(CONFIG_PACKAGE_gst1-mod-$(1)),--enable,--disable)-%,$(1)) + +GST_VERSION:=1.0 + +CONFIGURE_ARGS += \ + --disable-debug \ + --disable-examples \ + \ + --disable-a52dec \ + --disable-amrnb \ + --disable-amrwb \ + $(call GST_COND_SELECT,asf) \ + --disable-cdio \ + --disable-dvdlpcmdec \ + --disable-dvdread \ + --disable-dvdsub \ + --disable-iec958 \ + $(call GST_COND_SELECT,lame) \ + $(call GST_COND_SELECT,mad) \ + $(call GST_COND_SELECT,mpeg2dec) \ + --disable-mpegaudioparse \ + --disable-mpegstream \ + --disable-realmedia \ + --disable-sidplay \ + --disable-synaesthesia \ + --disable-twolame \ + --disable-x264 \ + \ + --without-libiconv-prefix \ + --without-libintl-prefix \ + +EXTRA_LDFLAGS+= \ + -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ + + +define Package/gst1-plugins-ugly/install + /bin/true +endef + + +# 1: short name +# 2: description +# 3: dependencies on other gstreamer libraries (short name) +# 4: dependencies on other gstreamer plugins (short name) +# 5: dependencies on other packages +define GstBuildPlugin + + GST_DEPENDS += +gst1-mod-$(1) + + define Package/gst1-mod-$(1) +$(call Package/gstreamer1/Default) +TITLE+= $(2) plugin (ugly) +DEPENDS+= +libgstreamer1 $$(foreach p,$(3),+libgst1$$(p)) $$(foreach p,$(4),+gst1-mod-$$(p)) $(5) + endef + + define Package/gst1-mod-$(1)/description + $(call Package/gstreamer1/description/Default) + . + This package contains the GStreamer $(2) plugin. + endef + + define Package/gst1-mod-$(1)/install + $(INSTALL_DIR) $$(1)/usr/lib/gstreamer-$(GST_VERSION) + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/gstreamer-$(GST_VERSION)/libgst$(1).so* \ + $$(1)/usr/lib/gstreamer-$(GST_VERSION)/ \ + ) + endef + + $$(eval $$(call BuildPackage,gst1-mod-$(1))) +endef + +$(eval $(call GstBuildPlugin,asf,ASF demuxer,audio riff rtp rtsp sdp tag,,)) +$(eval $(call GstBuildPlugin,lame,MP3 encoder (using LAME),audio,,+lame-lib)) +$(eval $(call GstBuildPlugin,mad,MP3 decoder (using MAD),audio tag,,+libid3tag +libmad)) +$(eval $(call GstBuildPlugin,mpeg2dec,MPEG decoder,video,,+libmpeg2)) + +$(eval $(call BuildPackage,gst1-plugins-ugly)) diff --git a/multimedia/gst1-plugins-ugly/patches/001-no_docs.patch b/multimedia/gst1-plugins-ugly/patches/001-no_docs.patch new file mode 100644 index 000..5d99fd4 --- /dev/null +++ b/multimedia/gst1-plugins-ugly/patches/001
[OpenWrt-Devel] [PATCH 009/009] [packages] dmapd: Bump to 0.0.58 (attempt #3)
From: W. Michael Petullo m...@flyn.org Bump to 0.0.58. Signed-off-by: W. Michael Petullo m...@flyn.org --- net/dmapd/Makefile | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/net/dmapd/Makefile b/net/dmapd/Makefile index 5dd12df..f5973ff 100644 --- a/net/dmapd/Makefile +++ b/net/dmapd/Makefile @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=dmapd -PKG_VERSION:=0.0.50 +PKG_VERSION:=0.0.58 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.flyn.org/projects/dmapd -PKG_MD5SUM:=2e04d7fb8437f9e7bd370dc3af450aae +PKG_MD5SUM:=4c0537697465d32569f53d3f14829130 PKG_FIXUP:=autoreconf PKG_INSTALL:=2 @@ -38,6 +38,9 @@ define Package/dmapd/conffiles /etc/dmapd.conf endef +CONFIGURE_ARGS+=\ + --disable-tests + TARGET_LDFLAGS+=\ -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ -- 1.8.3.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 008/009] [packages] libdmapsharing: Bump to 2.9.20 (attempt #2)
From: W. Michael Petullo m...@flyn.org Bump to 2.9.20 Signed-off-by: W. Michael Petullo m...@flyn.org --- libs/libdmapsharing/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/libdmapsharing/Makefile b/libs/libdmapsharing/Makefile index 55cadfd..19a3add 100644 --- a/libs/libdmapsharing/Makefile +++ b/libs/libdmapsharing/Makefile @@ -10,12 +10,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=libdmapsharing -PKG_VERSION:=2.9.15 +PKG_VERSION:=2.9.20 PKG_RELEASE:=1 PKG_SOURCE:=libdmapsharing-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.flyn.org/projects/libdmapsharing/ -PKG_MD5SUM:=52c9e4d3de931d9013eeaccf7371bb2d +PKG_MD5SUM:=c8ecda552f2ac42533d3bb8ddb0498eb PKG_BUILD_DIR:=$(BUILD_DIR)/libdmapsharing-$(PKG_VERSION) @@ -31,7 +31,7 @@ TARGET_LDFLAGS+= \ define Package/libdmapsharing SECTION:=libs CATEGORY:=Libraries - DEPENDS:=+libsoup +mdnsresponder +gstreamer +gst-plugins-base +libgstapp + DEPENDS:=+libsoup +mdnsresponder +gstreamer1 +gst1-plugins-base +libgst1app TITLE:=libdmapsharing URL:=http://www.flyn.org/projects/libdmapsharing/ MAINTAINER:=W. Michael Petullo m...@flyn.org -- 1.8.3.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] [packages] fix mdnsresponder library symbolic link creation
From: W. Michael Petullo m...@flyn.org The mdnsresponder package created an improper symbolic link from libdns_sd.so into the OpenWrt build tree. This fixes this problem so that libdns_sd.so is a relative link. Signed-off-by: W. Michael Petullo m...@flyn.org --- Index: net/mdnsresponder/Makefile === --- net/mdnsresponder/Makefile (revision 37187) +++ net/mdnsresponder/Makefile (working copy) @@ -110,16 +110,22 @@ mkdir -p $(PKG_INSTALL_DIR)/etc/rc.d/rc5.d/ mkdir -p $(PKG_INSTALL_DIR)/etc/rc.d/rc0.d/ mkdir -p $(PKG_INSTALL_DIR)/etc/rc.d/rc6.d/ - # XXX: mDNSResponder's makefile creates absolute link - rm -f $(PKG_INSTALL_DIR)/usr/lib/libdns_sd.so - ln -fs libdns_sd.so.1 $(PKG_INSTALL_DIR)/usr/lib/libdns_sd.so + + # XXX: mDNSResponder's makefile gets this wrong; for ipkg. + rm -f $(PKG_INSTALL_DIR)/usr/lib/libdns_sd.so $(PKG_INSTALL_DIR)/usr/lib/libdns_sd.so.1 + $(CP) $(PKG_BUILD_DIR)/mDNSPosix/build/prod/libdns_sd.so $(PKG_INSTALL_DIR)/usr/lib/libdns_sd.so.1 + ( cd $(PKG_INSTALL_DIR)/usr/lib/ ln -fs libdns_sd.so.1 libdns_sd.so ) endef define Build/InstallDev $(INSTALL_DIR) $(1)/usr/include $(CP) $(PKG_BUILD_DIR)/mDNSShared/dns_sd.h $(1)/usr/include/ $(INSTALL_DIR) $(1)/usr/lib - $(CP) $(PKG_BUILD_DIR)/mDNSPosix/build/prod/*.so* $(1)/usr/lib/ + + # XXX: mDNSResponder's makefile gets this wrong; for building other packages. + rm -f $(1)/usr/lib/libdns_sd.so $(1)/usr/lib/libdns_sd.so.1 + $(CP) $(PKG_BUILD_DIR)/mDNSPosix/build/prod/libdns_sd.so $(1)/usr/lib/libdns_sd.so.1 + ( cd $(1)/usr/lib/ ln -fs libdns_sd.so.1 libdns_sd.so ) endef define Package/mdns-utils/conffile ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 002/009] [packages] glib2: Bump to 2.32.3 (attempt #2)
From: W. Michael Petullo m...@flyn.org Bump glib2 to 2.32.3. Signed-off-by: W. Michael Petullo m...@flyn.org --- Index: libs/glib2/Makefile === --- libs/glib2/Makefile (revision 36909) +++ libs/glib2/Makefile (working copy) @@ -8,17 +8,19 @@ include $(TOPDIR)/rules.mk PKG_NAME:=glib2 -PKG_VERSION:=2.26.1 -PKG_RELEASE:=3 +PKG_VERSION:=2.32.3 +PKG_RELEASE:=1 -PKG_SOURCE:=glib-$(PKG_VERSION).tar.bz2 +PKG_SOURCE:=glib-$(PKG_VERSION).tar.xz PKG_BUILD_DIR:=$(BUILD_DIR)/glib-$(PKG_VERSION) -PKG_SOURCE_URL:=@GNOME/glib/2.26 -PKG_MD5SUM:=17535accceef55bcb17a74d73f9c2aef +PKG_SOURCE_URL:=@GNOME/glib/2.32 +PKG_SHA256SUM:=b65ceb462807e4a2f91c95e4293ce6bbefca308cb44a1407bcfdd9e40363ff4d PKG_FIXUP:=autoreconf -PKG_BUILD_DEPENDS:=glib2/host libpthread zlib libintl -HOST_BUILD_DEPENDS:=gettext/host libiconv/host +PKG_BUILD_DEPENDS:=glib2/host +# Note that this uses the libintl/libiconv stubs for the host build regardless +# of BUILD_NLS. +HOST_BUILD_DEPENDS:=libintl/host libiconv/host libffi/host PKG_INSTALL:=1 HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/glib-$(PKG_VERSION) @@ -30,7 +32,7 @@ define Package/glib2 SECTION:=libs CATEGORY:=Libraries - DEPENDS:=$(ICONV_DEPENDS) $(INTL_DEPENDS) +zlib +libpthread + DEPENDS:=$(ICONV_DEPENDS) $(INTL_DEPENDS) +zlib +libpthread +libffi TITLE:=glib 2.0 URL:=http://www.gtk.org/ endef Index: libs/glib2/patches/001-automake-compat.patch === --- libs/glib2/patches/001-automake-compat.patch(revision 36909) +++ libs/glib2/patches/001-automake-compat.patch(working copy) @@ -1,10 +1,10 @@ --- a/configure.ac +++ b/configure.ac -@@ -2741,7 +2741,8 @@ dnl ** +@@ -2589,7 +2589,8 @@ dnl ** dnl *** Checks for gtk-doc *** dnl ** --GTK_DOC_CHECK([1.15]) +-GTK_DOC_CHECK([1.15], [--flavour no-tmpl]) +AM_CONDITIONAL([ENABLE_GTK_DOC], [false]) +AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [false]) Index: libs/glib2/patches/002-missing-gthread-include.patch === --- libs/glib2/patches/002-missing-gthread-include.patch(revision 36909) +++ libs/glib2/patches/002-missing-gthread-include.patch(working copy) @@ -1,10 +0,0 @@ a/glib/gatomic.c -+++ b/glib/gatomic.c -@@ -881,6 +881,7 @@ g_atomic_pointer_compare_and_exchange (v - #endif /* DEFINE_WITH_WIN32_INTERLOCKED */ - - #ifdef DEFINE_WITH_MUTEXES -+#include gthread.h - /* We have to use the slow, but safe locking method */ - static GMutex *g_atomic_mutex; - Index: libs/glib2/patches/010-move-iconv-to-libs.patch === --- libs/glib2/patches/010-move-iconv-to-libs.patch (revision 36909) +++ libs/glib2/patches/010-move-iconv-to-libs.patch (working copy) @@ -1,10 +1,11 @@ --- a/glib-2.0.pc.in +++ b/glib-2.0.pc.in -@@ -10,6 +10,5 @@ glib_mkenums=glib-mkenums - Name: GLib +@@ -11,6 +11,6 @@ Name: GLib Description: C Utility Library Version: @VERSION@ + Requires.private: @PCRE_REQUIRES@ -Libs: -L${libdir} -lglib-2.0 @INTLLIBS@ --Libs.private: @ICONV_LIBS@ +-Libs.private: @G_THREAD_LIBS@ @G_LIBS_EXTRA@ @PCRE_LIBS@ @INTLLIBS@ @ICONV_LIBS@ +Libs: -L${libdir} -lglib-2.0 @INTLLIBS@ @ICONV_LIBS@ ++Libs.private: @G_THREAD_LIBS@ @G_LIBS_EXTRA@ @PCRE_LIBS@ Cflags: -I${includedir}/glib-2.0 -I${libdir}/glib-2.0/include @GLIB_EXTRA_CFLAGS@ Index: libs/glib2/patches/020-no-docs-tests-translations.patch === --- libs/glib2/patches/020-no-docs-tests-translations.patch (revision 36909) +++ libs/glib2/patches/020-no-docs-tests-translations.patch (working copy) @@ -1,9 +1,9 @@ --- a/configure.ac +++ b/configure.ac -@@ -3737,18 +3737,6 @@ gio/fen/Makefile - gio/fam/Makefile +@@ -3571,19 +3571,6 @@ gio/fam/Makefile gio/win32/Makefile gio/tests/Makefile + gio/tests/gdbus-object-manager-example/Makefile -po/Makefile.in -docs/Makefile -docs/reference/Makefile @@ -12,6 +12,7 @@ -docs/reference/gobject/Makefile -docs/reference/gobject/version.xml -docs/reference/gio/Makefile +-docs/reference/gio/gdbus-object-manager-example/Makefile -docs/reference/gio/version.xml -tests/Makefile -tests/gobject/Makefile @@ -21,7 +22,7 @@ --- a/gio/Makefile.am +++ b/gio/Makefile.am -@@ -264,8 +264,6 @@ giowin32include_HEADERS = \ +@@ -323,8 +323,6 @@ giowin32include_HEADERS = \ endif @@ -32,8 +33,8 @@ gasynchelper.c \ --- a/glib/Makefile.am +++ b/glib/Makefile.am -@@ -48,9 +48,9 @@ else - gatomic_c = gatomic.c +@@ -35,9 +35,9 @@ else + MAYBE_PCRE = pcre endif -SUBDIRS = libcharset $(PRINTF_SUBDIR) $(MAYBE_PCRE) update-pcre . tests @@ -53,24 +54,11 @@ -SUBDIRS = . tests +SUBDIRS = . + BUILT_SOURCES= CLEANFILES= - a/gthread/Makefile.am -+++ b/gthread/Makefile.am
[OpenWrt-Devel] [PATCH 001/009] [packages] libffi: Modify to support glib2 2.32 build (attempt #2)
From: W. Michael Petullo m...@flyn.org Glib 2.32+ requires libffi, so the libffi Makefile needs to call HostBuild. Signed-off-by: W. Michael Petullo m...@flyn.org --- Index: libs/libffi/Makefile === --- libs/libffi/Makefile(revision 36813) +++ libs/libffi/Makefile(working copy) @@ -18,6 +18,7 @@ PKG_FIXUP:=autoreconf PKG_INSTALL:=1 +include $(INCLUDE_DIR)/host-build.mk include $(INCLUDE_DIR)/package.mk define Package/libffi @@ -71,4 +72,5 @@ $(1)/usr/lib/ endef +$(eval $(call HostBuild)) $(eval $(call BuildPackage,libffi)) ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 003/009] [packages] gstreamer1: Add a new gstreamer1 package (attempt #2)
From: W. Michael Petullo m...@flyn.org Many applications are starting to require GStreamer 1.0, which is API-incompatible with GStreamer 0.10. The name gstreamer1 allows GStreamer 0.10 and 1.0 to coexist, in a manner similar to gtk1 and gtk2. Signed-off-by: W. Michael Petullo m...@flyn.org --- Index: multimedia/gstreamer1/Makefile === --- multimedia/gstreamer1/Makefile (revision 0) +++ multimedia/gstreamer1/Makefile (working copy) @@ -0,0 +1,191 @@ +# +# Copyright (C) 2008-2012 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=gstreamer1 +PKG_VERSION:=1.0.7 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/gstreamer-$(PKG_VERSION) +PKG_SOURCE:=gstreamer-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gstreamer/ +PKG_MD5SUM:=8f6066a37c71a0d0ff5fe5f7687fea12 + +PKG_FIXUP:=autoreconf +PKG_REMOVE_FILES:=autogen.sh aclocal.m4 + +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk + +define Package/gstreamer1/Default + CATEGORY:=Multimedia + SECTION:=multimedia + TITLE:=GStreamer + URL:=http://gstreamer.freedesktop.org/ +endef + +define Package/gstreamer1/description/Default + GStreamer open source multimedia framework +endef + + +define Package/gstreamer1 +$(call Package/gstreamer1/Default) + TITLE+= framework + DEPENDS+= +libgstreamer1 \ + +libgst1check \ + +libgst1controller \ + +libgst1dataprotocol \ + +libgst1net +endef + +define Package/gstreamer1/description +$(call Package/gstreamer1/description/Default) + . + This meta package contains only dependencies on the other GStreamer + componenents. +endef + + +define Package/gstreamer1-utils +$(call Package/gstreamer1/Default) + TITLE+= utilities + DEPENDS+= +libgstreamer1 +endef + +define Package/gstreamer1-utils/description +$(call Package/gstreamer1/description/Default) + . + This package contains the GStreamer utilities. +endef + + +define Package/libgstreamer1 +$(call Package/gstreamer1/Default) + TITLE+= library (core) + DEPENDS+= +glib2 +libpthread +libxml2 +endef + +define Package/libgstreamer1/description +$(call Package/gstreamer1/description/Default) + . + This package contains the GStreamer core library. +endef + + +GST_VERSION:=1.0 + +CONFIGURE_ARGS += \ + --enable-static \ + --disable-examples \ + --disable-tests \ + --disable-valgrind \ + --without-libiconv-prefix \ + --without-libintl-prefix \ + --without-x \ + +EXTRA_LDFLAGS+= \ + -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ + -L$(ICONV_PREFIX)/lib -L$(INTL_PREFIX)/lib + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include/gstreamer-$(GST_VERSION) + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/include/gstreamer-$(GST_VERSION)/* \ + $(1)/usr/include/gstreamer-$(GST_VERSION)/ \ + ) + $(INSTALL_DIR) $(1)/usr/lib + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/libgst*-$(GST_VERSION).{a,la,so*} \ + $(1)/usr/lib/ \ + ) + $(INSTALL_DIR) $(1)/usr/lib/gstreamer-$(GST_VERSION) + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/gstreamer-$(GST_VERSION)/libgst*.{la,so} \ + $(1)/usr/lib/gstreamer-$(GST_VERSION)/ \ + ) + $(INSTALL_DIR) $(1)/usr/lib/pkgconfig + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/pkgconfig/gstreamer*-$(GST_VERSION).pc \ + $(1)/usr/lib/pkgconfig/ \ + ) + $(INSTALL_DIR) $(2)/share/aclocal + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/share/aclocal/* \ + $(2)/share/aclocal/ \ + ) +endef + +define Package/gstreamer1/install + /bin/true +endef + +define Package/gstreamer1-utils/install + $(INSTALL_DIR) $(1)/usr/bin + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/bin/gst-launch* \ + ./usr/bin/gst-inspect* \ + ./usr/bin/gst-typefind* \ + $(1)/usr/bin/ \ + ) +endef + +define Package/libgstreamer1/install + $(INSTALL_DIR) $(1)/usr/lib + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/libgstbase-$(GST_VERSION).so.* \ + ./usr/lib/libgstreamer-$(GST_VERSION).so.* \ + $(1)/usr/lib/ \ + ) + $(INSTALL_DIR) $(1)/usr/lib/gstreamer-$(GST_VERSION) + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/gstreamer-$(GST_VERSION)/libgst*.so \ + $(1)/usr/lib/gstreamer-$(GST_VERSION)/ \ + ) +endef + + +# 1: short name +# 2: description +# 3: dependencies on other gstreamer libraries (short name) +# 4: dependencies on other packages +define GstBuildLibrary + + define Package/libgst1$(1) +$(call Package/gstreamer1/Default) +TITLE+= $(2) library (core) +DEPENDS
[OpenWrt-Devel] [PATCH 004/009] [packages] gst1-plugins-base: Add a new gst1-plugins-base package (attempt #2)
From: W. Michael Petullo m...@flyn.org Base plugins for GStreamer 1.0. Signed-off-by: W. Michael Petullo m...@flyn.org --- Index: multimedia/gst1-plugins-base/Makefile === --- multimedia/gst1-plugins-base/Makefile (revision 0) +++ multimedia/gst1-plugins-base/Makefile (working copy) @@ -0,0 +1,237 @@ +# +# Copyright (C) 2008-2011 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=gst1-plugins-base +PKG_VERSION:=1.0.7 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/gst-plugins-base-$(PKG_VERSION) +PKG_SOURCE:=gst-plugins-base-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-base/ +PKG_MD5SUM:=b5b43cfbf82b413ce2e07a190d87e68f + +PKG_BUILD_DEPENDS:= gstreamer1 liboil +PKG_CONFIG_DEPENDS:= \ + CONFIG_PACKAGE_gst1-mod-alsa \ + CONFIG_PACKAGE_gst1-mod-app \ + CONFIG_PACKAGE_gst1-mod-audioconvert \ + CONFIG_PACKAGE_gst1-mod-audiorate \ + CONFIG_PACKAGE_gst1-mod-audioresample \ + CONFIG_PACKAGE_gst1-mod-audiotestsrc \ + CONFIG_PACKAGE_gst1-mod-gio \ + CONFIG_PACKAGE_gst1-mod-ogg \ + CONFIG_PACKAGE_gst1-mod-tcp \ + CONFIG_PACKAGE_gst1-mod-theora \ + CONFIG_PACKAGE_gst1-mod-videotestsrc \ + CONFIG_PACKAGE_gst1-mod-volume \ + CONFIG_PACKAGE_gst1-mod-vorbis \ + +PKG_FIXUP:=autoreconf +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk + +# -liconv crept in from pkg-config, to be revisited later +include $(INCLUDE_DIR)/nls.mk + +define Package/gstreamer1/Default + CATEGORY:=Multimedia + SECTION:=multimedia + TITLE:=GStreamer + URL:=http://gstreamer.freedesktop.org/ +endef + +define Package/gstreamer1/description/Default + GStreamer open source multimedia framework +endef + + +define Package/gst1-plugins-base +$(call Package/gstreamer1/Default) + TITLE+= plugins collection (base) + DEPENDS+= $(GST_DEPENDS) +endef + +define Package/gts1-plugins-base/description +$(call Package/gstreamer1/description/Default) + . + This meta package contains only dependencies to the other libraries and + plugins from the base plugins collection. +endef + + +GST_COND_SELECT = $(patsubst %,$(if $(CONFIG_PACKAGE_gst1-mod-$(1)),--enable,--disable)-%,$(1)) + +GST_VERSION:=1.0 + +CONFIGURE_ARGS += \ + --disable-debug \ + --disable-examples \ + \ + $(call GST_COND_SELECT,alsa) \ + --disable-alsa-test \ + $(call GST_COND_SELECT,app) \ + $(call GST_COND_SELECT,audioconvert) \ + $(call GST_COND_SELECT,audiorate) \ + $(call GST_COND_SELECT,audioresample) \ + $(call GST_COND_SELECT,audiotestsrc) \ + --disable-cdparanoia \ + --disable-ffmpegcolorspace \ + --disable-freetypetest \ + $(call GST_COND_SELECT,gio) \ + --disable-gnome_vfs \ + --disable-gst_v4l \ + --disable-libvisual \ + $(call GST_COND_SELECT,ogg) \ + --disable-oggtest \ + --disable-pango \ + --disable-subparse \ + $(call GST_COND_SELECT,tcp) \ + $(call GST_COND_SELECT,theora) \ + --disable-videorate \ + --disable-videoscale \ + $(call GST_COND_SELECT,videotestsrc) \ + $(call GST_COND_SELECT,volume) \ + $(call GST_COND_SELECT,vorbis) \ + --disable-vorbistest \ + --disable-x \ + --disable-xshm \ + --disable-xvideo \ + \ + --without-libiconv-prefix \ + --without-libintl-prefix \ + --without-x \ + \ + --with-audioresample-format=int \ + +EXTRA_LDFLAGS+= \ + -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ + + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include/gstreamer-$(GST_VERSION) + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/include/gstreamer-$(GST_VERSION)/* \ + $(1)/usr/include/gstreamer-$(GST_VERSION)/ \ + ) + $(INSTALL_DIR) $(1)/usr/lib + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/libgst*-$(GST_VERSION).{la,so*} \ + $(1)/usr/lib/ \ + ) + $(INSTALL_DIR) $(1)/usr/lib/gstreamer-$(GST_VERSION) + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/gstreamer-$(GST_VERSION)/libgst*.{la,so} \ + $(1)/usr/lib/gstreamer-$(GST_VERSION)/ \ + ) + $(INSTALL_DIR) $(1)/usr/lib/pkgconfig + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/pkgconfig/gstreamer*-$(GST_VERSION).pc \ + $(1)/usr/lib/pkgconfig/ \ + ) +endef + + +define Package/gst1-plugins-base/install + /bin/true +endef + + +# 1: short name +# 2: description +# 3: dependencies on other gstreamer libraries (short name) +# 4: dependencies on other packages +define GstBuildLibrary + + GST_DEPENDS += +libgst1$(1) + + define Package/libgst1$(1) +$(call Package/gstreamer1/Default
[OpenWrt-Devel] [PATCH 005/009] [packages] gst1-plugins-good: Add a new gst1-plugins-good package (attempt #2)
From: W. Michael Petullo m...@flyn.org Good plugins for GStreamer 1.0. Signed-off-by: W. Michael Petullo m...@flyn.org --- Index: multimedia/gst1-plugins-good/Makefile === --- multimedia/gst1-plugins-good/Makefile (revision 0) +++ multimedia/gst1-plugins-good/Makefile (working copy) @@ -0,0 +1,175 @@ +## Copyright (C) 2009-2011 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=gst1-plugins-good +PKG_VERSION:=1.0.7 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/gst-plugins-good-$(PKG_VERSION) +PKG_SOURCE:=gst-plugins-good-$(PKG_VERSION).tar.xz +PKG_SOURCE_URL:=http://gstreamer.freedesktop.org/src/gst-plugins-good/ +PKG_MD5SUM:=e4b1c825475a9b478fe29e8e9f34516f + +PKG_BUILD_DEPENDS:= gstreamer1 gst1-plugins-base liboil + +PKG_FIXUP:=autoreconf +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk +include $(INCLUDE_DIR)/nls.mk + +define Package/gstreamer1/Default + CATEGORY:=Multimedia + SECTION:=multimedia + TITLE:=GStreamer + URL:=http://gstreamer.freedesktop.org/ +endef + +define Package/gstreamer1/description/Default + GStreamer open source multimedia framework +endef + + +define Package/gst1-plugins-good +$(call Package/gstreamer1/Default) + TITLE+= plugins collection (good) + DEPENDS+= $(GST_DEPENDS) +endef + +define Package/gts-plugins-good/description +$(call Package/gstreamer1/description/Default) + . + This meta package contains only dependencies to the other plugins from + the good plugins collection. +endef + + +GST_VERSION:=1.0 + +CONFIGURE_ARGS += \ + --disable-debug \ + --disable-examples \ + \ + --disable-aalib \ + --disable-alpha \ + --disable-annodex \ + --disable-apetag \ + --disable-auparse \ + --disable-avi \ + --disable-bz2 \ + --disable-cairo \ + --disable-directsound \ + --disable-dv1394 \ + --disable-effectv \ + --disable-esd \ + --disable-flv \ + --disable-flx \ + --disable-gconf \ + --disable-gconftool \ + --disable-gdk_pixbuf \ + --disable-goom \ + --disable-goom2k1 \ + --disable-gst_v4l2 \ + --disable-hal \ + --disable-jpeg \ + --disable-law \ + --disable-libcaca \ + --disable-libdv \ + --disable-libpng \ + --disable-matroska \ + --disable-monoscope \ + --disable-osx_audio \ + --disable-osx_video \ + --disable-pulse \ + --disable-qtdemux \ + --disable-rtspmanager \ + --disable-smpte \ + --disable-shout2 \ + --disable-speex \ + --disable-sunaudio \ + --disable-taglib \ + --disable-videobox \ + --disable-videocrop \ + --disable-videofilter \ + --disable-videomixer \ + --disable-wavpack \ + --disable-x \ + --disable-xshm \ + --disable-xvideo \ + --disable-y4m \ + --disable-zlib \ + \ + --without-libiconv-prefix \ + --without-libintl-prefix \ + --without-x \ + +EXTRA_LDFLAGS+= \ + -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \ + + +define Package/gst1-plugins-good/install + /bin/true +endef + + +# 1: short name +# 2: description +# 3: dependencies on other gstreamer libraries (short name) +# 4: dependencies on other gstreamer plugins (short name) +# 5: dependencies on other packages +define GstBuildPlugin + + GST_DEPENDS += +gst1-mod-$(1) + + define Package/gst1-mod-$(1) +$(call Package/gstreamer1/Default) +TITLE+= $(2) plugin (good) +DEPENDS+= +libgstreamer1 $$(foreach p,$(3),+libgst1$$(p)) $$(foreach p,$(4),+gst1-mod-$$(p)) $(5) + endef + + define Package/gst1-mod-$(1)/description + $(call Package/gstreamer1/description/Default) + . + This package contains the GStreamer $(2) plugin. + endef + + define Package/gst1-mod-$(1)/install + $(INSTALL_DIR) $$(1)/usr/lib/gstreamer-$(GST_VERSION) + ( cd $(PKG_INSTALL_DIR); $(CP) \ + ./usr/lib/gstreamer-$(GST_VERSION)/libgst$(1).so* \ + $$(1)/usr/lib/gstreamer-$(GST_VERSION)/ \ + ) + endef + + $$(eval $$(call BuildPackage,gst1-mod-$(1))) +endef + +$(eval $(call GstBuildPlugin,audiofx,audio effects,audio fft controller,,)) +$(eval $(call GstBuildPlugin,autodetect,format auto-detection,,,)) +$(eval $(call GstBuildPlugin,cutter,audio cutter,audio,,)) +$(eval $(call GstBuildPlugin,debug,debugging,,,)) +$(eval $(call GstBuildPlugin,equalizer,audio equalizer,audio controller,,)) +$(eval $(call GstBuildPlugin,flac,FLAC codec,audio pbutils tag,,+libflac)) +$(eval $(call GstBuildPlugin,id3demux,ID3v1/v2 demuxer,pbutils tag,,)) +$(eval $(call GstBuildPlugin,icydemux,icy demuxer,audio tag,,)) +$(eval $(call GstBuildPlugin,interleave,audio interleave,audio,,)) +$(eval $(call GstBuildPlugin,level,audio level,audio,,)) +$(eval $(call GstBuildPlugin