Makefile revision 3996
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, 2015, Oracle and/or its affiliates. All rights reserved.
32N/A#
32N/A
2N/ACOMPILER = gcc3
2N/A
26N/Ainclude ../../make-rules/shared-macros.mk
38N/A
38N/ACOMPONENT_NAME= webalizer
38N/ACOMPONENT_VERSION= 2.21.2
29N/AHUMAN_VERSION= 2.21-02
93N/ACOMPONENT_PROJECT_URL= http://www.mrunix.net/webalizer/
29N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(HUMAN_VERSION)
29N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC)-src.tar.bz2
26N/ACOMPONENT_ARCHIVE_HASH= \
26N/A sha256:f2663d67f5820644a0b1c0b7dee4a5c764d829166fa28d5880442c28886729d9
29N/ACOMPONENT_ARCHIVE_URL= ftp://ftp.mrunix.net/pub/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
26N/ACOMPONENT_BUGDB= utility/webalizer
2N/A
38N/ATPNO= 9201
2N/A
6N/Ainclude $(WS_MAKE_RULES)/prep.mk
2N/Ainclude $(WS_MAKE_RULES)/configure.mk
58N/Ainclude $(WS_MAKE_RULES)/ips.mk
2N/A
2N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
34N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
34N/A
34N/A# Adjust the log file pathname in the sample configuration file.
34N/ACOMPONENT_PRE_BUILD_ACTION += \
49N/A $(GSED) -i -e 's?lib/httpd/logs/?apache2/2.2/logs/?' \
70N/A $(SOURCE_DIR)/sample.conf
2N/A
34N/ACONFIGURE_OPTIONS += --enable-dns
34N/ACONFIGURE_OPTIONS += --with-gd=/usr/include/gd2
94N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
94N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
34N/A
59N/A# webalizer is defining u_int64_t but also uses db.h
72N/A# which typedefs it, and parfait isn't happy.
72N/A# gcc4 may not be as well.
72N/Aifeq ($(strip $(PARFAIT_BUILD)),yes)
59N/ACC += -Du_int64_t=uint64_t
2N/ACONFIGURE_OPTIONS += c_cv_type_u_int64_t=yes
85N/Aendif
61N/A
61N/A# Needed to correctly build that 64-bit library.
61N/ALDFLAGS += $(CC_BITS)
61N/A
61N/A# common targets
61N/Abuild: $(BUILD_64)
61N/A
61N/Ainstall: $(INSTALL_64)
61N/A
74N/Atest: $(NO_TESTS)
61N/A
85N/A
61N/AREQUIRED_PACKAGES += database/berkeleydb-5
61N/AREQUIRED_PACKAGES += library/gd
61N/AREQUIRED_PACKAGES += library/zlib
61N/AREQUIRED_PACKAGES += system/library
61N/AREQUIRED_PACKAGES += system/library/math
61N/A