Andrzej Szeszo
2013-06-04 453bf5a3004107204e1858532a38b3e703e32995
commit | author | age
7e5460 1 #
ST 2 # CDDL HEADER START
3 #
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20 #
b41dcc 21 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
7e5460 22 #
ST 23 include ../../make-rules/shared-macros.mk
24
25 COMPONENT_NAME =        curl
77c1e5 26 COMPONENT_VERSION=      7.26.0
7e5460 27 COMPONENT_SRC=          $(COMPONENT_NAME)-$(COMPONENT_VERSION)
ST 28 COMPONENT_PROJECT_URL=  http://curl.haxx.se/
29 COMPONENT_ARCHIVE=      $(COMPONENT_SRC).tar.gz
35e110 30 COMPONENT_ARCHIVE_HASH= \
77c1e5 31     sha256:79ccce9edb8aee17d20ad4d75e1f83a789f8c2e71e68f468e1bf8abf8933193f
60e6e0 32 COMPONENT_ARCHIVE_URL=  $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE)
3b89c9 33 COMPONENT_BUGDB=    library/curl
7e5460 34
ST 35 include ../../make-rules/prep.mk
36 include ../../make-rules/configure.mk
37 include ../../make-rules/ips.mk
38
39 PATCH_LEVEL = 0
40
41 GSSAPI_LIBDIR_32 = /usr/lib
42 GSSAPI_LIBDIR_64 = /usr/lib/$(MACH64)
43
3cec7d 44 CFLAGS += $(CPP_LARGEFILES)
2610f4 45 CFLAGS += `pkg-config --cflags libidn`
RB 46 CPPFLAGS += `pkg-config --cflags libidn`
7e5460 47
ST 48 CONFIGURE_ENV += CFLAGS="$(CFLAGS)"
2610f4 49 CONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
3cec7d 50 CONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
7e5460 51
ST 52 CONFIGURE_OPTIONS += --localstatedir=/var --enable-shared --disable-static
53 CONFIGURE_OPTIONS += --enable-http --enable-ftp
54 CONFIGURE_OPTIONS += --enable-file --enable-dict
55 CONFIGURE_OPTIONS += --enable-manual --disable-libgcc
56 CONFIGURE_OPTIONS += --enable-rtsp --enable-proxy
57 CONFIGURE_OPTIONS += --enable-telnet --enable-tftp --enable-pop3
58 CONFIGURE_OPTIONS += --enable-imap --enable-smtp
59 CONFIGURE_OPTIONS += --enable-ipv6 --enable-nonblocking
60 CONFIGURE_OPTIONS += --enable-thread --enable-verbose
61 CONFIGURE_OPTIONS += --disable-sspi --enable-crypto-auth
62 CONFIGURE_OPTIONS += --enable-cookies --disable-hidden-symbols
63 CONFIGURE_OPTIONS += --disable-soname-bump
64 CONFIGURE_OPTIONS += --enable-ldap --with-random=/dev/urandom
65 CONFIGURE_OPTIONS += --with-ssl --with-ldap-lib=ldap
66 CONFIGURE_OPTIONS += --with-lber-lib=sldap
67 CONFIGURE_OPTIONS += --with-gssapi-includes=/usr/include/gssapi
68 CONFIGURE_OPTIONS += --with-gssapi-libs=$(GSSAPI_LIBDIR_$(BITS))
69 CONFIGURE_OPTIONS += --with-gssapi=/usr --without-ca-bundle
70 CONFIGURE_OPTIONS += --with-ca-path=/etc/openssl/certs
71 CONFIGURE_OPTIONS += --with-zlib=/usr --with-libidn=/usr
72 CONFIGURE_OPTIONS += --with-pic
1fd50a 73 CONFIGURE_OPTIONS += --without-libssh2
7e5460 74 CONFIGURE_OPTIONS += "curl_disallow_getifaddrs=yes"
ST 75
3cec7d 76 LINT_FLAGS += -I$(SOURCE_DIR)/include
7e5460 77
b41dcc 78 ASLR_MODE = $(ASLR_ENABLE)
RB 79
7e5460 80 build: $(BUILD_32_and_64)
ST 81
82 install: $(INSTALL_32_and_64)
83
4158c0 84 test: $(TEST_32_and_64)
7e5460 85
ST 86 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
87
88 include ../../make-rules/depend.mk
89