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