Makefile revision 3661
2426N/A#
2426N/A# CDDL HEADER START
2426N/A#
2426N/A# The contents of this file are subject to the terms of the
2426N/A# Common Development and Distribution License (the "License").
2426N/A# You may not use this file except in compliance with the License.
2426N/A#
2426N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2426N/A# or http://www.opensolaris.org/os/licensing.
2426N/A# See the License for the specific language governing permissions
2426N/A# and limitations under the License.
2426N/A#
2426N/A# When distributing Covered Code, include this CDDL HEADER in each
2426N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2426N/A# If applicable, add the following below this CDDL HEADER, with the
2426N/A# fields enclosed by brackets "[]" replaced with your own identifying
2426N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2426N/A#
2426N/A# CDDL HEADER END
2426N/A#
3996N/A
2426N/A#
2426N/A# Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
2426N/A#
2426N/A
2426N/Ainclude ../../make-rules/shared-macros.mk
2426N/A
2426N/ACOMPONENT_NAME= webalizer
2426N/ACOMPONENT_VERSION= 2.21.2
2426N/AHUMAN_VERSION= 2.21-02
2426N/ACOMPONENT_PROJECT_URL= http://www.mrunix.net/webalizer/
2426N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(HUMAN_VERSION)
2426N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC)-src.tar.bz2
2426N/ACOMPONENT_ARCHIVE_HASH= \
3661N/A sha256:f2663d67f5820644a0b1c0b7dee4a5c764d829166fa28d5880442c28886729d9
3661N/ACOMPONENT_ARCHIVE_URL= ftp://ftp.mrunix.net/pub/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
3778N/ACOMPONENT_BUGDB= utility/webalizer
3778N/A
3778N/ATPNO= 9201
2426N/A
2426N/Ainclude ../../make-rules/prep.mk
2426N/Ainclude ../../make-rules/configure.mk
3996N/Ainclude ../../make-rules/ips.mk
3996N/A
3996N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
2426N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
2426N/A
2426N/A# Adjust the log file pathname in the sample configuration file.
3778N/ACOMPONENT_PRE_BUILD_ACTION += \
3778N/A $(GSED) -i -e 's?lib/httpd/logs/?apache2/2.2/logs/?' \
3778N/A $(SOURCE_DIR)/sample.conf
3778N/A
2426N/ACOMPILER = gcc3
2426N/A
2426N/ACONFIGURE_OPTIONS += --enable-dns
2426N/ACONFIGURE_OPTIONS += --with-gd=/usr/include/gd2
2426N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
2426N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
2426N/A
2426N/A# webalizer is defining u_int64_t but also uses db.h
2426N/A# which typedefs it, and parfait isn't happy.
2426N/A# gcc4 may not be as well.
2426N/Aifeq ($(strip $(PARFAIT_BUILD)),yes)
CC += -Du_int64_t=uint64_t
CONFIGURE_OPTIONS += c_cv_type_u_int64_t=yes
endif
# Needed to correctly build that 64-bit library.
LDFLAGS += $(CC_BITS)
# common targets
build: $(BUILD_64)
install: $(INSTALL_64)
test: $(NO_TESTS)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk