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
Hide 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,63 +5,87 @@ class Libx265 < Package
...
@@ -5,63 +5,87 @@ 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
Dir
.
mkdir
'build-12'
case
ARCH
Dir
.
chdir
'build-12'
do
when
'x86_64'
,
'aarch64'
,
'armv7l'
system
"env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
Dir
.
mkdir
'build-12'
CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
Dir
.
chdir
'build-12'
do
LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
system
"env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
cmake \
CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
-G Ninja \
LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
#{
CREW_CMAKE_OPTIONS
}
\
cmake \
-DLIB_INSTALL_DIR=lib
#{
CREW_LIB_SUFFIX
}
\
-G Ninja \
-DHIGH_BIT_DEPTH=TRUE \
#{
CREW_CMAKE_OPTIONS
}
\
-DMAIN12=TRUE \
-DLIB_INSTALL_DIR=lib
#{
CREW_LIB_SUFFIX
}
\
-DEXPORT_C_API=FALSE \
-DHIGH_BIT_DEPTH=TRUE \
-DENABLE_CLI=FALSE \
-DMAIN12=TRUE \
-DENABLE_SHARED=FALSE \
-DEXPORT_C_API=FALSE \
-Wno-dev \
-DENABLE_CLI=FALSE \
../source"
-DENABLE_SHARED=FALSE \
end
-Wno-dev \
system
'ninja -C build-12'
../source"
Dir
.
mkdir
'build-10'
end
Dir
.
chdir
'build-10'
do
system
'ninja -C build-12'
system
"env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
Dir
.
mkdir
'build-10'
CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
Dir
.
chdir
'build-10'
do
LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
system
"env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
cmake \
CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
-G Ninja \
LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
#{
CREW_CMAKE_OPTIONS
}
\
cmake \
-DLIB_INSTALL_DIR=lib
#{
CREW_LIB_SUFFIX
}
\
-G Ninja \
-DHIGH_BIT_DEPTH=TRUE \
#{
CREW_CMAKE_OPTIONS
}
\
-DEXPORT_C_API=FALSE \
-DLIB_INSTALL_DIR=lib
#{
CREW_LIB_SUFFIX
}
\
-DENABLE_CLI=FALSE \
-DHIGH_BIT_DEPTH=TRUE \
-DENABLE_SHARED=FALSE \
-DEXPORT_C_API=FALSE \
-Wno-dev \
-DENABLE_CLI=FALSE \
../source"
-DENABLE_SHARED=FALSE \
end
-Wno-dev \
system
'ninja -C build-10'
../source"
Dir
.
mkdir
'builddir'
end
Dir
.
chdir
'builddir'
do
system
'ninja -C build-10'
system
"env CFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
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
}
\
-DENABLE_HDR10_PLUS=TRUE \
-DEXTRA_LIB='x265_main10.a;x265_main12.a' \
-DEXTRA_LINK_FLAGS='-L .' \
-DLINKED_10BIT=TRUE \
-DLINKED_12BIT=TRUE \
-Wno-dev \
../source"
end
FileUtils
.
ln_s
'../build-10/libx265.a'
,
'builddir/libx265_main10.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' \
CXXFLAGS='-pipe -fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
LDFLAGS='-fno-stack-protector -U_FORTIFY_SOURCE -flto=auto' \
cmake \
cmake \
...
@@ -69,16 +93,10 @@ class Libx265 < Package
...
@@ -69,16 +93,10 @@ class Libx265 < Package
#{
CREW_CMAKE_OPTIONS
}
\
#{
CREW_CMAKE_OPTIONS
}
\
-DENABLE_SHARED=TRUE \
-DENABLE_SHARED=TRUE \
-DLIB_INSTALL_DIR=lib
#{
CREW_LIB_SUFFIX
}
\
-DLIB_INSTALL_DIR=lib
#{
CREW_LIB_SUFFIX
}
\
-DENABLE_HDR10_PLUS=TRUE \
-DEXTRA_LIB='x265_main10.a;x265_main12.a' \
-DEXTRA_LINK_FLAGS='-L .' \
-DLINKED_10BIT=TRUE \
-DLINKED_12BIT=TRUE \
-Wno-dev \
-Wno-dev \
../source"
../source"
end
end
end
FileUtils
.
ln_s
'../build-10/libx265.a'
,
'builddir/libx265_main10.a'
FileUtils
.
ln_s
'../build-12/libx265.a'
,
'builddir/libx265_main12.a'
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