pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkgsrc's pkg-config not finding stuff?

After removing Slackware's bundled and installing pkgsrc's own
modular Xorg, I'm now trying to make a package for the Synaptics
TouchPad driver that pkgsrc lacks.

I can build the source code "manually" all right, but when I try to make
a package of it, I find that pkgsrc-wrapped pkg-config doesn't find the
stuff it should, and the build breaks.

Relevant part of the log:

-----BEGIN LOG-----
checking for pkg-config... 
checking pkg-config is at least version 0.9.0... yes
Package xorg-macros was not found in the pkg-config search path.
Perhaps you should add the directory containing `xorg-macros.pc'
to the PKG_CONFIG_PATH environment variable
No package 'xorg-macros' found
checking which optional backends will be build... eventcomm
checking if XINPUT is defined... no
checking for XORG... no
configure: error: Package requirements (xorg-server xproto ) were not met:

No package 'xorg-server' found
No package 'xproto' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables XORG_CFLAGS
and XORG_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
*** Error code 1

bmake: stopped in /usr/pkgsrc/x11/xf86-input-synaptics
*** Error code 1

bmake: stopped in /usr/pkgsrc/x11/xf86-input-synaptics
Exit 1
[pkgsrc/x11/xf86-input-synaptics]# echo $PKG_CONFIG_PATH
[pkgsrc/x11/xf86-input-synaptics]# which pkg-config
[pkgsrc/x11/xf86-input-synaptics]# /usr/pkg/bin/pkg-config xorg-server
[pkgsrc/x11/xf86-input-synaptics]# /usr/pkg/bin/pkg-config xproto
[pkgsrc/x11/xf86-input-synaptics]# /usr/pkg/bin/pkg-config quuuuuuuuuuuuuux
Exit 1
-----END LOG-----

An 'env' instruction I temporarily added to the original 'configure'
script shows that the $PKG_CONFIG_PATH variable in configure's
environment contains all the right directories, but pkgsrc-wrapped
pkg-config seems to ignore it.

How do I get it to find the stuff that IS installed?

Here's the package's Makefile, made via url2pkg & pkglint, then
modified by hand:

# $NetBSD$

DISTNAME=       xf86-input-synaptics-synaptics-1.2-branch
PKGNAME=        xf86-input-synaptics-1.2.2

COMMENT=        This is the Synaptics TouchPad driver for the modular Xorg 
LICENSE=        mit

PKG_DESTDIR_SUPPORT=    user-destdir
BUILD_DEPENDS+=         xorg-util-macros>=1.1:../../devel/xorg-util-macros
DEPENDS+=               libXrandr-[0-9]*:../libXrandr
#still not sure DEPENDS+=xf86-input-mouse-[0-9]*:../xf86-input-mouse

GNU_CONFIGURE=          yes
USE_TOOLS+=             pkg-config aclocal automake m4 autom4te autoheader 
autoconf autoreconf


        cd ${WRKSRC} && ./

CONFIGURE_ARGS+=--prefix=/usr/pkg --sysconfdir=/etc/X11 --localstatedir=/var

.include "../../mk/"
-----END MAKEFILE-----

Home | Main Index | Thread Index | Old Index