On 07/26/2012 05:18 AM, Bruce Dubbs wrote: > Bruce Dubbs wrote: >> Armin K. wrote: >> >>> Also, in udev-lfs tarball, udev.pc has udevdir=/usr/lib/udev, but it >>> should be /lib/udev .. That one makes external packages install it's >>> helpers into /usr/lib/udev instead of /lib/udev. >> >> I hardcoded udev.pc and libudev.pc. but both of those should be built >> from the parent.pc.in files. I liked the way you did it in gudev. I'll >> make those changes soon. > > Armin, > > Does this look OK to you? I tested and it seems to work for me. > > VPATH = ... src/libudev > > udev: ... > build/udev.pc \ > build/libudev.pc > > SED_PROCESS = \ > sed -e 's|@VERSION@|$(VERSION)|g' \ > -e 's|@prefix@|/usr|g' \ > -e 's|@exec_prefix@|/usr|g' \ > -e 's|@udevlibexecdir@|/lib/udev|g' \ > -e 's|@libdir@|/usr/lib|g' \ > -e 's|@includedir@|/usr/include|g' \ > < $< > $@ > > build/%pc: %pc.in > @echo SED $< > @$(SED_PROCESS) > > Then in install: > > @cp -v build/{lib,}udev.pc $(DESTDIR)/usr/lib/pkgconfig > > SED_PROCESS could then be used in makefile-incl.keymap and > makefile-incl.gudev also. > > -- Bruce >
While it might be a correct way, I prefer mine. You don't generate them in build dir, but instead just direct the output to the dest .pc file. Also, there is a problem with udev manual page. It's nearly empty - it contains .so link to a page that we don't install. I suggest you check it, too. -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page