Makefile revision 3889
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# CDDL HEADER START
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# The contents of this file are subject to the terms of the
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Common Development and Distribution License (the "License").
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# You may not use this file except in compliance with the License.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# or http://www.opensolaris.org/os/licensing.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# See the License for the specific language governing permissions
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# and limitations under the License.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# When distributing Covered Code, include this CDDL HEADER in each
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# If applicable, add the following below this CDDL HEADER, with the
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# fields enclosed by brackets "[]" replaced with your own identifying
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# information: Portions Copyright [yyyy] [name of copyright owner]
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# CDDL HEADER END
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPILER = gcc
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinclude ../../make-rules/shared-macros.mk
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_NAME= webalizer
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_VERSION= 2.21.2
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesHUMAN_VERSION= 2.21-02
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_PROJECT_URL= http://www.mrunix.net/webalizer/
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_SRC= $(COMPONENT_NAME)-$(HUMAN_VERSION)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_ARCHIVE= $(COMPONENT_SRC)-src.tar.bz2
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_ARCHIVE_HASH= \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes sha256:f2663d67f5820644a0b1c0b7dee4a5c764d829166fa28d5880442c28886729d9
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_ARCHIVE_URL= ftp://ftp.mrunix.net/pub/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_BUGDB= utility/webalizer
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesTPNO= 9201
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinclude $(WS_MAKE_RULES)/prep.mk
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinclude $(WS_MAKE_RULES)/configure.mk
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinclude $(WS_MAKE_RULES)/ips.mk
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_PRE_CONFIGURE_ACTION = \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes ($(CLONEY) $(SOURCE_DIR) $(@D))
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Adjust the log file pathname in the sample configuration file.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCOMPONENT_PRE_BUILD_ACTION += \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(GSED) -i -e 's?lib/httpd/logs/?apache2/2.2/logs/?' \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(SOURCE_DIR)/sample.conf
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCONFIGURE_OPTIONS += --enable-dns
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCONFIGURE_OPTIONS += --with-gd=/usr/include/gd2
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# webalizer is defining u_int64_t but also uses db.h
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# which typedefs it, and parfait and gcc 4.7 aren't happy.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCC += -Du_int64_t=uint64_t
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCONFIGURE_OPTIONS += c_cv_type_u_int64_t=yes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Needed to correctly build that 64-bit library.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesLDFLAGS += $(CC_BITS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesASLR_MODE = $(ASLR_ENABLE)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# common targets
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesconfigure: $(CONFIGURE_64)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesbuild: $(BUILD_64)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinstall: $(INSTALL_64)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholestest: $(NO_TESTS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesREQUIRED_PACKAGES += database/berkeleydb-5
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesREQUIRED_PACKAGES += library/gd
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesREQUIRED_PACKAGES += library/zlib
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesREQUIRED_PACKAGES += system/library
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesREQUIRED_PACKAGES += system/library/math
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes