Skip site navigation (1)Skip section navigation (2)
Date:      29 Jan 2003 14:32:19 -0500
From:      Joe Marcus Clarke <marcus@marcuscom.com>
To:        "Andrey A. Chernov" <ache@nagual.pp.ru>
Cc:        Franz Klammer <klammer@webonaut.com>, FreeBSD GNOME Users <gnome@freebsd.org>
Subject:   Re: png-1.2.5 should install libpng12.pc
Message-ID:  <1043868739.67424.19.camel@shumai.marcuscom.com>
In-Reply-To: <20030129190935.GA19386@nagual.pp.ru>
References:  <1043865770.608.51.camel@ds9.webonaut.com> <20030129190935.GA19386@nagual.pp.ru>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-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 <bsd.port.post.mk>

--=-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




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