ports/87374: incorrect use of WITH_THEORA vs. WITH_LIBTHEORA in some ports

Zahemszky Gabor gabor at zahemszky.hu
Thu Oct 13 16:20:18 UTC 2005


>Number:         87374
>Category:       ports
>Synopsis:       incorrect use of WITH_THEORA vs. WITH_LIBTHEORA in some ports
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 13 16:20:17 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Zahemszky Gabor
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD zahemszky.hu 5.4-STABLE FreeBSD 5.4-STABLE #0: Wed Sep 28 20:30:48 CEST 2005 root at Picasso.Zahemszky.HU:/usr/obj/usr/src/sys/PICASSO i386


	
>Description:
Many ports in the audio and multimedia categories (and maybe others) have
optional dependencies to special libraries (eg. libogg, libvorbis). It looks
like in the FreeBSD ports-tree, there isn't a correct way to tell the libtheora
dependency.  Eg, in multimedia, there are libxine, vlc and vlc-devel, which use
the WITH_LIBTHEORA (or WITHOUT_LIBTHEORA) Makefile variable, but ffmpeg-devel,
mplayer and transcode use the WITH_THEORA (ot WITHOUT_THEORA) variables.
So if somebody'd like to include (exclude) libtheora, she has to define two
variables in /etc/make.conf: WITH_THEORA and WITH_LIBTHEORA (or w/o). It
would be better to use one; and after the other similar variable's name, I
think WITH_THEORA is the correct name.

>How-To-Repeat:
	egrep -R 'WITH(OUT)?_(LIB)?THEORA' /usr/ports
>Fix:

In /usr/ports/multimedia/{libxine,vlc,vlc-devel}/Makefile, in the next (or
similar lines), change the WITH(OUT)?_LIBTHEORA strings to WITH(OUT)?_THEORA.

==
if !defined(WITHOUT_LIBTHEORA) && (exists(${LOCALBASE}/lib/libtheora.so.1) ||
defined (WITH_LIBTHEORA))
==

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list