Commit aa65f0b3 authored by Kevin Perkins's avatar Kevin Perkins Committed by GitHub

[rtmpdump]: Pass variables to make instead of patching the Makefile (#5073)

* [rtmpdump]: Pass variables to make instead of patching the Makefile

* [rtmpdump]: Add `SYS=posix` to arguments to make
parent 3cd18fae
......@@ -7,6 +7,7 @@ class Rtmpdump < Package
compatibility 'all'
source_url 'https://git.ffmpeg.org/gitweb/rtmpdump.git/snapshot/c5f04a58fc2aeea6296ca7c44ee4734c18401aa3.tar.gz'
source_sha256 'fd8c21263d93fbde8bee8aa6c5f6a657789674bb0f9e74f050651504d5f43b46'
@make_common_opts = ['SYS=posix', "prefix=#{CREW_PREFIX}", "libdir=#{CREW_LIB_PREFIX}", 'CRYPTO=GNUTLS']
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/rtmpdump-c5f04a58f-1-chromeos-armv7l.tar.xz',
......@@ -20,20 +21,12 @@ class Rtmpdump < Package
i686: '109fb6fa70409f8ba274fa452c2e04dc1ff3ba740f618525c188139c1ddce363',
x86_64: '0212408c6faad92b5909d77188d8c27e68ce955f61dcb5597603303e31e601ce',
})
def self.patch
system "sed -i 's,prefix=/usr/local,prefix=#{CREW_PREFIX},' Makefile"
system "sed -i 's,prefix=/usr/local,prefix=#{CREW_PREFIX},' librtmp/Makefile"
system "sed -i 's,libdir=\$(prefix)/lib,libdir=#{CREW_LIB_PREFIX},' librtmp/Makefile"
# OpenSSL builds are broken.
system "sed -e 's/^CRYPTO=OPENSSL/#CRYPTO=OPENSSL/' -e 's/#CRYPTO=GNUTLS/CRYPTO=GNUTLS/' -i Makefile -i librtmp/Makefile"
end
def self.build
system 'make'
system "make", *@make_common_opts
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
system 'make', *@make_common_opts, "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment