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]
23 # Copyright 2021, Klaus Ziegler
26 include ..
/..
/..
/make-rules
/shared-macros.mk
28 COMPONENT_NAME
= mailutils
29 COMPONENT_VERSION
= 3.17
31 COMPONENT_SUMMARY
= GNU-mailutils provides IMAP4D LMTPD MDA POP3D servers and various mail programs
32 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
33 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.xz
34 COMPONENT_ARCHIVE_HASH
= sha256
:fa49bacec37566fe52f88221d3871673a633aeee0cd923cc3a8e65bbef2b84e9
35 COMPONENT_ARCHIVE_URL
= https
://ftp.gnu.org
/gnu
/$(COMPONENT_NAME
)/$(COMPONENT_ARCHIVE
)
36 COMPONENT_PROJECT_URL
= https
://mailutils.org
/
37 COMPONENT_FMRI
= mail
/mailutils
38 COMPONENT_CLASSIFICATION
= Applications
/Internet
39 COMPONENT_LICENSE
= GPLv3
,LGPLv3
41 include $(WS_MAKE_RULES
)/common.mk
43 PKG_MACROS
+= PYVER
=$(PYTHON_VERSION
)
45 CONFIGURE_ENV
+= PYTHON_CONFIG
=/usr
/bin
/python3.9
-config
48 CONFIGURE_ENV
+= CPPFLAGS
="-I/usr/include/openldap \
49 -I$(MYSQL_HOME)/include \
53 CONFIGURE_ENV
+= LIBS
="-lldap-2.6"
54 # needed for 01-pg-mariadb.patch
55 CONFIGURE_ENV
+= MYSQL_LIB
="$(MYSQL_LIBDIR)"
56 CONFIGURE_ENV
+= PG_LIB
="$(PG_LIBDIR)"
58 CONFIGURE_OPTIONS
+= --libexecdir
=/usr
/libexec
59 CONFIGURE_OPTIONS
+= --enable-static
=no
60 CONFIGURE_OPTIONS
+= --with-ldap
61 CONFIGURE_OPTIONS
+= --with-mysql
62 CONFIGURE_OPTIONS
+= --with-postgres
63 CONFIGURE_OPTIONS
+= --with-pythondir
=$(PYTHON_LIB
)
65 COMPONENT_POST_INSTALL_ACTION
= \
66 ( cd
$(PROTOUSRLIBDIR
)/python
$(PYTHON_VERSION
)/vendor-packages
/mailutils
; \
67 ln c_api.so c_api.cpython-39.so
; \
68 cd
$(PROTOUSRSHAREDIR
)/info ; rm dir )
70 COMPONENT_TEST_TRANSFORMS
= \
72 ' -e "/^Auxiliary/p" ' \
74 ' -e "/^Conversions/p" ' \
76 ' -e "/^Command/p" ' \
77 ' -e "/^Standard/p" ' \
81 ' -e "/^Variable/p" ' \
83 ' -e "/^Reconstructed/p" ' \
84 ' -e "/^Mailcap/p" ' \
86 ' -e "/^Property/p" ' \
90 ' -e "/^Filters/p" ' \
94 ' -e "/^Message/p" ' \
95 ' -e "/^mu_scan/p" ' \
97 ' -e "/^Globbing/p" ' \
99 ' -e "/^Locking/p" ' \
105 # build dependencies.
106 REQUIRED_PACKAGES
+= editor
/gnu-emacs
108 # Auto-generated dependencies
109 PYTHON_REQUIRED_PACKAGES
+= runtime
/python
110 REQUIRED_PACKAGES
+= $(MYSQL_LIBRARY_PKG
)
111 REQUIRED_PACKAGES
+= $(PG_LIBRARY_PKG
)
112 REQUIRED_PACKAGES
+= $(READLINE_PKG
)
113 REQUIRED_PACKAGES
+= database
/berkeleydb-5
114 REQUIRED_PACKAGES
+= library
/database
/gdbm
115 REQUIRED_PACKAGES
+= library
/fribidi
116 REQUIRED_PACKAGES
+= library
/gnutls-3
117 REQUIRED_PACKAGES
+= library
/guile
118 REQUIRED_PACKAGES
+= library
/libgsasl
119 REQUIRED_PACKAGES
+= library
/libtool
/libltdl
120 REQUIRED_PACKAGES
+= library
/ncurses
121 REQUIRED_PACKAGES
+= library
/openldap
122 REQUIRED_PACKAGES
+= service
/security
/kerberos-5
123 REQUIRED_PACKAGES
+= shell/ksh93
124 REQUIRED_PACKAGES
+= system
/library
125 REQUIRED_PACKAGES
+= system
/library
/security
/gss