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