diff options
author | joerg <joerg@pkgsrc.org> | 2006-11-03 07:15:41 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-11-03 07:15:41 +0000 |
commit | 450decce9406a78b8f43b4f7705f4d7b96b40ac5 (patch) | |
tree | 392f73cd72c003224f7dab78872bb8b3bf1ce389 /lang/python24/Makefile | |
parent | 166e92758f40d243e8461dc9e51a7950a6d9c6fc (diff) | |
download | pkgsrc-450decce9406a78b8f43b4f7705f4d7b96b40ac5.tar.gz |
On NetBSD, assume that MKYP=no when /usr/bin/ypcat doesn't exist.
The NIS module is not available in that case.
Call the regen script with RUNSHARED, so that it finds libpython.so,
even in the DESTDIR case.
XXX The call to regen should be moved to the build phase.
Diffstat (limited to 'lang/python24/Makefile')
-rw-r--r-- | lang/python24/Makefile | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/lang/python24/Makefile b/lang/python24/Makefile index f36a3527b5c..d6d393c6caf 100644 --- a/lang/python24/Makefile +++ b/lang/python24/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.28 2006/08/26 15:29:05 joerg Exp $ +# $NetBSD: Makefile,v 1.29 2006/11/03 07:15:41 joerg Exp $ # DISTNAME= Python-2.4.3 @@ -13,6 +13,8 @@ MAINTAINER= recht@NetBSD.org HOMEPAGE= http://www.python.org/ COMMENT= Interpreted, interactive, object-oriented programming language +PKG_DESTDIR_SUPPORT= user-destdir + # Remember to update pkgsrc/lang/python/srcdist.mk when version changes CONFLICTS+= python-[0-9]* @@ -94,8 +96,10 @@ INSTALL_UNSTRIPPED= yes .if ${OPSYS} == "IRIX" . if ${ABI} == "64" PLIST_SUBST+= NISMODULE="@comment " +PLIST_SUBST+= NO_NISMODULE="@comment " . else PLIST_SUBST+= NISMODULE= +PLIST_SUBST+= NO_NISMODULE="@comment " . endif PLIST_SUBST+= BSDDBMODULE="@comment " PLIST_SUBST+= NOSHLIB="@comment " @@ -106,7 +110,13 @@ MAKE_ENV+= PY_BDB_INCDIRS=${BDBBASE}/${BUILDLINK_INCDIRS.${BDB_TYPE}} MAKE_ENV+= PY_BDB_LIBDIRS=${BDBBASE}/lib PLIST_SUBST+= BSDDBMODULE= PLIST_SUBST+= NOSHLIB= +.if ${OPSYS} != "NetBSD" || exists(/usr/bin/ypcat) PLIST_SUBST+= NISMODULE= +PLIST_SUBST+= NO_NISMODULE="@comment " +.else +PLIST_SUBST+= NISMODULE="@comment " +PLIST_SUBST+= NO_NISMODULE= +.endif .endif .if defined(BUILDLINK_TRANSFORM) @@ -134,8 +144,8 @@ post-build: (cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} libpython2.4.2.dylib) post-install: - ${LN} -fs ${PREFIX}/lib/libpython2.4.2.dylib \ - ${PREFIX}/lib/libpython2.4.dylib + ${LN} -fs ${DESTDIR}${PREFIX}/lib/libpython2.4.2.dylib \ + ${DESTDIR}${PREFIX}/lib/libpython2.4.dylib .endif .include "../../archivers/bzip2/buildlink3.mk" |