Skip to content

Commit f27b7bb

Browse files
committed
py-numpy: provide pkg-config file in the standard location
this helps the scipy build in finding numpy (will not help outside pkgsrc though)
1 parent 00203d5 commit f27b7bb

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

math/py-numpy/buildlink3.mk

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $NetBSD: buildlink3.mk,v 1.21 2024/08/15 22:00:56 wiz Exp $
1+
# $NetBSD: buildlink3.mk,v 1.22 2026/02/17 12:06:50 wiz Exp $
22

33
BUILDLINK_TREE+= py-numpy
44

@@ -13,6 +13,12 @@ BUILDLINK_API_DEPENDS.py-numpy+= ${PYPKGPREFIX}-numpy>=1.0
1313
BUILDLINK_ABI_DEPENDS.py-numpy+= ${PYPKGPREFIX}-numpy>=1.20.3nb1
1414
BUILDLINK_PKGSRCDIR.py-numpy?= ../../math/py-numpy
1515

16+
BUILDLINK_TARGETS+= buildlink-numpy-unversioned
17+
.PHONY: buildlink-numpy-unversioned
18+
buildlink-numpy-unversioned:
19+
${LN} -s ${PREFIX}/${PYSITELIB}/numpy/_core/lib/pkgconfig/numpy.pc \
20+
${BUILDLINK_DIR}/lib/pkgconfig/numpy.pc
21+
1622
.include "../../mk/bsd.fast.prefs.mk"
1723

1824
.include "../../math/py-numpy/make_env.mk"

0 commit comments

Comments
 (0)