Merge pull request #2044 from xen0l/screen
[unleashed-userland.git] / components / lighttpd / Makefile
blobb97a53bb9d7b85adda356c59efe075ee373dabf5
2 # CDDL HEADER START
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.
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.
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]
19 # CDDL HEADER END
23 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
26 include ../../make-rules/shared-macros.mk
28 COMPONENT_NAME= lighttpd
29 COMPONENT_VERSION= 1.4.37
30 COMPONENT_PROJECT_URL= http://www.lighttpd.net/
31 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
32 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
33 COMPONENT_ARCHIVE_HASH= \
34 sha256:db6107396fbf8f37f9c6a7e6445c4e67bb6c12bcc9fd2a305da9a6b8b2c68515
35 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE)
36 COMPONENT_BUGDB= utility/lighttpd
38 LIGHTTPD_INSTALLDIR=/usr/lighttpd/1.4
40 include ../../make-rules/prep.mk
41 include ../../make-rules/configure.mk
42 include ../../make-rules/ips.mk
44 PATCH_LEVEL=0
46 CFLAGS += -I/usr/include/openldap
47 LDFLAGS += -lldap_r-2.4
49 # libtool linking will fail unless we re-create configure.
50 COMPONENT_PREP_ACTION = ( cd $(@D) ; $(CONFIG_SHELL) autogen.sh )
52 # lighttpd is logging using __FILE__ macro. Cloning will make this happen
53 # using just source file names (without full absolute paths).
54 COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
56 CONFIGURE_PREFIX= /usr/lighttpd/1.4
57 CONFIGURE_MANDIR= $(CONFIGURE_PREFIX)/man
59 CONFIGURE_OPTIONS += --with-pic
60 CONFIGURE_OPTIONS += --without-lua
61 CONFIGURE_OPTIONS += --with-openssl
62 CONFIGURE_OPTIONS += --with-pcre
63 CONFIGURE_OPTIONS += --with-mysql=/usr/mariadb/5.5/bin/mysql_config
64 CONFIGURE_OPTIONS += --with-ldap
66 # Enable ASLR for this component
67 ASLR_MODE = $(ASLR_ENABLE)
69 # common targets
70 build: $(BUILD_32)
72 install: $(INSTALL_32)
74 test: $(TEST_32)
76 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
78 include ../../make-rules/depend.mk