Makefile revision 5575
3061N/A#
4046N/A# CDDL HEADER START
3061N/A#
3061N/A# The contents of this file are subject to the terms of the
3061N/A# Common Development and Distribution License (the "License").
3061N/A# You may not use this file except in compliance with the License.
3061N/A#
3061N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3061N/A# or http://www.opensolaris.org/os/licensing.
3061N/A# See the License for the specific language governing permissions
3061N/A# and limitations under the License.
3061N/A#
3061N/A# When distributing Covered Code, include this CDDL HEADER in each
3061N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3061N/A# If applicable, add the following below this CDDL HEADER, with the
3061N/A# fields enclosed by brackets "[]" replaced with your own identifying
3061N/A# information: Portions Copyright [yyyy] [name of copyright owner]
3061N/A#
3061N/A# CDDL HEADER END
3061N/A#
3061N/A
3061N/A#
3061N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
3061N/A#
3061N/A
3061N/Ainclude ../../make-rules/shared-macros.mk
3061N/A
3061N/ACOMPONENT_NAME= lighttpd
3061N/ACOMPONENT_VERSION= 1.4.35
3061N/ACOMPONENT_PROJECT_URL= http://www.lighttpd.net/
3061N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
3061N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
3061N/ACOMPONENT_ARCHIVE_HASH= \
3061N/A sha256:62c23de053fd82e1bf64f204cb6c6e44ba3c16c01ff1e09da680d982802ef1cc
3061N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)download/$(COMPONENT_ARCHIVE)
3061N/ACOMPONENT_BUGDB= utility/lighttpd
3061N/A
3061N/ATPNO= 17006
3061N/A
4046N/ALIGHTTPD_INSTALLDIR=/usr/lighttpd/1.4
3061N/A
3061N/Ainclude $(WS_MAKE_RULES)/prep.mk
3061N/Ainclude $(WS_MAKE_RULES)/configure.mk
3061N/Ainclude $(WS_MAKE_RULES)/ips.mk
3061N/A
3061N/APATCH_LEVEL=0
3061N/A
3061N/A# We need to run autogen because we patch configure.ac file
3061N/ACOMPONENT_PREP_ACTION = ( cd $(@D) ; $(CONFIG_SHELL) autogen.sh )
3061N/A
3061N/A# lighttpd is logging using __FILE__ macro. Cloning will make this happen
3061N/A# using just source file names (without full absolute paths).
3061N/ACOMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
3061N/A
3061N/ACONFIGURE_PREFIX= /usr/lighttpd/1.4
3061N/ACONFIGURE_MANDIR= $(CONFIGURE_PREFIX)/man
3061N/A
# Force lighttpd binaries and private modules to standard path
CONFIGURE_SBINDIR.64 = $(CONFIGURE_PREFIX)/sbin
CONFIGURE_LIBDIR.64 = $(CONFIGURE_PREFIX)/lib
CONFIGURE_OPTIONS += --with-pic
CONFIGURE_OPTIONS += --with-lua
CONFIGURE_OPTIONS += --with-openssl
CONFIGURE_OPTIONS += --with-pcre
CONFIGURE_OPTIONS += --with-ldap
CONFIGURE_OPTIONS += --with-mysql=/usr/mysql/5.5/bin/mysql_config
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -I/usr/include/openldap -lldap_r-2.4"
CONFIGURE_OPTIONS += PCRECONFIG="/usr/bin/$(MACH64)/pcre-config"
# Enable ASLR for this component
ASLR_MODE = $(ASLR_ENABLE)
# common targets
configure: $(CONFIGURE_64)
build: $(BUILD_64)
install: $(INSTALL_64)
test: $(TEST_64)
system-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
REQUIRED_PACKAGES += compress/bzip2
REQUIRED_PACKAGES += database/mysql-55
REQUIRED_PACKAGES += database/mysql-55/library
REQUIRED_PACKAGES += library/openldap
REQUIRED_PACKAGES += library/pcre
REQUIRED_PACKAGES += library/security/openssl
REQUIRED_PACKAGES += library/security/openssl/openssl-fips-140
REQUIRED_PACKAGES += library/zlib
REQUIRED_PACKAGES += runtime/lua
REQUIRED_PACKAGES += system/core-os
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/network
REQUIRED_PACKAGES += web/fastcgi/spawn-fcgi