summaryrefslogtreecommitdiff
path: root/lang/lua
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2015-07-20 11:30:54 +0000
committerwiz <wiz@pkgsrc.org>2015-07-20 11:30:54 +0000
commit70815a64e39e2ef597bd1565161fcc3e02ceed2d (patch)
tree6e4e500817c2474a31387f184fb66c1dbabbb0e0 /lang/lua
parent1530349fb0a7cba6d0b975e993a5229f0dfe4f3f (diff)
downloadpkgsrc-70815a64e39e2ef597bd1565161fcc3e02ceed2d.tar.gz
Instead of having only lua.pc, provide both the versioned pkg-config file
and the unversioned one. As discussed on tech-pkg.
Diffstat (limited to 'lang/lua')
-rw-r--r--lang/lua/buildlink3.mk11
1 files changed, 10 insertions, 1 deletions
diff --git a/lang/lua/buildlink3.mk b/lang/lua/buildlink3.mk
index 2271eedd08b..b4779513b31 100644
--- a/lang/lua/buildlink3.mk
+++ b/lang/lua/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.17 2013/10/30 06:18:09 dholland Exp $
+# $NetBSD: buildlink3.mk,v 1.18 2015/07/20 11:30:54 wiz Exp $
#
# This is a fake buildlink3.mk file. It figures out the Lua version
# and then includes the real buildlink3.mk file for that Lua version.
@@ -10,3 +10,12 @@
.include "${LUA_PKGSRCDIR}/buildlink3.mk"
BUILDLINK_PREFIX.lua= ${BUILDLINK_PREFIX.${LUA_PACKAGE}}
+
+.if !defined(LUA_BUILDLINK3_MK)
+LUA_BUILDLINK3_MK:=
+
+BUILDLINK_TARGETS+= buildlink-bin-unversioned
+
+buildlink-bin-unversioned:
+ ${LN} -s ${BUILDLINK_DIR}/lib/pkgconfig/lua-${_LUA_DOT_VERSION}.pc ${BUILDLINK_DIR}/lib/pkgconfig/lua.pc
+.endif # LUA_BUILDLINK3_MK