Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
175a13d8
Commit
175a13d8
authored
Mar 12, 2021
by
Satadru Pramanik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix i686 compile
parent
6ce9a37b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
100 additions
and
51 deletions
+100
-51
packages/libsoup2.rb
packages/libsoup2.rb
+31
-0
packages/libx265.rb
packages/libx265.rb
+69
-51
No files found.
packages/libsoup2.rb
0 → 100644
View file @
175a13d8
require
'package'
class
Libsoup2
<
Package
description
'libsoup is an HTTP client/server library for GNOME.'
homepage
'https://wiki.gnome.org/Projects/libsoup'
version
'2.72'
compatibility
'all'
source_url
'https://download.gnome.org/sources/libsoup/2.72/libsoup-2.72.0.tar.xz'
source_sha256
'170c3f8446b0f65f8e4b93603349172b1085fb8917c181d10962f02bb85f5387'
depends_on
'glib_networking'
depends_on
'libpsl'
depends_on
'sqlite'
depends_on
'vala'
depends_on
'llvm'
def
self
.
build
system
"meson
#{
CREW_MESON_LTO_OPTIONS
}
\
-Dtests=false \
-Dsysprof=disabled \
-Dintrospection=enabled \
builddir"
system
'meson configure builddir'
system
"sed -i 's#-R#-Wl,-rpath=#g' builddir/build.ninja"
system
'ninja -C builddir'
end
def
self
.
install
system
"DESTDIR=
#{
CREW_DEST_DIR
}
ninja -C builddir install"
end
end
packages/libx265.rb
View file @
175a13d8
...
@@ -5,25 +5,28 @@ class Libx265 < Package
...
@@ -5,25 +5,28 @@ class Libx265 < Package
homepage
'http://x265.org/'
homepage
'http://x265.org/'
@_ver
=
'3.4'
@_ver
=
'3.4'
version
@_ver
version
@_ver
compatibility
'x86_64 aarch64 armv7l'
compatibility
'all'
unless
ARCH
==
'i686'
source_url
"https://github.com/videolan/x265/archive/
#{
@_ver
}
.tar.gz"
source_url
"https://github.com/videolan/x265/archive/
#{
@_ver
}
.tar.gz"
source_sha256
'544d147bf146f8994a7bf8521ed878c93067ea1c7c6e93ab602389be3117eaaf'
source_sha256
'544d147bf146f8994a7bf8521ed878c93067ea1c7c6e93ab602389be3117eaaf'
depends_on
'nasm'
=>
:build
end
binary_url
({
binary_url
({
aarch64:
'https://dl.bintray.com/chromebrew/chromebrew/libx265-3.4-chromeos-armv7l.tar.xz'
,
aarch64:
'https://dl.bintray.com/chromebrew/chromebrew/libx265-3.4-chromeos-armv7l.tar.xz'
,
armv7l:
'https://dl.bintray.com/chromebrew/chromebrew/libx265-3.4-chromeos-armv7l.tar.xz'
,
armv7l:
'https://dl.bintray.com/chromebrew/chromebrew/libx265-3.4-chromeos-armv7l.tar.xz'
,
i686:
'https://dl.bintray.com/chromebrew/chromebrew/libx265-3.4-chromeos-i686.tar.xz'
,
x86_64:
'https://dl.bintray.com/chromebrew/chromebrew/libx265-3.4-chromeos-x86_64.tar.xz'
x86_64:
'https://dl.bintray.com/chromebrew/chromebrew/libx265-3.4-chromeos-x86_64.tar.xz'
})
})
binary_sha256
({
binary_sha256
({
aarch64:
'cf7548c97fb5774a3fea30a580ba1719f7b4efdfb4e5f6db91fac20d651d8442'
,
aarch64:
'cf7548c97fb5774a3fea30a580ba1719f7b4efdfb4e5f6db91fac20d651d8442'
,
armv7l:
'cf7548c97fb5774a3fea30a580ba1719f7b4efdfb4e5f6db91fac20d651d8442'
,
armv7l:
'cf7548c97fb5774a3fea30a580ba1719f7b4efdfb4e5f6db91fac20d651d8442'
,
i686:
'dff1da6826ecf734d7012c4ec9cdd5d2c18e505968bcd6a9dcf6a5d7d1234c8d'
,
x86_64:
'fc7647ea5a73c0fdbc2cea1f2c842de8a4a72db11b1fce5907ed79669e598ab4'
x86_64:
'fc7647ea5a73c0fdbc2cea1f2c842de8a4a72db11b1fce5907ed79669e598ab4'
})
})
depends_on
'nasm'
=>
:build
def
self
.
build
def
self
.
build
case
ARCH
when
'x86_64'
,
'aarch64'
,
'armv7l'
Dir
.
mkdir
'build-12'
Dir
.
mkdir
'build-12'
Dir
.
chdir
'build-12'
do
Dir
.
chdir
'build-12'
do
system
"env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
system
"env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
...
@@ -79,6 +82,21 @@ class Libx265 < Package
...
@@ -79,6 +82,21 @@ class Libx265 < Package
end
end
FileUtils
.
ln_s
'../build-10/libx265.a'
,
'builddir/libx265_main10.a'
FileUtils
.
ln_s
'../build-10/libx265.a'
,
'builddir/libx265_main10.a'
FileUtils
.
ln_s
'../build-12/libx265.a'
,
'builddir/libx265_main12.a'
FileUtils
.
ln_s
'../build-12/libx265.a'
,
'builddir/libx265_main12.a'
when
'i686'
Dir
.
mkdir
'builddir'
Dir
.
chdir
'builddir'
do
system
"env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
cmake \
-G Ninja \
#{
CREW_CMAKE_OPTIONS
}
\
-DENABLE_SHARED=TRUE \
-DLIB_INSTALL_DIR=lib
#{
CREW_LIB_SUFFIX
}
\
-Wno-dev \
../source"
end
end
system
'ninja -C builddir'
system
'ninja -C builddir'
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment