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]
21 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
22 # Copyright (c) 2020, Andreas Wacknitz
23 # Copyright (c) 2023, Niklas Poslovski
26 include ..
/..
/..
/make-rules
/shared-macros.mk
28 COMPONENT_NAME
= apr-util
29 COMPONENT_VERSION
= 1.6.3
31 COMPONENT_PROJECT_URL
= https
://apr.apache.org
/
32 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
33 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
34 COMPONENT_ARCHIVE_HASH
= \
35 sha256
:2b74d8932703826862ca305b094eef2983c27b39d5c9414442e9976a9acf1983
36 COMPONENT_ARCHIVE_URL
= https
://archive.apache.org
/dist/apr
/$(COMPONENT_ARCHIVE
)
38 CONFIGURE_DEFAULT_DIRS
=no
40 include $(WS_MAKE_RULES
)/common.mk
42 # Without this the build is unable to find right C preprocessor
43 PATH
= $(GCC_BINDIR
):$(PATH.illumos
)
47 CONFIGURE_PREFIX
=/usr
/apr-util
49 CONFIGURE_OPTIONS
+= --with-mysql
=$(MYSQL_HOME
)
50 CONFIGURE_OPTIONS
+= MYSQL_CONFIG
=$(MYSQL_CONFIG
)
51 CONFIGURE_OPTIONS
+= --with-pgsql
=$(PG_HOME
)
52 CONFIGURE_OPTIONS
+= --with-expat
=/usr
53 CONFIGURE_OPTIONS
+= --with-sqlite3
=/usr
54 CONFIGURE_OPTIONS
+= --with-ldap
=ldap_r-2.4
55 CONFIGURE_OPTIONS
+= --with-ldap-include
=/usr
/include/openldap
56 CONFIGURE_OPTIONS
+= --without-odbc
57 CONFIGURE_OPTIONS
+= --enable-layout
=OpenSolaris-
$(MACH64
)
58 CONFIGURE_OPTIONS
+= --with-apr
=/usr
/apr
/bin
/apr-1-config
59 CONFIGURE_OPTIONS
+= --bindir=$(CONFIGURE_PREFIX
)/bin
60 CONFIGURE_OPTIONS
+= --includedir=$(USRINCDIR
)/$(COMPONENT_NAME
)
61 CONFIGURE_OPTIONS
+= PGSQL_CONFIG
=$(PG_CONFIG
.64)
63 COMPONENT_TEST_TARGETS
= test
65 COMPONENT_TEST_TRANSFORMS
+= \
66 '-e "/^teststatus=0;/,/make\[2\]: Leaving directory/p" ' \
69 COMPONENT_PREP_ACTION
+= (cd
$(@D
) && autoreconf
-fi
)
71 # We need this to keep doxygen happy (for include/ and docs/ contents).
72 COMPONENT_PRE_CONFIGURE_ACTION
+= ($(CLONEY
) $(SOURCE_DIR
) $(@D
));
74 ASLR_MODE
= $(ASLR_NOT_APPLICABLE
)
76 # We need to list (the default) 'all' build target explicitly because we need
77 # to add one more (non-default) target
78 COMPONENT_BUILD_TARGETS
+= all
79 # The 'dox' target is used to build documentation
80 COMPONENT_BUILD_TARGETS
+= dox
82 # Install documentation
83 COMPONENT_POST_INSTALL_ACTION
+= $(CP
) -a
$(@D
)/docs
/dox
/manual
$(PROTO_DIR
)/usr
/apr-util
/manual
;
86 REQUIRED_PACKAGES
+= $(PG_DEVELOPER_PKG
)
87 REQUIRED_PACKAGES
+= developer
/documentation-tool
/doxygen
88 # The MariaDB client must be installed to get mysql_config:
89 REQUIRED_PACKAGES
+= $(MYSQL_CLIENT_PKG
)
90 REQUIRED_PACKAGES
+= $(MYSQL_LIBRARY_PKG
)
92 # Auto-generated dependencies
93 REQUIRED_PACKAGES
+= $(PG_LIBRARY_PKG
)
94 REQUIRED_PACKAGES
+= database
/sqlite-3
95 REQUIRED_PACKAGES
+= library
/apr
96 REQUIRED_PACKAGES
+= library
/expat
97 REQUIRED_PACKAGES
+= library
/openldap
98 REQUIRED_PACKAGES
+= shell/ksh93
99 REQUIRED_PACKAGES
+= system
/library