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