aboutsummaryrefslogtreecommitdiffstats
path: root/www/neon29/Makefile
blob: ec3029e9f883b1e247ea4d62289b0d2b6304cb7e (plain) (blame)
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
# Created by: Mikhail Teterin <mi@aldan.algebra.com>
# $FreeBSD$

PORTNAME=   neon29
PORTVERSION=    0.29.6
PORTREVISION=   4
CATEGORIES= www
MASTER_SITES=   http://www.webdav.org/neon/
DISTNAME=   neon-${PORTVERSION}

MAINTAINER= lev@FreeBSD.org
COMMENT=    An HTTP and WebDAV client library for Unix systems

CONFLICTS=  neon2[6|8]-[0-9]*

OPTIONS_DEFINE= OPENSSL NLS GSSAPI PROXY DOCS
OPTIONS_DEFAULT=    EXPAT OPENSSL NLS GSSAPI
OPTIONS_SINGLE= XML
OPTIONS_SINGLE_XML= EXPAT LIBXML
XML_DESC=   XML parser library
LIBXML_DESC=    libxml2 XML parser support
PROXY_DESC= libproxy support

USE_AUTOTOOLS=  libtool
USE_LDCONFIG=   yes

USES=       pathfix
USE_GNOME=  ltverhack
GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --enable-shared \
        --with-libs=${LOCALBASE}:${PREFIX}

NO_STAGE=   yes
.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MEXPAT}
CONFIGURE_ARGS+=--with-expat
LIB_DEPENDS+=   expat.6:${PORTSDIR}/textproc/expat2
.endif

.if ${PORT_OPTIONS:MLIBXML}
CONFIGURE_ARGS+=--with-libxml2
LIB_DEPENDS+=   xml2.5:${PORTSDIR}/textproc/libxml2
.endif

.if ${PORT_OPTIONS:MOPENSSL}
CONFIGURE_ARGS+=--with-ssl
USE_OPENSSL=    yes
.endif

.if ${PORT_OPTIONS:MNLS}
USES+=      gettext
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif

.if ! ${PORT_OPTIONS:MGSSAPI}
CONFIGURE_ARGS+=--without-gssapi
.endif

.if ${PORT_OPTIONS:MPROXY}
CONFIGURE_ARGS+=--with-libproxy
LIB_DEPENDS+=   proxy.1:${PORTSDIR}/net/libproxy
.else
CONFIGURE_ARGS+=--without-libproxy
.endif

MAN1=   neon-config.1
MAN3=   ne_add_request_header.3 ne_addr_resolve.3 ne_buffer.3 \
    ne_buffer_append.3 ne_buffer_clear.3 ne_buffer_create.3 \
    ne_buffer_destroy.3 ne_get_error.3 ne_get_response_header.3 \
    ne_get_status.3 ne_i18n_init.3 ne_iaddr_make.3 ne_has_support.3 \
    ne_malloc.3 ne_request_create.3 ne_session_create.3 \
    ne_set_request_body_buffer.3 ne_set_request_flag.3 ne_set_session_flag.3 \
    ne_set_server_auth.3 ne_set_useragent.3 ne_shave.3 ne_sock_init.3 \
    ne_ssl_cert_cmp.3 ne_ssl_cert_identity.3 ne_ssl_cert_read.3 \
    ne_ssl_clicert_read.3 ne_ssl_readable_dname.3 ne_ssl_set_verify.3 \
    ne_ssl_trust_cert.3 ne_status.3 ne_token.3 ne_version_match.3 \
    ne_xml_create.3 neon.3
MLINKS= ne_add_request_header.3 ne_print_request_header.3 \
    ne_addr_resolve.3 ne_addr_destroy.3 \
    ne_addr_resolve.3 ne_addr_error.3 \
    ne_addr_resolve.3 ne_addr_first.3 \
    ne_addr_resolve.3 ne_addr_next.3 \
    ne_addr_resolve.3 ne_addr_result.3 \
    ne_buffer_append.3 ne_buffer_concat.3 \
    ne_buffer_append.3 ne_buffer_zappend.3 \
    ne_buffer_clear.3 ne_buffer_altered.3 \
    ne_buffer_clear.3 ne_buffer_grow.3 \
    ne_buffer_create.3 ne_buffer_ncreate.3 \
    ne_buffer_destroy.3 ne_buffer_finish.3 \
    ne_get_error.3 ne_set_error.3 \
    ne_get_response_header.3 ne_response_header_iterate.3 \
    ne_iaddr_make.3 ne_iaddr_cmp.3 \
    ne_iaddr_make.3 ne_iaddr_free.3 \
    ne_iaddr_make.3 ne_iaddr_print.3 \
    ne_iaddr_make.3 ne_iaddr_typeof.3 \
    ne_iaddr_make.3 ne_iaddr_parse.3 \
    ne_iaddr_make.3 ne_iaddr_raw.3 \
    ne_iaddr_make.3 ne_iaddr_reverse.3 \
    ne_malloc.3 ne_calloc.3 \
    ne_malloc.3 ne_oom_callback.3 \
    ne_malloc.3 ne_realloc.3 \
    ne_malloc.3 ne_strdup.3 \
    ne_malloc.3 ne_strndup.3 \
    ne_request_create.3 ne_request_destroy.3 \
    ne_request_create.3 ne_request_dispatch.3 \
    ne_session_create.3 ne_close_connection.3 \
    ne_session_create.3 ne_session_destroy.3 \
    ne_session_create.3 ne_session_proxy.3 \
    ne_set_request_body_buffer.3 ne_set_request_body_fd.3 \
    ne_set_request_body_buffer.3 ne_set_request_body_fd64.3 \
    ne_set_session_flag.3 ne_get_session_flag.3 \
    ne_set_request_flag.3 ne_get_request_flag.3 \
    ne_set_server_auth.3 ne_forget_auth.3 \
    ne_set_server_auth.3 ne_set_proxy_auth.3 \
    ne_set_useragent.3 ne_get_scheme.3 \
    ne_set_useragent.3 ne_get_server_hostport.3 \
    ne_set_useragent.3 ne_set_persist.3 \
    ne_set_useragent.3 ne_set_read_timeout.3 \
    ne_set_useragent.3 ne_set_connect_timeout.3 \
    ne_sock_init.3 ne_sock_exit.3 \
    ne_ssl_cert_cmp.3 ne_ssl_cert_free.3 \
    ne_ssl_cert_identity.3 ne_ssl_cert_issuer.3 \
    ne_ssl_cert_identity.3 ne_ssl_cert_signedby.3 \
    ne_ssl_cert_identity.3 ne_ssl_cert_subject.3 \
    ne_ssl_cert_read.3 ne_ssl_cert_export.3 \
    ne_ssl_cert_read.3 ne_ssl_cert_import.3 \
    ne_ssl_cert_read.3 ne_ssl_cert_write.3 \
    ne_ssl_clicert_read.3 ne_ssl_clicert_decrypt.3 \
    ne_ssl_clicert_read.3 ne_ssl_clicert_encrypted.3 \
    ne_ssl_clicert_read.3 ne_ssl_clicert_free.3 \
    ne_ssl_clicert_read.3 ne_ssl_clicert_name.3 \
    ne_ssl_clicert_read.3 ne_ssl_clicert_owner.3 \
    ne_ssl_readable_dname.3 ne_ssl_dname_cmp.3 \
    ne_ssl_trust_cert.3 ne_ssl_trust_default_ca.3 \
    ne_token.3 ne_qtoken.3 \
    ne_version_match.3 ne_version_string.3 \
    ne_xml_create.3 ne_xml_destroy.3

PLIST_SUB+= PORTVERSION=${PORTVERSION}
DOCSDIR=    ${PREFIX}/share/doc/neon

post-install:
    ${INSTALL_MAN} ${WRKSRC}/doc/man/*.1 ${MANPREFIX}/man/man1
    ${INSTALL_MAN} ${WRKSRC}/doc/man/*.3 ${MANPREFIX}/man/man3
.if ${PORT_OPTIONS:MDOCS}
    (cd ${WRKSRC} ; ${MAKE} install-html)
.endif

.include <bsd.port.mk>