pkgsrc/lang/python24/buildlink3.mk
dsainty 82a2ee5b15 Any package that determines libraries to link via:
$PYTHON -c "from distutils import sysconfig; print sysconfig.get_config_var('SHLIBS');"

... where bdb.buildlink.mk has been used and it satisfied the requirement from
Pkgsrc (E.g. via databases/db4) would fail to build because the required -ldb4
library was not itself buildlinked.

To rectify this, pull in bdb.buildlink.mk in python??/buildlink3.mk under the
same conditions as it is pulled in in the package's own makefile.

No revision bump required, this almost certainly only affects packages and
environments that simply wouldn't build at all prior to the fix.

Fixes the build of py-ORBit on Linux (Python 2.4 or 2.5), and PR39377.
2009-01-23 03:05:53 +00:00

38 lines
1.1 KiB
Makefile

# $NetBSD: buildlink3.mk,v 1.8 2009/01/23 03:05:53 dsainty Exp $
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
PYTHON24_BUILDLINK3_MK:= ${PYTHON24_BUILDLINK3_MK}+
.if !empty(BUILDLINK_DEPTH:M+)
BUILDLINK_DEPENDS+= python24
.endif
BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Npython24}
BUILDLINK_PACKAGES+= python24
BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}python24
.if !empty(PYTHON24_BUILDLINK3_MK:M+)
BUILDLINK_API_DEPENDS.python24+= python24>=2.4
BUILDLINK_ABI_DEPENDS.python24?= python24>=2.4.2nb4
BUILDLINK_PKGSRCDIR.python24?= ../../lang/python24
.if defined(BUILDLINK_DEPMETHOD.python)
BUILDLINK_DEPMETHOD.python24?= ${BUILDLINK_DEPMETHOD.python}
.endif
BUILDLINK_INCDIRS.python24+= include/python2.4
BUILDLINK_LIBDIRS.python24+= lib/python2.4/config
BUILDLINK_TRANSFORM+= l:python:python2.4
.endif # PYTHON24_BUILDLINK3_MK
BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
.include "../../mk/bsd.fast.prefs.mk"
.if ${OPSYS} != "IRIX"
. include "../../mk/bdb.buildlink3.mk"
.endif
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"