From owner-freebsd-ports@FreeBSD.ORG Sat Aug 30 21:18:17 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8CBAF106567C for ; Sat, 30 Aug 2008 21:18:17 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by mx1.freebsd.org (Postfix) with ESMTP id 1C8788FC17 for ; Sat, 30 Aug 2008 21:18:16 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so916519fgb.35 for ; Sat, 30 Aug 2008 14:18:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=xo/jPlZkOcZAtSRIg63b0L22PMxFPCTGjxJjFJgi2G0=; b=afyxAaC/hS+H8SOseOSwzJTrXoOtCo7k1zKpoZD/yU/WBBi085ezoNjliVRr1cvq66 oOvfYHV8nr5iQIraxZ03ha80Qg+EuANRvXU2D9ekAEYsWvoZn9QoSkY/X+4oaP/7ZLjh FKmVGKtnzzacoInHbMXItcLKMbT95tzJ/OfHY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=VYICVa774IjdeG3AWaNqvfsTwiQSGBsuL62YyB2XM8Wkj+r8Keb9QQN7j1i3zvgE5U hgWEFtnBUuioFOK0iLJozd2kvMN0uwJk37ioOsXUdzMZrhjZ4lWhtCpXFCsGOdn8fxHM QRJE9Wmlv8OQn5ufxu4hQCn/gQXlPdhwvoKM4= Received: by 10.86.93.19 with SMTP id q19mr3217757fgb.76.1220129518387; Sat, 30 Aug 2008 13:51:58 -0700 (PDT) Received: by 10.86.62.14 with HTTP; Sat, 30 Aug 2008 13:51:58 -0700 (PDT) Message-ID: <7d6fde3d0808301351y2ffe6007uc766dc9ef9c13a45@mail.gmail.com> Date: Sat, 30 Aug 2008 13:51:58 -0700 From: "Garrett Cooper" To: "Miroslav Lachman" <000.fbsd@quip.cz> In-Reply-To: <48B7CFB4.4040206@quip.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48B7CFB4.4040206@quip.cz> Cc: freebsd-ports@freebsd.org Subject: Re: failed to build mencoder (mplayer), missing header files 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: Sat, 30 Aug 2008 21:18:17 -0000 On Fri, Aug 29, 2008 at 3:30 AM, Miroslav Lachman <000.fbsd@quip.cz> wrote: > I am trying to install mencoder (or mplayer) on FreeBSD 6.3-RELEASE-p1 from > fresh portstree and getting this error about missing header file: [ ... ] > Stop in /usr/ports/multimedia/mplayer. > *** Error code 1 > > Stop in /usr/ports/multimedia/mplayer. > > png is installed and header file exists in my system: > # find /usr/local/ -name png.h > /usr/local/include/libpng/png.h > /usr/local/include/png.h > > I found post about similar problem with sugested fix / hack > http://lists.freebsd.org/pipermail/freebsd-multimedia/2008-July/008856.html > but it doesn't solved my problem. > > I get it compiled after following change in Makefile of mencoder + mplayer > > post-configure: > @${REINPLACE_CMD} -e 's#-pthread#${PTHREAD_LIBS}#g ; \ > s| -I.../libavutil| -I.../libavutil -I/usr/local/include|g' \ > ${WRKSRC}/config.mak > > > As I am not C programmer, I don't know if this is right fix or I did > something bad, but "it works for me" ;). The problem is that the CFLAGS are being passed in incorrectly. -I/usr/local/include *should* be in there. -Garrett