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