From owner-freebsd-gnome Wed Jan 29 11:32:26 2003 Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 03AD937B401 for ; Wed, 29 Jan 2003 11:32:24 -0800 (PST) Received: from creme-brulee.marcuscom.com (rdu57-17-158.nc.rr.com [66.57.17.158]) by mx1.FreeBSD.org (Postfix) with ESMTP id 01DC443FCF for ; Wed, 29 Jan 2003 11:32:22 -0800 (PST) (envelope-from marcus@marcuscom.com) Received: from [192.168.1.4] (shumai.marcuscom.com [192.168.1.4]) by creme-brulee.marcuscom.com (8.12.6/8.12.6) with ESMTP id h0TJW0DZ030740; Wed, 29 Jan 2003 14:32:00 -0500 (EST) (envelope-from marcus@marcuscom.com) Subject: Re: png-1.2.5 should install libpng12.pc From: Joe Marcus Clarke To: "Andrey A. Chernov" Cc: Franz Klammer , FreeBSD GNOME Users In-Reply-To: <20030129190935.GA19386@nagual.pp.ru> References: <1043865770.608.51.camel@ds9.webonaut.com> <20030129190935.GA19386@nagual.pp.ru> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-XgSAR1PN9zKiqEC4tTJA" Organization: MarcusCom, Inc. Message-Id: <1043868739.67424.19.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.1 Date: 29 Jan 2003 14:32:19 -0500 X-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,IN_REP_TO,NOSPAM_INC,PGP_SIGNATURE_2,REFERENCES, SPAM_PHRASE_00_01 version=2.43 Sender: owner-freebsd-gnome@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --=-XgSAR1PN9zKiqEC4tTJA Content-Type: multipart/mixed; boundary="=-Uy0B0ra8XnKnCxlxSu2P" --=-Uy0B0ra8XnKnCxlxSu2P Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2003-01-29 at 14:09, Andrey A. Chernov wrote: > On Wed, Jan 29, 2003 at 19:42:50 +0100, Franz Klammer wrote: >=20 > > checking for libpng12... Package libpng12 was not found in the > > pkg-config search path. > > Perhaps you should add the directory containing `libpng12.pc' >=20 > There is no such file in libpng. Andrey, I sent you a patch for this a few months ago, but I think it got eaten by a misconfiguration on my laptop. There is an additional patch to what Franz has submitted. I am attaching my work as well. Of course, a plist addition must also be made as Franz has pointed out.=20 Thanks. Joe --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-Uy0B0ra8XnKnCxlxSu2P Content-Disposition: attachment; filename=Makefile.diff Content-Type: text/x-makefile; name=Makefile.diff; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable --- Makefile.orig Wed Dec 11 13:17:51 2002 +++ Makefile Wed Dec 11 13:22:28 2002 @@ -7,6 +7,7 @@ =20 PORTNAME=3D png PORTVERSION=3D 1.2.5 +PORTREVISION=3D 1 CATEGORIES=3D graphics MASTER_SITES=3D http://www.libpng.org/pub/png/src/ \ ftp://swrinde.nde.swri.edu/pub/png/src/ \ @@ -19,6 +20,8 @@ =20 MAINTAINER=3D ache@FreeBSD.org =20 +RUN_DEPENDS=3D pkg-config:${PORTSDIR}/devel/pkgconfig + MAKEFILE=3D ${WRKSRC}/scripts/makefile.freebsd INSTALLS_SHLIB=3D yes SHLIB_VER=3D 5 @@ -38,5 +41,11 @@ =20 pre-install: @[ -d ${PREFIX}/include/libpng ] || ${MKDIR} ${PREFIX}/include/libpng + +post-install: + ${CAT} ${WRKSRC}/scripts/libpng.pc.in | ${SED} -e \ + 's|@PREFIX@|${PREFIX}|' > ${WRKSRC}/scripts/libpng.pc + ${INSTALL_DATA} ${WRKSRC}/scripts/libpng.pc \ + ${PREFIX}/libdata/pkgconfig/libpng12.pc =20 .include --=-Uy0B0ra8XnKnCxlxSu2P Content-Disposition: attachment; filename=patch-scripts_libpng.pc.in Content-Type: text/plain; name=patch-scripts_libpng.pc.in; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable --- scripts/libpng.pc.in.orig Wed Dec 11 13:25:12 2002 +++ scripts/libpng.pc.in Wed Dec 11 13:25:35 2002 @@ -7,5 +7,5 @@ Name: libpng12 Description: Loads and saves PNG files Version: 1.2.5 -Libs: -L${libdir} -lpng12 -lz -lm -Cflags: -I${includedir}/libpng12 +Libs: -L${libdir} -lpng -lz -lm +Cflags: -I${includedir}/libpng --=-Uy0B0ra8XnKnCxlxSu2P-- --=-XgSAR1PN9zKiqEC4tTJA Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQA+OCxCb2iPiv4Uz4cRAlkqAJ9SC/JiH38gVBg8RVd2ceAQ5i6SRwCgm8CL kOzKM1Y6BRx6qNlXuS67o/A= =LuWe -----END PGP SIGNATURE----- --=-XgSAR1PN9zKiqEC4tTJA-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-gnome" in the body of the message