summaryrefslogtreecommitdiff
path: root/www/libwww/Makefile
blob: acb146f573a7e385e40cebc23c3ac82f6177eba9 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# $NetBSD: Makefile,v 1.67 2006/03/04 21:30:59 jlam Exp $

DISTNAME=		w3c-libwww-5.4.0
PKGNAME=		libwww-5.4.0
PKGREVISION=		5
CATEGORIES=		www devel
MASTER_SITES=		http://www.w3.org/Library/Distribution/ \
			ftp://ftp.uni-hannover.de/pub/mirror/info-systems/WWW/libwww/
EXTRACT_SUFX=		.tgz
DISTFILES=		${DISTNAME}${EXTRACT_SUFX} libwww-configure-5.4.0nb1.gz

MAINTAINER=		pkgsrc-users@NetBSD.org
HOMEPAGE=		http://www.w3.org/Library/
COMMENT=		The W3C Reference Library

PKG_INSTALLATION_TYPES=	overwrite pkgviews

EXTRACT_ONLY=		${DISTNAME}${EXTRACT_SUFX}
SITES_libwww-configure-5.4.0nb1.gz=	${MASTER_SITE_LOCAL}

USE_TOOLS+=		gmake perl
USE_LIBTOOL=		YES

GNU_CONFIGURE=		YES
CONFIGURE_ARGS+=	--with-zlib --without-x
CONFIGURE_ARGS+=	--with-ssl=${SSLBASE:Q}

# Avoid an ICE in gcc2 on sparc64
CONFIGURE_ENV+=		F77=${FALSE:Q}

.include "options.mk"

DOCDIR=			${PREFIX}/share/doc/libwww

pre-configure:
	${GZCAT} ${DISTDIR}/libwww-configure-5.4.0nb1.gz > ${WRKSRC}/configure
	${CHMOD} a+x ${WRKSRC}/configure
.for f in aclocal.m4 configure stamp-h.in
	${TOUCH} ${WRKSRC}/${f}
.endfor
	${TOUCH} `${FIND} ${WRKSRC} -name Makefile.in -print`

.include "../../mk/bsd.prefs.mk"

.if empty(LOWER_OPSYS:Mirix5*)
# IRIX 5 does not have libregex
CONFIGURE_ARGS+=        --with-regex
.endif

.if ${OPSYS} == "SunOS"
# Solaris has a /usr/lib/libmd5 which seems to be enouth, and
# /usr/local/lib/libmd5 breaks /usr/lib/librt
CONFIGURE_ARGS+= --without-md5
PLIST_SUBST+=	MD5LIB="@comment "
.else
.  if !exists(/usr/include/md5.h)
CONFIGURE_ARGS+=	--with-md5=${SSLBASE:Q}
.  endif
PLIST_SUBST+=	MD5LIB=""
.endif

.include "../../devel/zlib/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"

.include "../../mk/bsd.pkg.mk"