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