Fri May 2 05:08:22 2008 UTC ()
Some files cannot be removed at the clean stage as non-root user, so
use the same strategy than python uses: PRIVILEGED_STAGES+=clean.


(xtraeme)
diff -r1.80 -r1.81 pkgsrc/www/curl/Makefile

cvs diff -r1.80 -r1.81 pkgsrc/www/curl/Makefile (expand / switch to unified diff)

--- pkgsrc/www/curl/Makefile 2008/03/10 18:35:54 1.80
+++ pkgsrc/www/curl/Makefile 2008/05/02 05:08:22 1.81
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.80 2008/03/10 18:35:54 drochner Exp $ 1# $NetBSD: Makefile,v 1.81 2008/05/02 05:08:22 xtraeme Exp $
2 2
3DISTNAME= curl-7.18.0 3DISTNAME= curl-7.18.0
4PKGREVISION= 1 4PKGREVISION= 1
5CATEGORIES= www 5CATEGORIES= www
6MASTER_SITES= http://curl.haxx.se/download/ \ 6MASTER_SITES= http://curl.haxx.se/download/ \
7 ftp://ftp.sunet.se/pub/www/utilities/curl/ 7 ftp://ftp.sunet.se/pub/www/utilities/curl/
8EXTRACT_SUFX= .tar.bz2 8EXTRACT_SUFX= .tar.bz2
9 9
10MAINTAINER= recht@NetBSD.org 10MAINTAINER= recht@NetBSD.org
11HOMEPAGE= http://curl.haxx.se/ 11HOMEPAGE= http://curl.haxx.se/
12COMMENT= Client that groks URLs 12COMMENT= Client that groks URLs
13 13
14PKG_INSTALLATION_TYPES= overwrite pkgviews 14PKG_INSTALLATION_TYPES= overwrite pkgviews
@@ -21,26 +21,30 @@ USE_LIBTOOL= yes @@ -21,26 +21,30 @@ USE_LIBTOOL= yes
21GNU_CONFIGURE= yes 21GNU_CONFIGURE= yes
22CONFIGURE_ARGS+= --with-ssl=${BUILDLINK_PREFIX.openssl} 22CONFIGURE_ARGS+= --with-ssl=${BUILDLINK_PREFIX.openssl}
23CONFIGURE_ARGS+= --with-zlib=${BUILDLINK_PREFIX.zlib} 23CONFIGURE_ARGS+= --with-zlib=${BUILDLINK_PREFIX.zlib}
24# Work around an ICE on sparc64 with gcc2 24# Work around an ICE on sparc64 with gcc2
25CONFIGURE_ENV+= F77=${FALSE:Q} 25CONFIGURE_ENV+= F77=${FALSE:Q}
26 26
27.include "../../mk/bsd.prefs.mk" 27.include "../../mk/bsd.prefs.mk"
28 28
29.if !empty(PKGSRC_RUN_TEST:M[Yy][Ee][Ss]) 29.if !empty(PKGSRC_RUN_TEST:M[Yy][Ee][Ss])
30TEST_TARGET= check 30TEST_TARGET= check
31USE_TOOLS+= perl 31USE_TOOLS+= perl
32.endif 32.endif
33 33
 34.if ${OPSYS} == "NetBSD" && ${_USE_DESTDIR} == "no"
 35PRIVILEGED_STAGES+= clean
 36.endif
 37
34.include "options.mk" 38.include "options.mk"
35# 39#
36# XXXbjs CHANGES claims this is fixed. I have left it here commented out 40# XXXbjs CHANGES claims this is fixed. I have left it here commented out
37# in case this is not so. 41# in case this is not so.
38# 42#
39#post-configure: 43#post-configure:
40# if ${GREP} '#define HAVE_SYS_SELECT_H 1' ${WRKSRC}/src/config.h \ 44# if ${GREP} '#define HAVE_SYS_SELECT_H 1' ${WRKSRC}/src/config.h \
41# >/dev/null; \ 45# >/dev/null; \
42# then \ 46# then \
43# line='#include <sys/select.h>'; \ 47# line='#include <sys/select.h>'; \
44# else \ 48# else \
45# line='/* sys/select.h not included because it does not exist */'; \ 49# line='/* sys/select.h not included because it does not exist */'; \
46# fi; \ 50# fi; \