Syntax to install ffmpeg with lame option from ports

Status
Not open for further replies.

NasKar

Guru
Joined
Jan 8, 2016
Messages
739
I can't seem to find the correct syntax to install ffmpeg from ports with the lame option in a batch script.
iocage exec ${JAIL_NAME} make -C /usr/ports/multimedia/ffmpeg install WITH_lame=yes BATCH=yes doesn't work.
iocage exec ${JAIL_NAME} make -C /usr/ports/multimedia/ffmpeg clean install BATCH=yes will install it with all the default options, without user input but lame is not enabled.
Hopefully someone knows this off the top of their head <G>.
 

NasKar

Guru
Joined
Jan 8, 2016
Messages
739
No.
 

gt2416

Patron
Joined
Feb 4, 2018
Messages
262
I tried for a while as well and could not figure it out! This should be simple but none of the syntax I tried works. I tried many options from the docs and various sites. The only thing that worked was to make a "make.conf" file in /etc and add the option like:

ffmpeg_SET+=lame

Then install using batch=yes and it picked up the option. If that does not work try

options_SET+=lame

(I tried it both ways and it worked)

To create the make config from bash you can do

iocage exec jailname touch /etc/make.conf
iocage exec jailname echo "ffmpeg_SET+=lame" >> /etc/make.conf
 
Last edited:
Status
Not open for further replies.
Top