![]() |
|
FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD. |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
AMD64 FreeBSD 7 stable
Recently ffmpeg added back the swscaler (software scaler) which broke the VLC port. Other than directly editing the Makefile in /usr/ports/multimedia/ffmpeg is there a way I can pass "--disable-swscale" when I invoke "make install clean" in /usr/ports/multimedia/ffmpeg ? I am a little nervous about directly editing Makefile. |
|
|||
![]()
usually if you wanted to make permanent configurations to a port you'd edit /usr/local/etc/pkgtools.conf however in this circumstance that's not going to work and if it were to work it'd be incorrect.
What i suggest you do is create a patch and submit it to the port maintainer. Here is the patch if you're interested in using it ( i haven't tested this ): Quote:
__________________
"No, that's wrong, Cartman. But don't worry, there are no stupid answers, just stupid people." -- Mr. Garrison Forum Netiquette |
|
||||
![]() Quote:
Quote:
Code:
.include "Makefile.local" In short, it is probably just easier to edit the Makefile since that line will be obliterated the next time you update your ports tree. |
|
||||
![]() Quote:
No they won't, make.conf is sourced before the Makefile (See /usr/share/mk/sys.mk), Makefile.local is sourced after the Makefile (Which is why Makefile.local uses +=), commandline arguments are also read before the Makefile ... So it won't override anything. Quote:
Trust me, it works as I said it does .... But don't take my word for it, try it out your self ![]()
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. |
|
||||
![]()
Well, let's see:
Here are the default CONFIGURE_ARGS for ffmpeg: Code:
# cd /usr/ports/multimedia/ffmpeg # make configure *SNIP* # less work/ffmpeg-2008-07-27/config.err # ./configure --cc=cc --prefix=/usr/local --disable-debug --enable-memalign-hack --enable-shared --enable-postproc --extra-cflags=-I/usr/local/include/vorbis -msse -I/usr/local/include --extra-ldflags=-L/usr/local/lib -la52 --extra-libs=-pthread --enable-gpl --enable-pthreads --enable-swscale --mandir=/usr/local/man --enable-liba52 --enable-liba52bin --disable-libfaac --enable-libfaad --enable-libfaadbin --disable-libamr-nb --disable-libamr-wb --disable-libgsm --disable-libmp3lame --disable-ffplay --enable-libtheora --enable-libvorbis --enable-libx264 --disable-libxvid * SNIP * # make clean Code:
.if ${.CURDIR:M*/multimedia/ffmpeg} CONFIGURE_ARGS=--disable-swscale .endif Code:
# make configure * SNIP * # less work/ffmpeg-2008-07-27/config.err # ./configure --disable-swscale --cc=cc --prefix=/usr/local --disable-debug --enable-memalign-hack --enable-shared --enable-postproc --extra-cflags=-I/usr/local/include/vorbis -msse -I/usr/local/include --extra-ldflags=-L/usr/local/lib -la52 --extra-libs=-pthread --enable-gpl --enable-pthreads --enable-swscale --mandir=/usr/local/man --enable-liba52 --enable-liba52bin --disable-libfaac --enable-libfaad --enable-libfaadbin --disable-libamr-nb --disable-libamr-wb --disable-libgsm --disable-libmp3lame --disable-ffplay --enable-libtheora --enable-libvorbis --enable-libx264 --disable-libxvid # make clean Here they are with the commandline argument after removing the code from /etc/make.conf: Code:
# make CONFIGURE_ARGS=--disable-swscale configure *SNIP* # less work/ffmpeg-2008-07-27/config.err # ./configure --disable-swscale *SNIP * # make clean Now with Makefile.local: Code:
# echo "CONFIGURE_ARGS+=--disable-swscale" > Makefile.local # make configure * SNIP * # less work/ffmpeg-2008-07-27/config.err # ./configure --disable-swscale --cc=cc --prefix=/usr/local --disable-debug --enable-memalign-hack --enable-shared --enable-postproc --extra-cflags=-I/usr/local/include/vorbis -msse -I/usr/local/include --extra-ldflags=-L/usr/local/lib -la52 --extra-libs=-pthread --enable-gpl --enable-pthreads --enable-swscale --mandir=/usr/local/man --enable-liba52 --enable-liba52bin --disable-libfaac --enable-libfaad --enable-libfaadbin --disable-libamr-nb --disable-libamr-wb --disable-libgsm --disable-libmp3lame --disable-ffplay --enable-libtheora --enable-libvorbis --enable-libx264 --disable-libxvid *SNIP* Honestly, I think the best way to deal with this is submit a bug report and/or email the ffmpeg maintainer since this is apparently breaking another port. |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
${REINPLACE_CMD} on Makefile | indiocolifa | FreeBSD Ports and Packages | 3 | 26th March 2009 11:16 PM |
Makefile Problem | BadWolf | Programming | 4 | 15th March 2009 01:58 PM |
Change compile options for a determined port | Treppiede | FreeBSD Ports and Packages | 4 | 5th October 2008 05:59 AM |
ports config and makefile scripting | boincv | FreeBSD Ports and Packages | 6 | 1st October 2008 07:57 AM |
First Post.. Woot!! --- An obvious Makefile question..? | roundkat | OpenBSD Packages and Ports | 2 | 2nd May 2008 03:05 PM |