Thu Feb 11 21:13:07 2010 UTC ()
remove unused vars


(tnn)
diff -r1.19 -r1.20 pkgsrc/lang/python26/Makefile

cvs diff -r1.19 -r1.20 pkgsrc/lang/python26/Attic/Makefile (switch to unified diff)

--- pkgsrc/lang/python26/Attic/Makefile 2010/01/26 12:15:26 1.19
+++ pkgsrc/lang/python26/Attic/Makefile 2010/02/11 21:13:07 1.20
@@ -1,185 +1,183 @@ @@ -1,185 +1,183 @@
1# $NetBSD: Makefile,v 1.19 2010/01/26 12:15:26 tron Exp $ 1# $NetBSD: Makefile,v 1.20 2010/02/11 21:13:07 tnn Exp $
2 2
3DISTNAME= Python-2.6.4 3DISTNAME= Python-2.6.4
4PKGNAME= ${DISTNAME:S/Python/python26/} 4PKGNAME= ${DISTNAME:S/Python/python26/}
5PKGREVISION= 4 5PKGREVISION= 4
6CATEGORIES= lang python 6CATEGORIES= lang python
7MASTER_SITES= http://www.python.org/ftp/python/2.6.4/ 7MASTER_SITES= http://www.python.org/ftp/python/2.6.4/
8EXTRACT_SUFX= .tar.bz2 8EXTRACT_SUFX= .tar.bz2
9 9
10MAINTAINER= pkgsrc-users@NetBSD.org 10MAINTAINER= pkgsrc-users@NetBSD.org
11HOMEPAGE= http://www.python.org/ 11HOMEPAGE= http://www.python.org/
12COMMENT= Interpreted, interactive, object-oriented programming language 12COMMENT= Interpreted, interactive, object-oriented programming language
13LICENSE= python-software-foundation 13LICENSE= python-software-foundation
14 14
15PKG_DESTDIR_SUPPORT= user-destdir 15PKG_DESTDIR_SUPPORT= user-destdir
16 16
17# Remember to update pkgsrc/lang/python/srcdist.mk when version changes 17# Remember to update pkgsrc/lang/python/srcdist.mk when version changes
18 18
19CONFLICTS+= python-[0-9]* 19CONFLICTS+= python-[0-9]*
20 20
21GNU_CONFIGURE= yes 21GNU_CONFIGURE= yes
22CONFIGURE_ARGS+= --with-threads 22CONFIGURE_ARGS+= --with-threads
23CONFIGURE_ARGS+= --enable-shared 23CONFIGURE_ARGS+= --enable-shared
24CONFIGURE_ARGS+= OPT=${CFLAGS:Q} 24CONFIGURE_ARGS+= OPT=${CFLAGS:Q}
25CONFIGURE_ARGS+= --with-system-ffi 25CONFIGURE_ARGS+= --with-system-ffi
26 26
27LDFLAGS+= -L${WRKSRC} 27LDFLAGS+= -L${WRKSRC}
28 28
29# $RANDOM usage there is fine 29# $RANDOM usage there is fine
30CHECK_PORTABILITY_SKIP= Tools/faqwiz/move-faqwiz.sh 30CHECK_PORTABILITY_SKIP= Tools/faqwiz/move-faqwiz.sh
31 31
32USE_LANGUAGES= c c++ 32USE_LANGUAGES= c c++
33 33
34PTHREAD_OPTS+= require 34PTHREAD_OPTS+= require
35.include "../../mk/pthread.buildlink3.mk" 35.include "../../mk/pthread.buildlink3.mk"
36.if ${PTHREAD_TYPE} == "pth" 36.if ${PTHREAD_TYPE} == "pth"
37CONFIGURE_ARGS+= --with-pth 37CONFIGURE_ARGS+= --with-pth
38.endif 38.endif
39 39
40.include "../../mk/bsd.prefs.mk" 40.include "../../mk/bsd.prefs.mk"
41 41
42# fdatasync() 42# fdatasync()
43LIBS.SunOS+= -lrt 43LIBS.SunOS+= -lrt
44 44
45PY_VER_SUFFIX= 2.6 45PY_VER_SUFFIX= 2.6
46 46
47PLIST_SRC= ${.CURDIR}/../../lang/python26/PLIST.common 47PLIST_SRC= ${.CURDIR}/../../lang/python26/PLIST.common
48.if exists(${.CURDIR}/../../lang/python26/PLIST.${OPSYS}) 48.if exists(${.CURDIR}/../../lang/python26/PLIST.${OPSYS})
49PLIST_SRC+= ${.CURDIR}/../../lang/python26/PLIST.${OPSYS} 49PLIST_SRC+= ${.CURDIR}/../../lang/python26/PLIST.${OPSYS}
50.endif 50.endif
51PLIST_SRC+= ${.CURDIR}/../../lang/python26/PLIST.common_end 51PLIST_SRC+= ${.CURDIR}/../../lang/python26/PLIST.common_end
52 52
53.if ${OPSYS} == "NetBSD" 53.if ${OPSYS} == "NetBSD"
54PRIVILEGED_STAGES+= clean 54PRIVILEGED_STAGES+= clean
55.endif 55.endif
56 56
57.if ${OPSYS} == "Darwin" || ${OPSYS} == "Interix" 57.if ${OPSYS} == "Darwin" || ${OPSYS} == "Interix"
58PY_PLATNAME= ${LOWER_OPSYS} 58PY_PLATNAME= ${LOWER_OPSYS}
59USE_TOOLS+= gmake 59USE_TOOLS+= gmake
60.elif ${OPSYS} == "IRIX" 60.elif ${OPSYS} == "IRIX"
61PY_PLATNAME= ${LOWER_OPSYS:C/\..*//} 61PY_PLATNAME= ${LOWER_OPSYS:C/\..*//}
62.elif ${OPSYS} == "SunOS" 62.elif ${OPSYS} == "SunOS"
63PY_PLATNAME= sunos${OS_VERSION:C/\..*//} 63PY_PLATNAME= sunos${OS_VERSION:C/\..*//}
64.elif ${OPSYS} == "HPUX" 64.elif ${OPSYS} == "HPUX"
65PY_PLATNAME= hp-ux11 65PY_PLATNAME= hp-ux11
66.else 66.else
67PY_PLATNAME= ${LOWER_OPSYS}${OS_VERSION:C/\..*//} 67PY_PLATNAME= ${LOWER_OPSYS}${OS_VERSION:C/\..*//}
68.endif 68.endif
69PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME:Q} 69PLIST_SUBST+= PY_PLATNAME=${PY_PLATNAME:Q}
70 70
71.if (${MACHINE_ARCH} == "alpha") || (${MACHINE_ARCH} == "amd64") || \ 71.if (${MACHINE_ARCH} == "alpha") || (${MACHINE_ARCH} == "amd64") || \
72 (${MACHINE_ARCH} == "sparc64") || (${MACHINE_ARCH} == "x86_64") || \ 72 (${MACHINE_ARCH} == "sparc64") || (${MACHINE_ARCH} == "x86_64") || \
73 (defined(ABI) && ${ABI} == "64") 73 (defined(ABI) && ${ABI} == "64")
74IS_64BIT_PLATFORM?= yes 74IS_64BIT_PLATFORM?= yes
75.else 75.else
76IS_64BIT_PLATFORM?= no 76IS_64BIT_PLATFORM?= no
77.endif 77.endif
78 78
79# the dl module isn't built for 64 bit archs 79# the dl module isn't built for 64 bit archs
80PLIST_VARS+= dl 80PLIST_VARS+= dl
81.if empty(IS_64BIT_PLATFORM:M[yY][eE][sS]) 81.if empty(IS_64BIT_PLATFORM:M[yY][eE][sS])
82PLIST.dl= yes 82PLIST.dl= yes
83.endif 83.endif
84 84
85# builds additional modules if OpenSSL < 0.9.8 85# builds additional modules if OpenSSL < 0.9.8
86PLIST_VARS+= openssl097 86PLIST_VARS+= openssl097
87CHECK_BUILTIN.openssl:= no 87CHECK_BUILTIN.openssl:= no
88.include "../../security/openssl/builtin.mk" 88.include "../../security/openssl/builtin.mk"
89CHECK_BUILTIN.openssl:= yes 89CHECK_BUILTIN.openssl:= yes
90.if !empty(USE_BUILTIN.openssl:M[yY][eE][sS]) && \ 90.if !empty(USE_BUILTIN.openssl:M[yY][eE][sS]) && \
91 !empty(BUILTIN_PKG.openssl:Mopenssl-0.9.[67]*) 91 !empty(BUILTIN_PKG.openssl:Mopenssl-0.9.[67]*)
92PLIST.openssl097= yes 92PLIST.openssl097= yes
93.endif 93.endif
94 94
95# setup.py causes some modules to be built if the platform is *not* 64bit. 95# setup.py causes some modules to be built if the platform is *not* 64bit.
96PLIST_VARS+= extra-so 96PLIST_VARS+= extra-so
97.if !empty(IS_64BIT_PLATFORM:M[nN][oO]) 97.if !empty(IS_64BIT_PLATFORM:M[nN][oO])
98PLIST.extra-so= yes 98PLIST.extra-so= yes
99.endif 99.endif
100 100
101# ossaudiodev is only available on x86 for the following platforms 101# ossaudiodev is only available on x86 for the following platforms
102PLIST_VARS+= oss 102PLIST_VARS+= oss
103.if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64") && \ 103.if (${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64") && \
104 (${PY_PLATNAME} == "linux2" || ${OPSYS} == "FreeBSD") 104 (${PY_PLATNAME} == "linux2" || ${OPSYS} == "FreeBSD")
105PLIST.oss= yes 105PLIST.oss= yes
106.endif 106.endif
107 107
108# Make sure python modules can link correctly 108# Make sure python modules can link correctly
109.if ${OPSYS} == "Darwin" 109.if ${OPSYS} == "Darwin"
110INSTALL_UNSTRIPPED= yes 110INSTALL_UNSTRIPPED= yes
111 111
112PLIST_VARS+= nav 112PLIST_VARS+= nav
113. if !defined(ABI) || ${ABI} != "64" 113. if !defined(ABI) || ${ABI} != "64"
114PLIST.nav= yes 114PLIST.nav= yes
115. endif 115. endif
116.endif 116.endif
117 117
118PLIST_VARS+= bsddb dll nis no-nis 118PLIST_VARS+= bsddb dll nis no-nis
119.if ${OPSYS} == "IRIX" 119.if ${OPSYS} == "IRIX"
120. if ${ABI} == "64" 120. if ${ABI} == "64"
121PLIST.no-nis= yes 121PLIST.no-nis= yes
122. else 122. else
123PLIST.nis= yes 123PLIST.nis= yes
124. endif 124. endif
125.else 125.else
126. include "../../mk/bdb.buildlink3.mk" 126. include "../../mk/bdb.buildlink3.mk"
127MAKE_ENV+= PY_BDB_TYPE=${BDB_TYPE} 127MAKE_ENV+= PY_BDB_TYPE=${BDB_TYPE}
128MAKE_ENV+= PY_BDB_INCDIRS=${BUILDLINK_INCDIRS.${BDB_TYPE}:S,^,${BDBBASE}/,:Q} 
129MAKE_ENV+= PY_BDB_LIBDIRS=${BDBBASE}/lib 
130.if empty(BDB_LIBS) 128.if empty(BDB_LIBS)
131BUILDLINK_TRANSFORM+= rm:-ldb 129BUILDLINK_TRANSFORM+= rm:-ldb
132.endif 130.endif
133CFLAGS+= -DHAVE_DB_185_H 131CFLAGS+= -DHAVE_DB_185_H
134PLIST.bsddb= yes 132PLIST.bsddb= yes
135PLIST.dll= yes 133PLIST.dll= yes
136. if ${OPSYS} != "NetBSD" || exists(/usr/bin/ypcat) 134. if ${OPSYS} != "NetBSD" || exists(/usr/bin/ypcat)
137PLIST.nis= yes 135PLIST.nis= yes
138. else 136. else
139PLIST.no-nis= yes 137PLIST.no-nis= yes
140. endif 138. endif
141.endif 139.endif
142 140
143.if ${OPSYS} == "OSF1" 141.if ${OPSYS} == "OSF1"
144# configure complains about buggy getaddrinfo() 142# configure complains about buggy getaddrinfo()
145CONFIGURE_ARGS+= --disable-ipv6 143CONFIGURE_ARGS+= --disable-ipv6
146.endif 144.endif
147 145
148.if defined(BUILDLINK_TRANSFORM) 146.if defined(BUILDLINK_TRANSFORM)
149MAKE_ENV+= PY_BDB_TRANSFORM=${BUILDLINK_TRANSFORM:Q} 147MAKE_ENV+= PY_BDB_TRANSFORM=${BUILDLINK_TRANSFORM:Q}
150.endif 148.endif
151 149
152PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX:Q} 150PLIST_SUBST+= PY_VER_SUFFIX=${PY_VER_SUFFIX:Q}
153 151
154TEST_TARGET= test 152TEST_TARGET= test
155INSTALL_TARGET= altinstall 153INSTALL_TARGET= altinstall
156 154
157REPLACE_INTERPRETER+= py26 155REPLACE_INTERPRETER+= py26
158REPLACE.py26.old= .*python[^ ]* 156REPLACE.py26.old= .*python[^ ]*
159REPLACE.py26.new= ${PREFIX}/bin/python${PY_VER_SUFFIX} 157REPLACE.py26.new= ${PREFIX}/bin/python${PY_VER_SUFFIX}
160REPLACE_FILES.py26= Lib/cgi.py # explicitly demanded to be patched 158REPLACE_FILES.py26= Lib/cgi.py # explicitly demanded to be patched
161REPLACE_FILES.py26+= Lib/bsddb/dbshelve.py Lib/test/test_bz2.py 159REPLACE_FILES.py26+= Lib/bsddb/dbshelve.py Lib/test/test_bz2.py
162REPLACE_FILES.py26+= Lib/test/test_largefile.py Lib/test/test_optparse.py 160REPLACE_FILES.py26+= Lib/test/test_largefile.py Lib/test/test_optparse.py
163 161
164post-extract: 162post-extract:
165 ${MV} ${WRKSRC}/Lib/smtpd.py ${WRKSRC}/Lib/smtpd${PY_VER_SUFFIX}.py 163 ${MV} ${WRKSRC}/Lib/smtpd.py ${WRKSRC}/Lib/smtpd${PY_VER_SUFFIX}.py
166 ${MV} ${WRKSRC}/Tools/scripts/pydoc ${WRKSRC}/Tools/scripts/pydoc${PY_VER_SUFFIX} 164 ${MV} ${WRKSRC}/Tools/scripts/pydoc ${WRKSRC}/Tools/scripts/pydoc${PY_VER_SUFFIX}
167 165
168.if ${OPSYS} == "HPUX" 166.if ${OPSYS} == "HPUX"
169post-install: 167post-install:
170 ${LN} -fs ${DESTDIR}${PREFIX}/lib/libpython2.6.sl \ 168 ${LN} -fs ${DESTDIR}${PREFIX}/lib/libpython2.6.sl \
171 ${DESTDIR}${PREFIX}/lib/libpython2.6.sl.1.0 169 ${DESTDIR}${PREFIX}/lib/libpython2.6.sl.1.0
172.endif 170.endif
173 171
174USE_GNU_READLINE= yes 172USE_GNU_READLINE= yes
175BUILDLINK_DEPMETHOD.readline= build 173BUILDLINK_DEPMETHOD.readline= build
176 174
177.include "../../archivers/bzip2/buildlink3.mk" 175.include "../../archivers/bzip2/buildlink3.mk"
178.include "../../devel/gettext-lib/buildlink3.mk" 176.include "../../devel/gettext-lib/buildlink3.mk"
179.include "../../devel/libffi/buildlink3.mk" 177.include "../../devel/libffi/buildlink3.mk"
180.include "../../devel/readline/buildlink3.mk" 178.include "../../devel/readline/buildlink3.mk"
181.include "../../devel/zlib/buildlink3.mk" 179.include "../../devel/zlib/buildlink3.mk"
182.include "../../security/openssl/buildlink3.mk" 180.include "../../security/openssl/buildlink3.mk"
183.include "../../mk/dlopen.buildlink3.mk" 181.include "../../mk/dlopen.buildlink3.mk"
184.include "../../mk/oss.buildlink3.mk" 182.include "../../mk/oss.buildlink3.mk"
185.include "../../mk/bsd.pkg.mk" 183.include "../../mk/bsd.pkg.mk"