components/lighttpd/Makefile
changeset 331 5001b63ddc8a
child 609 775168282b2f
equal deleted inserted replaced
330:1251baad27f0 331:5001b63ddc8a
       
     1 #
       
     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 
       
    22 #
       
    23 # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
       
    24 #
       
    25 
       
    26 include ../../make-rules/shared-macros.mk
       
    27 
       
    28 COMPONENT_NAME=		lighttpd
       
    29 COMPONENT_VERSION=	1.4.23
       
    30 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
       
    31 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
       
    32 COMPONENT_ARCHIVE_HASH=	sha1:37f8b4827d7a1f69812d8185fcecf72277020876
       
    33 COMPONENT_ARCHIVE_URL=	http://www.lighttpd.net/download/$(COMPONENT_ARCHIVE)
       
    34 
       
    35 LIGHTTPD_INSTALLDIR=/usr/lighttpd/1.4
       
    36 
       
    37 include ../../make-rules/prep.mk
       
    38 include ../../make-rules/configure.mk
       
    39 include ../../make-rules/ips.mk
       
    40 
       
    41 PATCH_LEVEL=0
       
    42 
       
    43 # libtool linking will fail unless we re-create configure.
       
    44 COMPONENT_PREP_ACTION = ( cd $(@D) ; $(CONFIG_SHELL) autogen.sh )
       
    45 
       
    46 # lighttpd is logging using __FILE__ macro. Cloning will make this happen
       
    47 # using just source file names (without full absolute paths).
       
    48 COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
       
    49 
       
    50 CONFIGURE_PREFIX= /usr/lighttpd/1.4
       
    51 CONFIGURE_MANDIR= $(CONFIGURE_PREFIX)/man
       
    52 
       
    53 CONFIGURE_OPTIONS +=	--with-pic
       
    54 CONFIGURE_OPTIONS +=	--with-lua
       
    55 CONFIGURE_OPTIONS +=	--with-openssl
       
    56 CONFIGURE_OPTIONS +=	--with-pcre
       
    57 CONFIGURE_OPTIONS +=	--with-mysql=/usr/mysql/bin/mysql_config
       
    58 CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)"
       
    59 
       
    60 # common targets
       
    61 build:		$(BUILD_32)
       
    62 
       
    63 install:	$(INSTALL_32)
       
    64 
       
    65 test:		$(TEST_32)
       
    66 
       
    67 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
       
    68 
       
    69 include ../../make-rules/depend.mk