blob: d7949a78b999c2b15a97dc89a37a900d9983acd5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# $NetBSD: buildlink2.mk,v 1.4 2002/10/09 11:40:41 jlam Exp $
.if !defined(PYTHON22_BUILDLINK2_MK)
PYTHON22_BUILDLINK2_MK= # defined
.include "../../mk/bsd.prefs.mk"
BUILDLINK_PACKAGES+= python22
BUILDLINK_DEPENDS.python22?= python22>=2.2
BUILDLINK_PKGSRCDIR.python22?= ../../lang/python22
.if defined(BUILDLINK_DEPMETHOD.python)
BUILDLINK_DEPMETHOD.python22?= ${BUILDLINK_DEPMETHOD.python}
.endif
EVAL_PREFIX+= BUILDLINK_PREFIX.python22=python22
BUILDLINK_PREFIX.python22_DEFAULT= ${LOCALBASE}
_PY22_PLIST= ${.CURDIR}/${BUILDLINK_PKGSRCDIR.python22}/PLIST.common
_PY22_PLIST+= ${.CURDIR}/${BUILDLINK_PKGSRCDIR.python22}/PLIST.${LOWER_OPSYS}
_PY22_PLIST+= ${.CURDIR}/${BUILDLINK_PKGSRCDIR.python22}/PLIST.common_end
BUILDLINK_FILES.python22!= ${CAT} ${_PY22_PLIST} | ${GREP} "^include/"
BUILDLINK_FILES.python22+= lib/python2.2/config/libpython2.2.*
BUILDLINK_TRANSFORM+= l:python:python2.2
BUILDLINK_CPPFLAGS.python22+= \
-I${BUILDLINK_PREFIX.python22}/include/python2.2
BUILDLINK_LDFLAGS.python22+= \
-L${BUILDLINK_PREFIX.python22}/lib/python2.2/config \
-Wl,-R${BUILDLINK_PREFIX.python22}/lib/python2.2/config
LDFLAGS+= ${BUILDLINK_LDFLAGS.python22}
BUILDLINK_TARGETS+= python22-buildlink
python22-buildlink: _BUILDLINK_USE
.endif # PYTHON22_BUILDLINK2_MK
|