components/webalizer/Makefile
changeset 1130 a4adf8cbfa5d
child 1352 1358a1e1ff4c
equal deleted inserted replaced
1129:4de26d59569c 1130:a4adf8cbfa5d
       
     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) 2013, Oracle and/or its affiliates. All rights reserved.
       
    24 #
       
    25 
       
    26 include ../../make-rules/shared-macros.mk
       
    27 
       
    28 COMPONENT_NAME=		webalizer
       
    29 COMPONENT_VERSION=	2.21.2
       
    30 HUMAN_VERSION=		2.21-02
       
    31 COMPONENT_PROJECT_URL=	http://www.mrunix.net/webalizer/
       
    32 COMPONENT_SRC=		$(COMPONENT_NAME)-$(HUMAN_VERSION)
       
    33 COMPONENT_ARCHIVE=	$(COMPONENT_SRC)-src.tar.bz2
       
    34 COMPONENT_ARCHIVE_HASH=	\
       
    35     sha256:f2663d67f5820644a0b1c0b7dee4a5c764d829166fa28d5880442c28886729d9
       
    36 COMPONENT_ARCHIVE_URL=	ftp://ftp.mrunix.net/pub/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
       
    37 COMPONENT_BUGDB=	utility/webalizer
       
    38 
       
    39 include ../../make-rules/prep.mk
       
    40 include ../../make-rules/configure.mk
       
    41 include ../../make-rules/ips.mk
       
    42 
       
    43 COMPONENT_PRE_CONFIGURE_ACTION = \
       
    44 	($(CLONEY) $(SOURCE_DIR) $(@D))
       
    45 
       
    46 # Adjust the log file pathname in the sample configuration file.
       
    47 COMPONENT_PRE_BUILD_ACTION += \
       
    48 	$(GSED) -i -e 's?lib/httpd/logs/?apache2/2.2/logs/?' \
       
    49 		$(SOURCE_DIR)/sample.conf
       
    50 
       
    51 COMPILER =	gcc
       
    52 
       
    53 CONFIGURE_OPTIONS +=	--enable-dns
       
    54 CONFIGURE_OPTIONS +=	--with-gd=/usr/include/gd2
       
    55 CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)"
       
    56 CONFIGURE_OPTIONS +=	LDFLAGS="$(LDFLAGS)"
       
    57 
       
    58 # Needed to correctly build that 64-bit library.
       
    59 LDFLAGS += $(CC_BITS)
       
    60 
       
    61 # common targets
       
    62 build:          $(BUILD_64)
       
    63 
       
    64 install:        $(INSTALL_64)
       
    65 
       
    66 test:           $(NO_TESTS)
       
    67 
       
    68 BUILD_PKG_DEPENDENCIES =        $(BUILD_TOOLS)
       
    69 
       
    70 include ../../make-rules/depend.mk