summaryrefslogtreecommitdiff
path: root/mk/buildlink3/pkgconfig-builtin.mk
diff options
context:
space:
mode:
authorcube <cube>2008-10-06 13:19:11 +0000
committercube <cube>2008-10-06 13:19:11 +0000
commit65612a2c8cacb1f25fd3a7af005f236d9963399b (patch)
tree11d5e94feb967f09b03e4e6e7c1a6e86c8936671 /mk/buildlink3/pkgconfig-builtin.mk
parent9f14c03dbe6b9bd17a23cb9701f02bfde7bd5c61 (diff)
downloadpkgsrc-65612a2c8cacb1f25fd3a7af005f236d9963399b.tar.gz
Complete previous, by entering the package version definition if the file
looked up is not a pkgconfig one, at the condition that the version script is defined.
Diffstat (limited to 'mk/buildlink3/pkgconfig-builtin.mk')
-rw-r--r--mk/buildlink3/pkgconfig-builtin.mk6
1 files changed, 4 insertions, 2 deletions
diff --git a/mk/buildlink3/pkgconfig-builtin.mk b/mk/buildlink3/pkgconfig-builtin.mk
index 7907847e62b..9e1089126ed 100644
--- a/mk/buildlink3/pkgconfig-builtin.mk
+++ b/mk/buildlink3/pkgconfig-builtin.mk
@@ -1,4 +1,4 @@
-# $NetBSD: pkgconfig-builtin.mk,v 1.3 2008/10/06 13:08:16 cube Exp $
+# $NetBSD: pkgconfig-builtin.mk,v 1.4 2008/10/06 13:19:11 cube Exp $
# This file is used to factor out a common pattern in builtin.mk files backed
# up by the existence of a pkgconfig file.
@@ -30,7 +30,9 @@ MAKEVARS:= ${MAKEVARS} IS_BUILTIN.${BUILTIN_PKG}
.if !defined(BUILTIN_PKG.${BUILTIN_PKG}) && \
!empty(IS_BUILTIN.${BUILTIN_PKG}:M[yY][eE][sS]) && \
- !empty(FIND_FILES_${BUILTIN_PKG}:M*.pc)
+ (!empty(FIND_FILES_${BUILTIN_PKG}:M*.pc) || \
+ (empty(FIND_FILES_${BUILTIN_PKG}:M__nonexistent__) && \
+ defined(BUILTIN_VERSION_SCRIPT.${BUILTIN_PKG})))
. if !defined(BUILTIN_VERSION_SCRIPT.${BUILTIN_PKG})
BUILTIN_VERSION_SCRIPT.${BUILTIN_PKG}= ${SED} -n -e 's/Version: //p'
. endif