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