SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Personally, I'll use sbopkg to edit the slackbuilds and remove any checks on options I want. For me, it is much easier than copying and pasting a ton of different variables to the commandline. This also allows me to still use the ncurses version easily.
# Configure ffmpeg features not autodetected by default
# Unfortunately ffmpeg's configure doesn't support --enable-feature=yes
# syntax, so we have to do it the complicated way :/
libfrei0r="--enable-frei0r"
librtmp="--enable-librtmp"
libvpx="--enable-libvpx"
libxvid="--enable-libxvid"
libass="--enable-libass"
libopenal="--enable-openal"
libilbc="--enable-libilbc"
libtwolame="--enable-libtwolame"
libfaac="--enable-libfaac"
non_free="--enable-nonfree"
mp3lame="--enable-libmp3lame"
libx264="--enable-libx264"
set -e
i feel it about it. i mean, i set the yes var to "yes" on ffmpeg slackbuild, but on the right side still the "no"option, its like confusing yes and no at the same time. Mr bassmadrigal, your setting include all variables?. it seems it does. Thanks.
For any variables you don't want to use, you can either keep them as is, or just remove them from the Slackbuild.
Other slackbuilds might include an if/then statement. I'll remove the if statement on any that I want to use. This example is the kodi slackbuild, and I want to enable the webserver, but not the other options.
Code:
# The version of ffmpeg on SBo is too old to compile kodi.
# Optional ffmpeg is still available but not turned on by
# default.
if [ "${FFMPEG:-no}" == "yes" ]; then
OPT_DEPS="--with-ffmpeg=shared"
else
OPT_DEPS=""
fi
# Build webserver. Requires libmicrohttpd.
if [ "${WEBSERVER:-no}" == "yes" ]; then
OPT_DEPS="$OPT_DEPS --enable-webserver"
else
OPT_DEPS="$OPT_DEPS --disable-webserver"
fi
# Use pulseaudio.
if [ "${PULSE:-no}" == "yes" ]; then
OPT_DEPS="$OPT_DEPS --enable-pulse"
fi
Edited, it would be:
Code:
# The version of ffmpeg on SBo is too old to compile kodi.
# Optional ffmpeg is still available but not turned on by
# default.
if [ "${FFMPEG:-no}" == "yes" ]; then
OPT_DEPS="--with-ffmpeg=shared"
else
OPT_DEPS=""
fi
# Build webserver. Requires libmicrohttpd.
OPT_DEPS="$OPT_DEPS --enable-webserver"
# Use pulseaudio.
if [ "${PULSE:-no}" == "yes" ]; then
OPT_DEPS="$OPT_DEPS --enable-pulse"
fi
You'd just have to look through and see how they manage their optional variables and edit accordingly.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.