Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/pkgsrc/lang/python27/Makefile,v rcsdiff: /ftp/cvs/cvsroot/pkgsrc/lang/python27/Makefile,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.1 retrieving revision 1.9 diff -u -p -r1.1 -r1.9 --- pkgsrc/lang/python27/Makefile 2011/02/22 08:51:58 1.1 +++ pkgsrc/lang/python27/Makefile 2011/10/29 14:40:00 1.9 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 2011/02/22 08:51:58 obache Exp $ +# $NetBSD: Makefile,v 1.9 2011/10/29 14:40:00 obache Exp $ .include "dist.mk" @@ -34,6 +34,13 @@ PTHREAD_OPTS+= require CONFIGURE_ARGS+= --with-pth .endif +.include "../../mk/compiler.mk" + +# Clang needs -fwrapv +.if !empty(PKGSRC_COMPILER:Mclang) +CFLAGS+= -fwrapv +.endif + .include "../../mk/bsd.prefs.mk" # fdatasync() @@ -111,7 +118,9 @@ PLIST.nis= yes . endif .else PLIST.dll= yes -. if ${OPSYS} != "NetBSD" || exists(/usr/bin/ypcat) +. if ${OPSYS} == "MirBSD" +# neither nis nor no-nis +. elif ${OPSYS} != "NetBSD" || exists(/usr/bin/ypcat) PLIST.nis= yes . else PLIST.no-nis= yes @@ -142,9 +151,7 @@ INSTALL_TARGET= altinstall REPLACE_INTERPRETER+= py27 REPLACE.py27.old= .*python[^ ]* REPLACE.py27.new= ${PREFIX}/bin/python${PY_VER_SUFFIX} -REPLACE_FILES.py27= Lib/cgi.py # explicitly demanded to be patched -REPLACE_FILES.py27+= Lib/bsddb/dbshelve.py Lib/test/test_bz2.py -REPLACE_FILES.py27+= Lib/test/test_largefile.py Lib/test/test_optparse.py +REPLACE_FILES.py27= Lib/*.py Lib/*/*.py Lib/*/*/*.py SUBST_CLASSES+= findlib SUBST_MESSAGE.findlib= Fixing find_library_file on Darwin.