summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2009-05-22 15:21:22 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2009-05-22 15:21:22 +0000
commitb3d6010683564f9150164e95c79b5d53633d33d2 (patch)
tree5c55f22dea46e23706d02ddac7e5bd4cf3020d2c /share
parent3aa71f9810cb1fc8178a73683ee61267b247b03c (diff)
Add more substitutions to .pc generation. Also provide
EXTRA_PKGCONFIG_SUBST for individual addition in package Makefiles.
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.xorg.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/share/mk/bsd.xorg.mk b/share/mk/bsd.xorg.mk
index 2e6747ae9..a54a6fad9 100644
--- a/share/mk/bsd.xorg.mk
+++ b/share/mk/bsd.xorg.mk
@@ -1,4 +1,4 @@
-# $OpenBSD: bsd.xorg.mk,v 1.29 2009/05/22 15:09:28 matthieu Exp $ -*- makefile -*-
+# $OpenBSD: bsd.xorg.mk,v 1.30 2009/05/22 15:21:21 matthieu Exp $ -*- makefile -*-
#
# Copyright © 2006 Matthieu Herrb
#
@@ -73,10 +73,13 @@ all: ${PKGCONFIG}
${PKGCONFIG}: ${PKGCONFIG}.in
@sed -e 's#@prefix@#${X11BASE}#g' \
+ -e 's#@datarootdir@#$${prefix}/share#g' \
+ -e 's#@datadir@#$${datarootdir}#g' \
-e 's#@exec_prefix@#$${prefix}#g' \
-e 's#@libdir@#$${exec_prefix}/lib#g' \
-e 's#@includedir@#$${prefix}/include#g' \
-e 's#@PACKAGE_VERSION@#${PACKAGE_VERSION}#g' \
+ ${EXTRA_PKGCONFIG_SUBST} \
< ${_SRCDIR}/${PKGCONFIG}.in > $@
install-pc: ${PKGCONFIG}