Skip site navigation (1)Skip section navigation (2)
Date:      29 Jan 2003 19:42:50 +0100
From:      Franz Klammer <klammer@webonaut.com>
To:        ache@FreeBSD.org
Cc:        gnome@freebsd.org
Subject:   png-1.2.5 should install libpng12.pc
Message-ID:  <1043865770.608.51.camel@ds9.webonaut.com>

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

--=-9YEsJLyiNsfYf8zBt4Gr
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

Hello!

gstreamer-plugins-0.5.2 didn't find the png-library because
it searches for a libpng12.pc:

---- gstreamer-plugins-0.5.2 configure output -----
checking for libpng12... Package libpng12 was not found in the
pkg-config search path.
Perhaps you should add the directory containing `libpng12.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libpng12' found
configure: These plugins will not be built: pngenc
-----------------------------------------------

attached two patched for Makefile and pkg-plist.

i hope my patches are not so rookie-like. 

franz.

-- 
WEBONAUT.com
http://webonaut.com
mailto:klammer@webonaut.com


--=-9YEsJLyiNsfYf8zBt4Gr
Content-Disposition: attachment; filename=png-Makefile.diff
Content-Type: text/x-makefile; name=png-Makefile.diff; charset=ISO8859-1
Content-Transfer-Encoding: 7bit

--- Makefile.orig	Wed Jan 29 19:26:46 2003
+++ Makefile	Wed Jan 29 19:27:05 2003
@@ -39,4 +39,8 @@
 pre-install:
 	@[ -d ${PREFIX}/include/libpng ] || ${MKDIR} ${PREFIX}/include/libpng
 
+post-install:
+	@[ -d ${PREFIX}/libdata/pkgconfig ] || ${MKDIR} ${PREFIX}/libdata/pkgconfig
+	@${CAT} ${WRKSRC}/scripts/libpng.pc.in | ${SED} 's|@PREFIX@|${PREFIX}|' > ${PREFIX}/libdata/pkgconfig/libpng12.pc
+
 .include <bsd.port.post.mk>

--=-9YEsJLyiNsfYf8zBt4Gr
Content-Disposition: attachment; filename=png-pkg-plist.diff
Content-Type: text/plain; name=png-pkg-plist.diff; charset=ISO8859-1
Content-Transfer-Encoding: 7bit

--- pkg-plist.orig	Wed Jan 29 19:26:53 2003
+++ pkg-plist	Wed Jan 29 19:26:58 2003
@@ -6,6 +6,7 @@
 @unexec rm -f %D/include/%f
 lib/libpng.a
 lib/libpng.so.%%SHLIB_VER%%
+libdata/pkgconfig/libpng12.pc
 @exec ln -sf %f %B/libpng.so
 @unexec rm -f %B/libpng.so
 @dirrm include/libpng

--=-9YEsJLyiNsfYf8zBt4Gr--


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?1043865770.608.51.camel>