Makefile revision 3817
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# CDDL HEADER START
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# The contents of this file are subject to the terms of the
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# Common Development and Distribution License (the "License").
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# You may not use this file except in compliance with the License.
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# or http://www.opensolaris.org/os/licensing.
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# See the License for the specific language governing permissions
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# and limitations under the License.
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# When distributing Covered Code, include this CDDL HEADER in each
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# If applicable, add the following below this CDDL HEADER, with the
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# fields enclosed by brackets "[]" replaced with your own identifying
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# information: Portions Copyright [yyyy] [name of copyright owner]
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# CDDL HEADER END
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo SorceCOMPILER = gcc
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorceinclude ../../make-rules/shared-macros.mk
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo SorceCOMPONENT_NAME= webalizer
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo SorceCOMPONENT_VERSION= 2.21.2
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo SorceHUMAN_VERSION= 2.21-02
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo SorceCOMPONENT_PROJECT_URL= http://www.mrunix.net/webalizer/
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo SorceCOMPONENT_SRC= $(COMPONENT_NAME)-$(HUMAN_VERSION)
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo SorceCOMPONENT_ARCHIVE= $(COMPONENT_SRC)-src.tar.bz2
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo SorceCOMPONENT_ARCHIVE_HASH= \
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce sha256:f2663d67f5820644a0b1c0b7dee4a5c764d829166fa28d5880442c28886729d9
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo SorceCOMPONENT_ARCHIVE_URL= ftp://ftp.mrunix.net/pub/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo SorceCOMPONENT_BUGDB= utility/webalizer
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo SorceTPNO= 9201
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorceinclude $(WS_MAKE_RULES)/prep.mk
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorceinclude $(WS_MAKE_RULES)/configure.mk
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorceinclude $(WS_MAKE_RULES)/ips.mk
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo SorceCOMPONENT_PRE_CONFIGURE_ACTION = \
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce ($(CLONEY) $(SOURCE_DIR) $(@D))
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# Adjust the log file pathname in the sample configuration file.
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo SorceCOMPONENT_PRE_BUILD_ACTION += \
ab967283b710dfa05d11ee5b30c7ac916486ceecSimo Sorce $(GSED) -i -e 's?lib/httpd/logs/?apache2/2.2/logs/?' \
c6872e79e8496fd075e20aec0343ade99cca725cSimo Sorce $(SOURCE_DIR)/sample.conf
c6872e79e8496fd075e20aec0343ade99cca725cSimo Sorce
c6872e79e8496fd075e20aec0343ade99cca725cSimo SorceCONFIGURE_OPTIONS += --enable-dns
7c69221077c780e62f6c536e78675f2dc1c131bcMichal ZidekCONFIGURE_OPTIONS += --with-gd=/usr/include/gd2
22a21e910fd216ec1468fe769dcc29f1621a52a4Ondrej KosCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
ab967283b710dfa05d11ee5b30c7ac916486ceecSimo SorceCONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
ab967283b710dfa05d11ee5b30c7ac916486ceecSimo Sorce
ab967283b710dfa05d11ee5b30c7ac916486ceecSimo Sorce# webalizer is defining u_int64_t but also uses db.h
ab967283b710dfa05d11ee5b30c7ac916486ceecSimo Sorce# which typedefs it, and parfait and gcc 4.7 aren't happy.
233a3c6c48972b177e60d6ef4cecfacd3cf31659Simo SorceCC += -Du_int64_t=uint64_t
c6872e79e8496fd075e20aec0343ade99cca725cSimo SorceCONFIGURE_OPTIONS += c_cv_type_u_int64_t=yes
c6872e79e8496fd075e20aec0343ade99cca725cSimo Sorce
233a3c6c48972b177e60d6ef4cecfacd3cf31659Simo Sorce# Needed to correctly build that 64-bit library.
233a3c6c48972b177e60d6ef4cecfacd3cf31659Simo SorceLDFLAGS += $(CC_BITS)
c9b0071bfcb8eb8c71e40248de46d23aceecc0f3Pavel Reichl
c9b0071bfcb8eb8c71e40248de46d23aceecc0f3Pavel ReichlASLR_MODE = $(ASLR_ENABLE)
c9b0071bfcb8eb8c71e40248de46d23aceecc0f3Pavel Reichl
dfd71fc92db940b2892cc996911cec03d7b6c52bSimo Sorce# common targets
f9961e5f82e0ef474d6492371bfdf9e74e208a99Pavel Březinaconfigure: $(CONFIGURE_64)
f9961e5f82e0ef474d6492371bfdf9e74e208a99Pavel Březina
e5f455afbc2d149527bfd08f4e89903a3a8da17aPavel Březinabuild: $(BUILD_64)
9cb46bc62f22e0104f1b41a423b014c281ef5fc2Jakub Hrozek
9cb46bc62f22e0104f1b41a423b014c281ef5fc2Jakub Hrozekinstall: $(INSTALL_64)
9cb46bc62f22e0104f1b41a423b014c281ef5fc2Jakub Hrozek
7caf7ed4f2eae1ec1c0717b4ee6ce78bdacd5926Jakub Hrozektest: $(NO_TESTS)
dcc6877aa2e2dd63a9dc9c411a9c58feaeb36b9aStephen Gallagher
bc30ce9b7d588a17e58012e699986f0d6898b791Pavel Březina
b5ee224324b0158641d9b110f81d2bc6eddddc13Pavel ReichlREQUIRED_PACKAGES += database/berkeleydb-5
2a96981a0ac781d01e5bba473409ed2bdf4cd4e0Jakub HrozekREQUIRED_PACKAGES += library/gd
e81deec535d11912b87954c81a1edd768c1386c9Jakub HrozekREQUIRED_PACKAGES += library/zlib
4dd38025efda88f123eac672f87d3cda12f050c8Jakub HrozekREQUIRED_PACKAGES += system/library
4dd38025efda88f123eac672f87d3cda12f050c8Jakub HrozekREQUIRED_PACKAGES += system/library/math
0161a3c5637a0c0092bf54c436bb3d6508d7df26Jakub Hrozek