Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Dec 2007 12:46:14 -0600
From:      "Jeremy Messenger" <mezz7@cox.net>
To:        "Jona Joachim" <jaj@hcl-club.lu>
Cc:        freebsd-multimedia@freebsd.org
Subject:   Re: ports/118458: [UPDATE] multimedia/handbrake
Message-ID:  <op.t28jrcpd9aq2h7@mezz.mezzweb.com>
In-Reply-To: <20071212141050.297c51db@hcl-club.lu>
References:  <200712060650.lB66o4kF022891@freefall.freebsd.org> <op.t2xn8ek09aq2h7@mezz.mezzweb.com> <20071207231159.7ec5cc90@spaceman.my.domain> <op.t2zmbgdp9aq2h7@mezz.mezzweb.com> <op.t203zjnc9aq2h7@mezz.mezzweb.com> <20071211124248.6acc1382@hcl-club.lu> <op.t26lflup9aq2h7@mezz.mezzweb.com> <20071212141050.297c51db@hcl-club.lu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 12 Dec 2007 07:10:50 -0600, Jona Joachim <jaj@hcl-club.lu> wrote=
:

> On Tue, 11 Dec 2007 11:27:11 -0600
> "Jeremy Messenger" <mezz7@cox.net> wrote:
>
>> On Tue, 11 Dec 2007 05:42:48 -0600, Jona Joachim <jaj@hcl-club.lu>
>> wrote:
>>
>> <snip>
>> > I tested it with your latest changes on my system and everything
>> > works as expected, on-the-fly DVD ripping was also fine.
>> >
>> > However it doesn't build in tinderbox.
>> >
>> > Here is the whole output:
>> > http://www.hcl-club.lu/~jaj/stuff/handbrake-0.9.1.log
>> >
>> > The main problem is that libvorbis doesn't build because it doesn't=

>> > find libogg:
>> >
>> > checking for Ogg... no
>> > ...
>> > configure: error: must have Ogg installed!
>> >
>> > (on line 6678)
>>
>> Umm... I think I see a problem with it. It couldn't find ogg,
>> because pkg-config does not exist. I have built handbrake and see in
>> the config.log of libvorbis:
>>
>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>> configure:20133: found /usr/local/bin/pkg-config
>> configure:20146: result: /usr/local/bin/pkg-config
>> configure:20164: checking for ogg >=3D 1.0
>> configure:20168: result: yes
>> configure:20172: checking OGG_CFLAGS
>> configure:20175: result: -I/usr/local/include
>> configure:20178: checking OGG_LIBS
>> configure:20181: result: -L/usr/local/lib -logg
>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>>
>> Ouch, it built with my system's libogg rather than handbrake's
>> libogg. It needs to be tweak the PKG_CONFIG_PATH by set it to
>> 'PKG_CONFIG_PATH=3D$CONTRIB/lib/pkgconfig'. But after look inside
>> libvorbis that there has options:
>>
>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>>    --with-ogg=3DPFX   Prefix where libogg is installed (optional)
>>    --with-ogg-libraries=3DDIR   Directory where libogg library is
>> installed (optional)
>>    --with-ogg-includes=3DDIR   Directory where libogg header files ar=
e
>> installed (optional)
>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>>
>> Let's add '--with-ogg-includes=3D$CONTRIB/include
>> --with-ogg-libraries=3D$CONTRIB/lib' in files/patch-contrib-Jamfile
>> after that '--with-ogg=3D$CONTRIB' to see if it helps in your
>> tinderbox. If not then we will have to go with PKG_CONFIG_PATH stuff.=

>
> It builds fine in tinderbox with your latest patch!
> I also tested the resulting binary in different scenarios and
> everything was ok.
>
>> > The are some other minor problems.
>>
>> What other minor problems?
>
> I think the only thing that remains is:
>
> vhook/drawtext.c:61:10: error: #include expects "FILENAME" or <FILENAM=
E>
> vhook/drawtext.c:62:10: error: #include expects "FILENAME" or <FILENAM=
E>
>
> on line 642 and 643 in the updated
> http://www.hcl-club.lu/~jaj/stuff/handbrake-0.9.1.log
>
> these errors concern the following lines in
> contrib/ffmpeg/vhook/drawtext.c:
> #include FT_FREETYPE_H
> #include FT_GLYPH_H
>
> Those 2 defines aren't referenced in any other file. Strange thing is
> it only happens in tinderbox. However these errors are not fatal to th=
e
> built.

Add freetype2 dependency should fix it. Add this in Makefile.

LIB_DEPENDS=3D	freetype.9:${PORTSDIR}/print/freetype2

I have a last question for you. Do you want to maintain this port? Yes o=
r  =

no? If no, multimedia@ will continue try to do with our best. After this=
,  =

I shall commit the update of handbrake (with freetype2 include).

>> > Unfortunately tinderbox always cleans the work folder after it
>> > finishes. I don't know how to make it keep it to have a look at
>> > what's going wrong.
>>
>> Are you using MC tinderbox? If yes, there has README at about 290
>> line:
>>
>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>> Sometimes, the log alone is not sufficient for figuring out
>> why a port failed to build.  In such cases, one must also see the
>> port's work directory.  To have Tinderbox save this, create an empty
>> file called ``.keep'' in the port's directory, and the work directory=

>> will be tarred, compressed, and copied to ${pb}/wrkdirs/{BUILD}
>> (where {BUILD} is the Build name).
>> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>
> Thanks, that's what I needed! :)

No problem.

Cheers,
Mezz

>> I used to have a MC tinderbox, but that system has died some months
>> ago. I haven't buy a cheap system for tinderbox yet.
>>
>> Cheers,
>> Mezz
>
>
> Regards,
> Jona


-- =

mezz7@cox.net  -  mezz@FreeBSD.org
FreeBSD GNOME Team  -  FreeBSD Multimedia Hat (ports, not src)
http://www.FreeBSD.org/gnome/  -  gnome@FreeBSD.org
http://wiki.freebsd.org/multimedia  -  multimedia@FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?op.t28jrcpd9aq2h7>