From owner-freebsd-ports@FreeBSD.ORG Sun Dec 3 00:39:38 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4323916A403 for ; Sun, 3 Dec 2006 00:39:38 +0000 (UTC) (envelope-from laszlof@FreeBSD.org) Received: from main.vonostingroup.com (main.vonostingroup.com [216.32.84.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 105ED43CA2 for ; Sun, 3 Dec 2006 00:39:14 +0000 (GMT) (envelope-from laszlof@FreeBSD.org) Received: from c-71-227-23-200.hsd1.mi.comcast.net ([71.227.23.200] helo=[192.168.0.3]) by main.vonostingroup.com with esmtpa (Exim 4.63 (FreeBSD)) (envelope-from ) id 1GqfOI-000LjZ-0d; Sat, 02 Dec 2006 17:39:34 -0700 Message-ID: <45721CC4.40309@FreeBSD.org> Date: Sat, 02 Dec 2006 19:39:32 -0500 From: "Frank J. Laszlo" User-Agent: Thunderbird 1.5.0.8 (X11/20061122) MIME-Version: 1.0 To: Erik Norgaard References: <4571EFC1.5050404@locolomo.org> In-Reply-To: <4571EFC1.5050404@locolomo.org> X-Enigmail-Version: 0.94.1.0 OpenPGP: id=012360EC Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - main.vonostingroup.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [26 6] X-AntiAbuse: Sender Address Domain - FreeBSD.org X-Source: X-Source-Args: X-Source-Dir: Cc: ports@freebsd.org Subject: Re: Newbie creating a port (smilutils) quicktime dependency problem X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Dec 2006 00:39:38 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Erik Norgaard wrote: > Hi: > > Ok, this is the second time I will try to create a port (first time > didn't work out because of too many bugs in the source). I have read the > porters handbook. > > Well, I have found a contribution to Kino, smilutils, > > http://www.kinodv.org/article/view/70/1/7 > > which should be able to handle the smil-file and produce output suitable > for dvd or viewing. > > Two questions: > > 1) How do I specify dependencies on header files. One thing is the -I in > CPPFLAGS, but I also need to declare a BUILDDEPENDS or something similar? Is this what you mean? .if defined(WITH_FOO) BUILD_DEPENDS+= ${LOCALBASE}/include/foo.h:${PORTSDIR}/devel/foo .endif > > 2) How do I deal with dependency on libquicktime? > > There doesn't seem to be a "without-quicktime" option, that would've > been nice to get started. The problem seems to be that the quicktime > port(s) are named differently than on most linux distros. Most likely the applications configure script with have a - --enable-quicktime feature, or vise versa to disable it. Heres a little sniplet that should help. .if defined(WITH_QUICKTIME) CONFIGURE_ARGS+= --enable-quicktime LIB_DEPENDS+= quicktime.0:${PORTSDIR}/multimedia/libquicktime .else CONFIGURE_ARGS+= --disable-quicktime .endif > > I tried to look at other ports, including ffmpeg but all seem to handle > this differently. One port try to edit the config script, but maybe > patches are prefered? you can either patch it, or use REINPLACE_CMD like this. post-patch: @${REINPLACE_CMD} -e 's|foo|bar|g' ${WRKSRC}/configure Or something of the sort. > > Any hints or tricks? > > Thanks, Erik Hope this helps, good luck! - -Frank -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iQIVAwUBRXIcw61QwXwBI2DsAQLVTw/+L+SybBsIQtnVh0bGo2CK+6yYS7lSoPwO GAo8qMrpxmvibKEl1fgCDLnBOIioIIusjTDWpykTJ4W4QlQD3TcUDF1fNw/zbi3E DtHqQhPG0yB8V3X2Ui7dYckfrLC55j90F5mrb/+b+cNtMAbMAZdCanTenBDv+nuG dCOm5Nb6ddlIKYRhdvOX4mVQBVGMmk4qY4imGglziq+dH7yvZweGM2xYcfjndGjf n/W8eQZ13VemSA5+a1Cdw854ZTV9RJXP735+QKBbMuXPYz8tqqJkgTUtU/v5tNrj jc/HPeJXfIYdAiOEIk0jWMiGPyPToLg4WY+hOH/so8X9n3A8/CczTSDjhBeq7qO6 5w5Lpd6hEbFR1ZH1NQTZRejbmySRPwfh1g6XMMNVozG4K5tPe32RIp8N/SIBJxNZ 2NqLX69DItFeq4EiKnfNUy/Bi1WZMztcDI3ODiL8ISMuJNLXiHipcIsUVGF/u2kj XX7PSlozDRpwSRVAjmszZibBjjAW3Ur8OozivcBsvyBleTRF7ELN4TkWeV1Ay1sH caB0C7PwhyZCjlCkzaWB3RRXKq95BPsv2U94b3GUEl7Ko+u26CSyrbOcR5u5HXZi 4VfRSs1tXEh8qQ4YzvTFAjTFAnBTQZSrGSCZ9+HGXOZQgS3S3YO/jwvEq8ygsCpE fI8XnYf2auI= =zqRB -----END PGP SIGNATURE-----