author | Rich Burridge <rich.burridge@oracle.com> |
Fri, 15 Jul 2011 10:47:35 -0700 | |
changeset 407 | 371955ee7fe6 |
child 451 | 415e37aed447 |
permissions | -rw-r--r-- |
407
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
1 |
# |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
2 |
# CDDL HEADER START |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
3 |
# |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
4 |
# The contents of this file are subject to the terms of the |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
5 |
# Common Development and Distribution License (the "License"). |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
6 |
# You may not use this file except in compliance with the License. |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
7 |
# |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
9 |
# or http://www.opensolaris.org/os/licensing. |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
10 |
# See the License for the specific language governing permissions |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
11 |
# and limitations under the License. |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
12 |
# |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
15 |
# If applicable, add the following below this CDDL HEADER, with the |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner] |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
18 |
# |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
19 |
# CDDL HEADER END |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
20 |
# |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
21 |
|
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
22 |
# |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
23 |
# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
24 |
# |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
25 |
|
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
26 |
include ../../make-rules/shared-macros.mk |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
27 |
|
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
28 |
COMPONENT_NAME= privoxy |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
29 |
COMPONENT_VERSION= 3.0.8 |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
30 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)-stable |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
31 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC)-src.tar.gz |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
32 |
COMPONENT_PROJECT_URL= http://www.privoxy.org/ |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
33 |
COMPONENT_ARCHIVE_HASH= sha1:7fe2b7afde4066ef1f170f5f11850cf9da428a42 |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
34 |
COMPONENT_ARCHIVE_URL= http://downloads.sourceforge.net/ijbswa/$(COMPONENT_ARCHIVE) |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
35 |
|
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
36 |
include ../../make-rules/prep.mk |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
37 |
include ../../make-rules/configure.mk |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
38 |
include ../../make-rules/ips.mk |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
39 |
|
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
40 |
COMPONENT_PRE_CONFIGURE_ACTION = \ |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
41 |
($(CLONEY) $(SOURCE_DIR) $(@D)) |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
42 |
|
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
43 |
COMPONENT_PREP_ACTION = \ |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
44 |
(cd $(@D) ; \ |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
45 |
autoheader; \ |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
46 |
autoconf ) |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
47 |
|
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
48 |
# Needed to installed most of the files into the proto area. |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
49 |
CONFIGURE_OPTIONS += --sysconfdir=/etc |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
50 |
CONFIGURE_OPTIONS += --localstatedir=/var |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
51 |
|
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
52 |
# DESTDIR doesn't work correctly, so we specify some of the paths directly. |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
53 |
COMPONENT_INSTALL_ARGS += prefix=$(PROTOUSRDIR) |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
54 |
COMPONENT_INSTALL_ARGS += CONF_BASE=$(PROTOETCDIR) |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
55 |
COMPONENT_INSTALL_ARGS += SBIN_DEST=$(PROTOUSRSBINDIR) |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
56 |
COMPONENT_INSTALL_ARGS += MAN_DIR=$(PROTOUSRSHAREMANDIR) |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
57 |
COMPONENT_INSTALL_ARGS += VAR_DEST=$(PROTO_DIR)/var |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
58 |
|
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
59 |
# common targets |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
60 |
build: $(BUILD_32) |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
61 |
|
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
62 |
install: $(INSTALL_32) |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
63 |
$(CP) $(BUILD_DIR_32)/templates/* $(PROTOETCDIR)/templates |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
64 |
$(MKDIR) $(PROTOUSRSHAREDOCDIR)/privoxy |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
65 |
$(CP) $(BUILD_DIR_32)/doc/text/faq.txt $(PROTOUSRSHAREDOCDIR)/privoxy |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
66 |
|
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
67 |
test: $(NO_TESTS) |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
68 |
|
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
69 |
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
70 |
|
371955ee7fe6
7067109 Move privoxy to userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
71 |
include ../../make-rules/depend.mk |