components/gnupg/Makefile
author Jan Friedel <jan.friedel@oracle.com>
Tue, 09 Jun 2015 06:09:29 -0700
changeset 4445 b7d583b46a82
parent 4339 6501cf9c29f9
child 5000 ba06ad809495
permissions -rw-r--r--
20867237 Upgrade GnuPG to 2.0.27 20831624 problem in UTILITY/GNUPG
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
303
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     1
#
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     3
#
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     7
#
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    12
#
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    18
#
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    20
#
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    21
# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
303
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    22
#
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    23
include ../../make-rules/shared-macros.mk
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    24
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    25
COMPONENT_NAME=		gnupg
4445
b7d583b46a82 20867237 Upgrade GnuPG to 2.0.27
Jan Friedel <jan.friedel@oracle.com>
parents: 4339
diff changeset
    26
COMPONENT_VERSION=	2.0.27
303
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    27
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    28
COMPONENT_PROJECT_URL=	http://www.gnupg.org/
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    29
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.bz2
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 401
diff changeset
    30
COMPONENT_ARCHIVE_HASH=	\
4445
b7d583b46a82 20867237 Upgrade GnuPG to 2.0.27
Jan Friedel <jan.friedel@oracle.com>
parents: 4339
diff changeset
    31
    sha256:57646d3e4b919fa1e5c8f1c0cf5fe1215333041c493a5ebc4b8f2978dbe930f2
303
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE_URL=	ftp://ftp.gnupg.org/gcrypt/gnupg/$(COMPONENT_ARCHIVE)
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 800
diff changeset
    33
COMPONENT_BUGDB=	utility/gnupg
303
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    34
4445
b7d583b46a82 20867237 Upgrade GnuPG to 2.0.27
Jan Friedel <jan.friedel@oracle.com>
parents: 4339
diff changeset
    35
TPNO=			22246
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1724
diff changeset
    36
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    37
include $(WS_MAKE_RULES)/prep.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    38
include $(WS_MAKE_RULES)/configure.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
    39
include $(WS_MAKE_RULES)/ips.mk
303
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    40
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    41
# Enable C99 mode + -Xc for its additional warnings.
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    42
studio_C99MODE = -Xc $(studio_C99_ENABLE)
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    43
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    44
# -xinline=%auto -- we like inlining where appropriate
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    45
CFLAGS += -xinline=%auto
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    46
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    47
# -xbuiltin=%none -- builtins have been known to be buggy
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    48
CFLAGS += -xbuiltin=%none
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    49
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    50
CFLAGS += $(CPP_LARGEFILES)
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    51
CFLAGS += $(XPG6MODE)
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    52
CFLAGS += $(CPP_POSIX)
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    53
CFLAGS += $(CPP_C99_EXTENDED_MATH)
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    54
CFLAGS += $(studio_PIC)
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    55
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    56
# If we pass -lc, -mt won't link with -lthread
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    57
# (which is what it does by default, and we don't
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    58
# want that, because we use POSIX threads).
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    59
LDFLAGS += -lc -z defs
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    60
LD_OPTIONS += -z defs
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    61
4117
8388cfa6a859 20334187 Upgrade GnuPG to 2.0.26
Stefan Teleman <stefan.teleman@oracle.com>
parents: 3817
diff changeset
    62
COMPONENT_TEST_TRANSFORMS += \
8388cfa6a859 20334187 Upgrade GnuPG to 2.0.26
Stefan Teleman <stefan.teleman@oracle.com>
parents: 3817
diff changeset
    63
     '-e "/libtool/d"' \
8388cfa6a859 20334187 Upgrade GnuPG to 2.0.26
Stefan Teleman <stefan.teleman@oracle.com>
parents: 3817
diff changeset
    64
     '-e "/-m32/d"' \
8388cfa6a859 20334187 Upgrade GnuPG to 2.0.26
Stefan Teleman <stefan.teleman@oracle.com>
parents: 3817
diff changeset
    65
     '-e "/-m64/d"' \
8388cfa6a859 20334187 Upgrade GnuPG to 2.0.26
Stefan Teleman <stefan.teleman@oracle.com>
parents: 3817
diff changeset
    66
     '-e "/ld: warning/d"' \
8388cfa6a859 20334187 Upgrade GnuPG to 2.0.26
Stefan Teleman <stefan.teleman@oracle.com>
parents: 3817
diff changeset
    67
     '-e "/warning/d"' \
8388cfa6a859 20334187 Upgrade GnuPG to 2.0.26
Stefan Teleman <stefan.teleman@oracle.com>
parents: 3817
diff changeset
    68
     '-e "/Generat/d"' \
8388cfa6a859 20334187 Upgrade GnuPG to 2.0.26
Stefan Teleman <stefan.teleman@oracle.com>
parents: 3817
diff changeset
    69
     '-e "/Creat/d"' \
8388cfa6a859 20334187 Upgrade GnuPG to 2.0.26
Stefan Teleman <stefan.teleman@oracle.com>
parents: 3817
diff changeset
    70
     '-e "/Compos/d"' \
8388cfa6a859 20334187 Upgrade GnuPG to 2.0.26
Stefan Teleman <stefan.teleman@oracle.com>
parents: 3817
diff changeset
    71
     '-e "/Writ/d"' \
8388cfa6a859 20334187 Upgrade GnuPG to 2.0.26
Stefan Teleman <stefan.teleman@oracle.com>
parents: 3817
diff changeset
    72
     '-e "/Read/d"' \
8388cfa6a859 20334187 Upgrade GnuPG to 2.0.26
Stefan Teleman <stefan.teleman@oracle.com>
parents: 3817
diff changeset
    73
     '-e "/Home/d"' \
8388cfa6a859 20334187 Upgrade GnuPG to 2.0.26
Stefan Teleman <stefan.teleman@oracle.com>
parents: 3817
diff changeset
    74
     '-e "/from/d"' \
8388cfa6a859 20334187 Upgrade GnuPG to 2.0.26
Stefan Teleman <stefan.teleman@oracle.com>
parents: 3817
diff changeset
    75
     '-e "/--run/d"' \
8388cfa6a859 20334187 Upgrade GnuPG to 2.0.26
Stefan Teleman <stefan.teleman@oracle.com>
parents: 3817
diff changeset
    76
     '-e "/rm -f/d"' \
8388cfa6a859 20334187 Upgrade GnuPG to 2.0.26
Stefan Teleman <stefan.teleman@oracle.com>
parents: 3817
diff changeset
    77
     '-e "/Nothing/d"' \
8388cfa6a859 20334187 Upgrade GnuPG to 2.0.26
Stefan Teleman <stefan.teleman@oracle.com>
parents: 3817
diff changeset
    78
     '-e "/Leaving/d"' \
8388cfa6a859 20334187 Upgrade GnuPG to 2.0.26
Stefan Teleman <stefan.teleman@oracle.com>
parents: 3817
diff changeset
    79
     '-e "/Entering/d"' \
8388cfa6a859 20334187 Upgrade GnuPG to 2.0.26
Stefan Teleman <stefan.teleman@oracle.com>
parents: 3817
diff changeset
    80
     '-e "/Making/d"' \
8388cfa6a859 20334187 Upgrade GnuPG to 2.0.26
Stefan Teleman <stefan.teleman@oracle.com>
parents: 3817
diff changeset
    81
     '-e "/Known envvars/d"' \
8388cfa6a859 20334187 Upgrade GnuPG to 2.0.26
Stefan Teleman <stefan.teleman@oracle.com>
parents: 3817
diff changeset
    82
     '-e "/make/d"' \
8388cfa6a859 20334187 Upgrade GnuPG to 2.0.26
Stefan Teleman <stefan.teleman@oracle.com>
parents: 3817
diff changeset
    83
     '-e "s/[0-9]\{1,\}\.[0-9]\{1,\} s, //g"' \
8388cfa6a859 20334187 Upgrade GnuPG to 2.0.26
Stefan Teleman <stefan.teleman@oracle.com>
parents: 3817
diff changeset
    84
     '-e "s^[0-9]\{1,\} kB/s^^g"'  \
8388cfa6a859 20334187 Upgrade GnuPG to 2.0.26
Stefan Teleman <stefan.teleman@oracle.com>
parents: 3817
diff changeset
    85
     '-e "s^[0-9]\{1,\}  kB/s^^g"'  \
8388cfa6a859 20334187 Upgrade GnuPG to 2.0.26
Stefan Teleman <stefan.teleman@oracle.com>
parents: 3817
diff changeset
    86
     '-e "s^[0-9]\{1,\}\.[0-9]\{1,\}  MB/s^^g"' \
8388cfa6a859 20334187 Upgrade GnuPG to 2.0.26
Stefan Teleman <stefan.teleman@oracle.com>
parents: 3817
diff changeset
    87
     '-e "s^[0-9]\{1,\}\.[0-9]\{1,\} MB/s^^g"' \
8388cfa6a859 20334187 Upgrade GnuPG to 2.0.26
Stefan Teleman <stefan.teleman@oracle.com>
parents: 3817
diff changeset
    88
     '-e "s/([0-9]\{1,\} B)//g"' \
8388cfa6a859 20334187 Upgrade GnuPG to 2.0.26
Stefan Teleman <stefan.teleman@oracle.com>
parents: 3817
diff changeset
    89
     '-e "s/([0-9]\{1,\}  B)//g"' \
8388cfa6a859 20334187 Upgrade GnuPG to 2.0.26
Stefan Teleman <stefan.teleman@oracle.com>
parents: 3817
diff changeset
    90
     '-e "s/copied,/copied/g"'  \
8388cfa6a859 20334187 Upgrade GnuPG to 2.0.26
Stefan Teleman <stefan.teleman@oracle.com>
parents: 3817
diff changeset
    91
     '-e "s/ \{1,\}copied/ copied/g"'  \
8388cfa6a859 20334187 Upgrade GnuPG to 2.0.26
Stefan Teleman <stefan.teleman@oracle.com>
parents: 3817
diff changeset
    92
     '-e "s/copied $$/copied/g"'  \
8388cfa6a859 20334187 Upgrade GnuPG to 2.0.26
Stefan Teleman <stefan.teleman@oracle.com>
parents: 3817
diff changeset
    93
     '-e "s/copied [0-9]\{1,\}\./copied/g"'
8388cfa6a859 20334187 Upgrade GnuPG to 2.0.26
Stefan Teleman <stefan.teleman@oracle.com>
parents: 3817
diff changeset
    94
303
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    95
CONFIGURE_ENV +=	CFLAGS="$(CFLAGS)"
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    96
CONFIGURE_ENV +=	LDFLAGS="$(LDFLAGS)"
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    97
CONFIGURE_ENV +=	INSTALL="$(INSTALL)"
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
    98
4117
8388cfa6a859 20334187 Upgrade GnuPG to 2.0.26
Stefan Teleman <stefan.teleman@oracle.com>
parents: 3817
diff changeset
    99
# Without this GnuPG's ./configure will complain that we're not using
8388cfa6a859 20334187 Upgrade GnuPG to 2.0.26
Stefan Teleman <stefan.teleman@oracle.com>
parents: 3817
diff changeset
   100
# GNU make. But we are.
8388cfa6a859 20334187 Upgrade GnuPG to 2.0.26
Stefan Teleman <stefan.teleman@oracle.com>
parents: 3817
diff changeset
   101
CONFIGURE_ENV +=	MAKE="$(GMAKE)"
8388cfa6a859 20334187 Upgrade GnuPG to 2.0.26
Stefan Teleman <stefan.teleman@oracle.com>
parents: 3817
diff changeset
   102
303
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   103
CONFIGURE_OPTIONS  +=		--localstatedir=/var
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   104
CONFIGURE_OPTIONS  +=		--libexecdir=$(USRBINDIR)
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   105
CONFIGURE_OPTIONS  +=		--datadir=$(CONFIGURE_PREFIX)/share
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   106
CONFIGURE_OPTIONS  +=		--sysconfdir=/etc
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   107
CONFIGURE_OPTIONS  +=		--infodir=$(CONFIGURE_INFODIR)
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   108
CONFIGURE_OPTIONS  +=		--enable-nls
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   109
CONFIGURE_OPTIONS  +=		--enable-largefile
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   110
CONFIGURE_OPTIONS  +=		--disable-selinux-support
401
bf52ef48020c 7061153 error message for tcsd lists incorrect man page information
Wyllys Ingersoll <Wyllys.Ingersoll@Oracle.COM>
parents: 303
diff changeset
   111
CONFIGURE_OPTIONS  +=		--with-pinentry-pgm=$(CONFIGURE_PREFIX)/lib/pinentry
303
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   112
CONFIGURE_OPTIONS  +=		--with-gpg-error-prefix=$(CONFIGURE_PREFIX)
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   113
CONFIGURE_OPTIONS  +=		--with-libassuan-prefix=$(CONFIGURE_PREFIX)
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   114
CONFIGURE_OPTIONS  +=		--with-ksba-prefix=$(CONFIGURE_PREFIX)
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   115
CONFIGURE_OPTIONS  +=		--with-pth-prefix=$(CONFIGURE_PREFIX)
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   116
CONFIGURE_OPTIONS  +=		--with-libcurl=$(CONFIGURE_PREFIX)
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   117
CONFIGURE_OPTIONS  +=		--with-libiconv-prefix=$(CONFIGURE_PREFIX)
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   118
CONFIGURE_OPTIONS  +=		--with-libintl-prefix=$(CONFIGURE_PREFIX)
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   119
CONFIGURE_OPTIONS  +=		--with-zlib=$(CONFIGURE_PREFIX)
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   120
CONFIGURE_OPTIONS  +=		--with-bzip2=$(CONFIGURE_PREFIX)
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   121
CONFIGURE_OPTIONS  +=		--with-readline=$(CONFIGURE_PREFIX)
1724
c2416ec0de64 18277000 Migrate GD2 to 64-bit
XINGSZHA <erich.zhang@oracle.com>
parents: 1678
diff changeset
   122
CONFIGURE_BINDIR.64 =   $(CONFIGURE_PREFIX)/bin
c2416ec0de64 18277000 Migrate GD2 to 64-bit
XINGSZHA <erich.zhang@oracle.com>
parents: 1678
diff changeset
   123
CONFIGURE_SBINDIR.64 =  $(CONFIGURE_PREFIX)/sbin
303
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   124
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   125
LIBKSBA_MANIFEST = 	manifest-$(MACH)-libksba.depend
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   126
LIBASSUAN_MANIFEST =	manifest-$(MACH)-libassuan.depend
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   127
GPGME_MANIFEST =	manifest-$(MACH)-gpgme.depend
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   128
PINENTRY_MANIFEST =	manifest-$(MACH)-pinentry.depend
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   129
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   130
# Work around pkgdepend bug which doesn't resolve dependencies from
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   131
# the local workspace repo. Fortunately we only have to do this once.
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   132
DEPENDED +=	$(WS_TOP)/components/libksba/build/$(LIBKSBA_MANIFEST)
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   133
DEPENDED +=	$(WS_TOP)/components/libassuan/build/$(LIBASSUAN_MANIFEST)
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   134
DEPENDED +=	$(WS_TOP)/components/gpgme/build/$(GPGME_MANIFEST)
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   135
DEPENDED +=	$(WS_TOP)/components/pinentry/build/$(PINENTRY_MANIFEST)
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   136
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   137
PKG_PROTO_DIRS += $(WS_TOP)/components/libksba
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   138
PKG_PROTO_DIRS += $(WS_TOP)/components/libassuan
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   139
PKG_PROTO_DIRS += $(WS_TOP)/components/gpgme
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   140
PKG_PROTO_DIRS += $(WS_TOP)/components/pinentry
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   141
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   142
MAN8LIST = addgnupghome applygnupgdefaults
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   143
1678
68d1cdc71760 18141171 gnupg, libidn, nmap, openexr, pinentry and rtorrent need ASLR enabled.
XINGSZHA <erich.zhang@oracle.com>
parents: 1644
diff changeset
   144
ASLR_MODE = $(ASLR_ENABLE)
68d1cdc71760 18141171 gnupg, libidn, nmap, openexr, pinentry and rtorrent need ASLR enabled.
XINGSZHA <erich.zhang@oracle.com>
parents: 1644
diff changeset
   145
2225
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 1948
diff changeset
   146
configure:	$(CONFIGURE_64)
f064d3d3190d 20078677 Userland Makefiles should support a configure: target
John Beck <John.Beck@Oracle.COM>
parents: 1948
diff changeset
   147
1724
c2416ec0de64 18277000 Migrate GD2 to 64-bit
XINGSZHA <erich.zhang@oracle.com>
parents: 1678
diff changeset
   148
build: $(BUILD_64)
303
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   149
1724
c2416ec0de64 18277000 Migrate GD2 to 64-bit
XINGSZHA <erich.zhang@oracle.com>
parents: 1678
diff changeset
   150
install: $(INSTALL_64)
303
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   151
	( cd $(PROTOUSRSHARELOCALEDIR) ; \
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   152
	    $(CP) -R 'en@boldquot' en )
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   153
	( cd $(PROTOUSRSHAREMANDIR) ; \
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   154
	    if test -d man8 ; then \
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   155
	    $(MV) man8 man1m ; fi )
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   156
	( cd $(PROTOUSRSHAREMANDIR)/man1m ; \
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   157
	    list1='$(MAN8LIST)' ; for f in $$list1; do \
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   158
	    if test -f $$f.8 ; then \
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   159
	    $(MV) $$f.8 $$f.1m ; fi ; \
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   160
	    done )
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   161
1724
c2416ec0de64 18277000 Migrate GD2 to 64-bit
XINGSZHA <erich.zhang@oracle.com>
parents: 1678
diff changeset
   162
test: $(TEST_64)
303
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   163
4339
6501cf9c29f9 21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents: 4117
diff changeset
   164
system-test:    $(SYSTEM_TESTS_NOT_IMPLEMENTED)
6501cf9c29f9 21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents: 4117
diff changeset
   165
4117
8388cfa6a859 20334187 Upgrade GnuPG to 2.0.26
Stefan Teleman <stefan.teleman@oracle.com>
parents: 3817
diff changeset
   166
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
303
cae844b2d132 7050043 GnuPG && friends to Userland
Stefan Teleman <stefan.teleman@oracle.com>
parents:
diff changeset
   167
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   168
REQUIRED_PACKAGES += compress/bzip2
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   169
REQUIRED_PACKAGES += library/desktop/gtk2
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   170
REQUIRED_PACKAGES += library/desktop/pango
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   171
REQUIRED_PACKAGES += library/glib2
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   172
REQUIRED_PACKAGES += library/pth
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   173
REQUIRED_PACKAGES += library/readline
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   174
REQUIRED_PACKAGES += library/security/libassuan
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   175
REQUIRED_PACKAGES += library/security/libgpg-error
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   176
REQUIRED_PACKAGES += library/security/libksba
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   177
REQUIRED_PACKAGES += library/zlib
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   178
REQUIRED_PACKAGES += security/pinentry
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   179
REQUIRED_PACKAGES += shell/ksh93
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   180
REQUIRED_PACKAGES += system/library
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   181
REQUIRED_PACKAGES += system/library/security/libgcrypt
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   182
REQUIRED_PACKAGES += system/library/usb/libusb
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 2225
diff changeset
   183
REQUIRED_PACKAGES += web/curl