Makefile revision 407
364b3f41370b5853ec58ed0f094565f69ab7c7fdLuke Smith#
28ab732ad7743763a94f34d018067c184e17de96Tilo Mitra# CDDL HEADER START
28ab732ad7743763a94f34d018067c184e17de96Tilo Mitra#
364b3f41370b5853ec58ed0f094565f69ab7c7fdLuke Smith# The contents of this file are subject to the terms of the
28ab732ad7743763a94f34d018067c184e17de96Tilo Mitra# Common Development and Distribution License (the "License").
364b3f41370b5853ec58ed0f094565f69ab7c7fdLuke Smith# You may not use this file except in compliance with the License.
364b3f41370b5853ec58ed0f094565f69ab7c7fdLuke Smith#
28ab732ad7743763a94f34d018067c184e17de96Tilo Mitra# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
290b5481ab152cfd458486efb552b3f20cacb31fLuke Smith# or http://www.opensolaris.org/os/licensing.
28ab732ad7743763a94f34d018067c184e17de96Tilo Mitra# See the License for the specific language governing permissions
28ab732ad7743763a94f34d018067c184e17de96Tilo Mitra# and limitations under the License.
a9469f39cbc0ff8977226a5e0469330341c5186eLuke Smith#
a9469f39cbc0ff8977226a5e0469330341c5186eLuke Smith# When distributing Covered Code, include this CDDL HEADER in each
a9469f39cbc0ff8977226a5e0469330341c5186eLuke Smith# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a9469f39cbc0ff8977226a5e0469330341c5186eLuke Smith# If applicable, add the following below this CDDL HEADER, with the
a9469f39cbc0ff8977226a5e0469330341c5186eLuke Smith# fields enclosed by brackets "[]" replaced with your own identifying
a9469f39cbc0ff8977226a5e0469330341c5186eLuke Smith# information: Portions Copyright [yyyy] [name of copyright owner]
a9469f39cbc0ff8977226a5e0469330341c5186eLuke Smith#
a9469f39cbc0ff8977226a5e0469330341c5186eLuke Smith# CDDL HEADER END
a9469f39cbc0ff8977226a5e0469330341c5186eLuke Smith#
a9469f39cbc0ff8977226a5e0469330341c5186eLuke Smith
a9469f39cbc0ff8977226a5e0469330341c5186eLuke Smith#
a9469f39cbc0ff8977226a5e0469330341c5186eLuke Smith# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
a9469f39cbc0ff8977226a5e0469330341c5186eLuke Smith#
a9469f39cbc0ff8977226a5e0469330341c5186eLuke Smith
a9469f39cbc0ff8977226a5e0469330341c5186eLuke Smithinclude ../../make-rules/shared-macros.mk
a9469f39cbc0ff8977226a5e0469330341c5186eLuke Smith
a9469f39cbc0ff8977226a5e0469330341c5186eLuke SmithCOMPONENT_NAME= privoxy
a9469f39cbc0ff8977226a5e0469330341c5186eLuke SmithCOMPONENT_VERSION= 3.0.8
a9469f39cbc0ff8977226a5e0469330341c5186eLuke SmithCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)-stable
a9469f39cbc0ff8977226a5e0469330341c5186eLuke SmithCOMPONENT_ARCHIVE= $(COMPONENT_SRC)-src.tar.gz
a9469f39cbc0ff8977226a5e0469330341c5186eLuke SmithCOMPONENT_PROJECT_URL= http://www.privoxy.org/
a9469f39cbc0ff8977226a5e0469330341c5186eLuke SmithCOMPONENT_ARCHIVE_HASH= sha1:7fe2b7afde4066ef1f170f5f11850cf9da428a42
a9469f39cbc0ff8977226a5e0469330341c5186eLuke SmithCOMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/ijbswa/$(COMPONENT_ARCHIVE)
a9469f39cbc0ff8977226a5e0469330341c5186eLuke Smith
a9469f39cbc0ff8977226a5e0469330341c5186eLuke Smithinclude ../../make-rules/prep.mk
28ab732ad7743763a94f34d018067c184e17de96Tilo Mitrainclude ../../make-rules/configure.mk
28ab732ad7743763a94f34d018067c184e17de96Tilo Mitrainclude ../../make-rules/ips.mk
28ab732ad7743763a94f34d018067c184e17de96Tilo Mitra
28ab732ad7743763a94f34d018067c184e17de96Tilo MitraCOMPONENT_PRE_CONFIGURE_ACTION = \
28ab732ad7743763a94f34d018067c184e17de96Tilo Mitra ($(CLONEY) $(SOURCE_DIR) $(@D))
28ab732ad7743763a94f34d018067c184e17de96Tilo Mitra
98c7a407991cdb0caa6bce97544759d7d56b39e0Tilo MitraCOMPONENT_PREP_ACTION = \
a9469f39cbc0ff8977226a5e0469330341c5186eLuke Smith (cd $(@D) ; \
a9469f39cbc0ff8977226a5e0469330341c5186eLuke Smith autoheader; \
98c7a407991cdb0caa6bce97544759d7d56b39e0Tilo Mitra autoconf )
98c7a407991cdb0caa6bce97544759d7d56b39e0Tilo Mitra
98c7a407991cdb0caa6bce97544759d7d56b39e0Tilo Mitra# Needed to installed most of the files into the proto area.
98c7a407991cdb0caa6bce97544759d7d56b39e0Tilo MitraCONFIGURE_OPTIONS += --sysconfdir=/etc
98c7a407991cdb0caa6bce97544759d7d56b39e0Tilo MitraCONFIGURE_OPTIONS += --localstatedir=/var
98c7a407991cdb0caa6bce97544759d7d56b39e0Tilo Mitra
98c7a407991cdb0caa6bce97544759d7d56b39e0Tilo Mitra# DESTDIR doesn't work correctly, so we specify some of the paths directly.
98c7a407991cdb0caa6bce97544759d7d56b39e0Tilo MitraCOMPONENT_INSTALL_ARGS += prefix=$(PROTOUSRDIR)
a9469f39cbc0ff8977226a5e0469330341c5186eLuke SmithCOMPONENT_INSTALL_ARGS += CONF_BASE=$(PROTOETCDIR)
a9469f39cbc0ff8977226a5e0469330341c5186eLuke SmithCOMPONENT_INSTALL_ARGS += SBIN_DEST=$(PROTOUSRSBINDIR)
a9469f39cbc0ff8977226a5e0469330341c5186eLuke SmithCOMPONENT_INSTALL_ARGS += MAN_DIR=$(PROTOUSRSHAREMANDIR)
a9469f39cbc0ff8977226a5e0469330341c5186eLuke SmithCOMPONENT_INSTALL_ARGS += VAR_DEST=$(PROTO_DIR)/var
a9469f39cbc0ff8977226a5e0469330341c5186eLuke Smith
a9469f39cbc0ff8977226a5e0469330341c5186eLuke Smith# common targets
a9469f39cbc0ff8977226a5e0469330341c5186eLuke Smithbuild: $(BUILD_32)
a9469f39cbc0ff8977226a5e0469330341c5186eLuke Smith
a9469f39cbc0ff8977226a5e0469330341c5186eLuke Smithinstall: $(INSTALL_32)
98c7a407991cdb0caa6bce97544759d7d56b39e0Tilo Mitra $(CP) $(BUILD_DIR_32)/templates/* $(PROTOETCDIR)/templates
a9469f39cbc0ff8977226a5e0469330341c5186eLuke Smith $(MKDIR) $(PROTOUSRSHAREDOCDIR)/privoxy
a9469f39cbc0ff8977226a5e0469330341c5186eLuke Smith $(CP) $(BUILD_DIR_32)/doc/text/faq.txt $(PROTOUSRSHAREDOCDIR)/privoxy
a9469f39cbc0ff8977226a5e0469330341c5186eLuke Smith
a9469f39cbc0ff8977226a5e0469330341c5186eLuke Smithtest: $(NO_TESTS)
98c7a407991cdb0caa6bce97544759d7d56b39e0Tilo Mitra
a9469f39cbc0ff8977226a5e0469330341c5186eLuke SmithBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
98c7a407991cdb0caa6bce97544759d7d56b39e0Tilo Mitra
a9469f39cbc0ff8977226a5e0469330341c5186eLuke Smithinclude ../../make-rules/depend.mk
98c7a407991cdb0caa6bce97544759d7d56b39e0Tilo Mitra