ffmpeg-6: fix COMPONENT_REVISION
[oi-userland.git] / components / web / webalizer / Makefile
blob4d0ae4ec74f5d50cc323472862835104ca0b9b3f
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
23 # Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
24 # Copyright (c) 2013 Erol Zavidic. All rights reserved.
27 include ../../../make-rules/shared-macros.mk
29 COMPONENT_NAME= webalizer
30 COMPONENT_VERSION= 2.23.8
31 HUMAN_VERSION= 2.23-08
32 COMPONENT_REVISION= 1
33 COMPONENT_PROJECT_URL= http://www.webalizer.org/
34 COMPONENT_SRC= $(COMPONENT_NAME)-$(HUMAN_VERSION)
35 COMPONENT_ARCHIVE= $(COMPONENT_SRC)-src.tar.bz2
36 COMPONENT_ARCHIVE_HASH= \
37 sha256:b37524fbd98e97052a80d59f75e69f857468752cf74cc0eb0972e5fab02eb6f7
38 COMPONENT_ARCHIVE_URL= ftp://ftp.mrunix.net/pub/$(COMPONENT_NAME)/$(COMPONENT_ARCHIVE)
39 COMPONENT_BUGDB= utility/webalizer
41 include $(WS_MAKE_RULES)/common.mk
43 COMPONENT_PRE_CONFIGURE_ACTION = \
44 ($(CLONEY) $(SOURCE_DIR) $(@D)); (cd $(SOURCE_DIR); $(GSED) -i -e 's/u_int64_t/uint64_t/g' *.c *.h configure.in configure)
46 # Adjust the log file pathname in the sample configuration file.
47 COMPONENT_PRE_BUILD_ACTION += \
48 $(GSED) -i -e 's?lib/httpd/logs/?apache2/2.2/logs/?' \
49 $(SOURCE_DIR)/sample.conf
51 CPPFLAGS += -I/usr/gnu/include
52 CFLAGS += -fcommon
53 LDFLAGS += -L$(GNULIB) -L$(GNULIB64)
55 CONFIGURE_OPTIONS += --enable-dns
56 CONFIGURE_OPTIONS += --enable-bz2
57 CONFIGURE_OPTIONS += --with-gd=/usr/include/gd2
58 CONFIGURE_OPTIONS += --sysconfdir=$(ETCDIR)
60 # Needed to correctly build that 64-bit library.
61 LDFLAGS += $(CC_BITS)
63 REQUIRED_PACKAGES += compress/bzip2
64 REQUIRED_PACKAGES += database/berkeleydb-5
65 REQUIRED_PACKAGES += library/gd
66 REQUIRED_PACKAGES += library/zlib
67 REQUIRED_PACKAGES += system/library
68 REQUIRED_PACKAGES += system/library/math