mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-04 20:29:09 +01:00
multimedia/mpv: Remove NUMJOBS support.
The main issue was not supporting "-j", people can specify it via BUILD_OPTS. Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
parent
815ffb6cc6
commit
504d2cf4a8
2 changed files with 4 additions and 19 deletions
|
@ -18,24 +18,13 @@ Dependencies are autodetected. Some optional dependencies are disabled by
|
|||
default and may be enabled (see BUILD_OPTS). Optional dependencies that are
|
||||
enabled by default may be disabled (see BUILD_OPTS).
|
||||
|
||||
NUMJOBS:
|
||||
The default number of jobs to be run during the build process is set to 1;
|
||||
To override, set NUMJOBS to your preference prior to or at build time. If
|
||||
you run into suspected bugs with mpv, I recommend first building and installing
|
||||
mpv with NUMJOBS set to the default of 1. e.g.:
|
||||
|
||||
~# NUMJOBS=2 sh mpv.SlackBuild
|
||||
|
||||
or, if you use fakeroot to build packages:
|
||||
|
||||
~# fakeroot env NUMJOBS=2 sh mpv.SlackBuild
|
||||
|
||||
BUILD_OPTS:
|
||||
To override the default for build options, set the shell variable BUILD_OPTS
|
||||
prior to or at build time. For example, to enable cdda and openal, which are
|
||||
disabled by default, you could use the following:
|
||||
disabled by default, and to build with four jobs in parallel, you could use the
|
||||
following:
|
||||
|
||||
~# BUILD_OPTS="--enable-cdda --enable-openal" sh mpv.SlackBuild
|
||||
~# BUILD_OPTS="--enable-cdda --enable-openal --jobs=4" sh mpv.SlackBuild
|
||||
|
||||
or, if you use fakeroot to build packages:
|
||||
|
||||
|
|
|
@ -76,12 +76,8 @@ find -L . \
|
|||
DOCS="Copyright LICENSE README.md RELEASE_NOTES"
|
||||
MANUAL="DOCS/*.md DOCS/*.rst DOCS/*.txt DOCS/client_api_examples/"
|
||||
|
||||
# By default, play it safe since it is so easy to override.
|
||||
NUMJOBS=${NUMJOBS:-1}
|
||||
|
||||
# This leaves an opening for build options.
|
||||
BUILD_OPTS=${BUILD_OPTS:-""}
|
||||
BUILD_OPTS="$BUILD_OPTS --jobs=$NUMJOBS"
|
||||
|
||||
# Setting CFLAGS and CXXFLAGS breaks configure.
|
||||
./waf configure \
|
||||
|
@ -92,7 +88,7 @@ BUILD_OPTS="$BUILD_OPTS --jobs=$NUMJOBS"
|
|||
--docdir=/usr/doc/$PRGNAM-$VERSION \
|
||||
$BUILD_OPTS
|
||||
|
||||
./waf --jobs=$NUMJOBS build
|
||||
./waf build
|
||||
./waf --destdir=$PKG install
|
||||
|
||||
for f in $PKG/etc/mpv/*.conf ; do
|
||||
|
|
Loading…
Reference in a new issue