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
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page