Norm Jacobs
2011-04-13 4158c02ccf09e2f646cf2e9e5599f186ec8c7302
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 #
21 # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
22 #
23 include ../../make-rules/shared-macros.mk
24
25 COMPONENT_NAME =        curl
26 COMPONENT_VERSION=      7.21.2
27 COMPONENT_SRC=          $(COMPONENT_NAME)-$(COMPONENT_VERSION)
28 COMPONENT_PROJECT_URL=  http://curl.haxx.se/
29 COMPONENT_ARCHIVE=      $(COMPONENT_SRC).tar.gz
30 COMPONENT_ARCHIVE_HASH= sha1:af8182165d7a0d16b97e2c2936ed92f3ba5c868c
31 COMPONENT_ARCHIVE_URL=  http://curl.haxx.se/download/$(COMPONENT_ARCHIVE)
32
33 include ../../make-rules/prep.mk
34 include ../../make-rules/configure.mk
35 include ../../make-rules/ips.mk
4158c0 36 include ../../make-rules/lint-libraries.mk
7e5460 37
ST 38 PKG_CONFIG_PATH_32 = /usr/lib/pkgconfig
39 PKG_CONFIG_PATH_64 = /usr/lib/$(MACH64)/pkgconfig
40
41 PATCH_LEVEL = 0
42
43 GSSAPI_LIBDIR_32 = /usr/lib
44 GSSAPI_LIBDIR_64 = /usr/lib/$(MACH64)
45
46 # Enable C99 mode
47 studio_C99MODE = $(studio_C99_ENABLE)
48
49 # And we want -Xc too
50 CFLAGS += $(CC_BITS) -Xc -xnorunpath $(XPG6MODE)
51 CFLAGS += $(CPP_POSIX) $(CPP_LARGEFILES)
52 CPPFLAGS += $(CPP_POSIX) $(CPP_LARGEFILES) -D__EXTENSIONS__=1 -DNDEBUG
53 LDFLAGS += -lpthread -lc -lm -lgss -lsocket -lresolv -lnsl -lgen
54
55 CONFIGURE_ENV += CPP="$(CC) $(CPPFLAGS) $(CFLAGS) -E"
56 CONFIGURE_ENV += CFLAGS="$(CFLAGS)"
57 CONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
58 CONFIGURE_ENV += CCLD="$(CC) $(CFLAGS) $(LDFLAGS)"
59 CONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
60 CONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH_$(BITS))"
61
62 CONFIGURE_OPTIONS += --localstatedir=/var --enable-shared --disable-static
63 CONFIGURE_OPTIONS += --enable-http --enable-ftp
64 CONFIGURE_OPTIONS += --enable-file --enable-dict
65 CONFIGURE_OPTIONS += --enable-manual --disable-libgcc
66 CONFIGURE_OPTIONS += --enable-rtsp --enable-proxy
67 CONFIGURE_OPTIONS += --enable-telnet --enable-tftp --enable-pop3
68 CONFIGURE_OPTIONS += --enable-imap --enable-smtp
69 CONFIGURE_OPTIONS += --enable-ipv6 --enable-nonblocking
70 CONFIGURE_OPTIONS += --enable-thread --enable-verbose
71 CONFIGURE_OPTIONS += --disable-sspi --enable-crypto-auth
72 CONFIGURE_OPTIONS += --enable-cookies --disable-hidden-symbols
73 CONFIGURE_OPTIONS += --disable-soname-bump
74 CONFIGURE_OPTIONS += --enable-ldap --with-random=/dev/urandom
75 CONFIGURE_OPTIONS += --with-ssl --with-ldap-lib=ldap
76 CONFIGURE_OPTIONS += --with-lber-lib=sldap
77 CONFIGURE_OPTIONS += --with-gssapi-includes=/usr/include/gssapi
78 CONFIGURE_OPTIONS += --with-gssapi-libs=$(GSSAPI_LIBDIR_$(BITS))
79 CONFIGURE_OPTIONS += --with-gssapi=/usr --without-ca-bundle
80 CONFIGURE_OPTIONS += --with-ca-path=/etc/openssl/certs
81 CONFIGURE_OPTIONS += --with-zlib=/usr --with-libidn=/usr
82 CONFIGURE_OPTIONS += --with-pic
83 CONFIGURE_OPTIONS += "curl_disallow_getifaddrs=yes"
84
4158c0 85 LINT_FLAGS += -I$(COMPONENT_DIR)/$(COMPONENT_SRC)/include
7e5460 86
ST 87 build: $(BUILD_32_and_64)
88
89 install: $(INSTALL_32_and_64)
90
4158c0 91 test: $(TEST_32_and_64)
7e5460 92
ST 93 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
94
95 include ../../make-rules/depend.mk
96