5477N/A#
5477N/A# CDDL HEADER START
5477N/A#
5477N/A# The contents of this file are subject to the terms of the
5477N/A# Common Development and Distribution License (the "License").
5477N/A# You may not use this file except in compliance with the License.
5477N/A#
5477N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5477N/A# or http://www.opensolaris.org/os/licensing.
5477N/A# See the License for the specific language governing permissions
5477N/A# and limitations under the License.
5477N/A#
5477N/A# When distributing Covered Code, include this CDDL HEADER in each
5477N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5477N/A# If applicable, add the following below this CDDL HEADER, with the
5477N/A# fields enclosed by brackets "[]" replaced with your own identifying
5477N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5477N/A#
5477N/A# CDDL HEADER END
5477N/A#
5925N/A
5925N/A#
5477N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
5477N/A#
5925N/A
5925N/A# This variable has no impact on perl build, it is here merely to satisfy
5925N/A# "modernized" gate infrastructure. The bitness of the module is driven by the
5925N/A# bitness of perl interpreter itself. That is hardcoded in
5925N/A# $(WS_MAKE_RULES)/makemaker.mk
5925N/ABUILD_BITS = 64
5925N/A
5477N/Ainclude ../../../make-rules/shared-macros.mk
5477N/A
5477N/ACOMPONENT_NAME= DBD-SQLite
5925N/ACOMPONENT_VERSION= 1.50
5477N/ACOMPONENT_ARCHIVE_HASH= \
5925N/A sha256:3ac513ab73944fd7d4b672e1fe885dc522b6369d38f46a68e67e0045bf159ce1
5477N/ACOMPONENT_ARCHIVE_URL= http://backpan.perl.org/authors/id/I/IS/ISHIGAKI/$(COMPONENT_ARCHIVE)
5477N/ACOMPONENT_PROJECT_URL= https://github.com/DBD-SQLite/DBD-SQLite
5477N/ACOMPONENT_BUGDB= perl-mod/dbd-sqlite
5477N/A
5925N/ATPNO= 26789
5477N/A
5925N/ABUILD_STYLE= makemaker
5925N/ALICENSE=DBD-SQLite.license
5925N/ABUILD_TARGET= $(BUILD_$(MK_BITS)) $(LICENSE)
5925N/Ainclude $(WS_MAKE_RULES)/common.mk
5477N/A
5477N/ACOMPONENT_TEST_TARGETS = test
5477N/ACOMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
5477N/ACOMPONENT_TEST_TRANSFORMS += \
5795N/A '-e "/^Running Mkbootstrap/d" ' \
5477N/A '-e "s/[0-9][0-9]* wallclock secs (.*CPU)$$/<TIMINGS REMOVED>/" ' \
5795N/A '-e "/^PERL_DL_NONLAZY/d" ' \
5477N/A '-e "s/^\(\# sqlite_version=\)[0-9][0-9.]*/\1<USED SQLITE VERSION REMOVED>/" ' \
5795N/A '-e "s/^\(\# \$$DBI::VERSION=\)[0-9][0-9.]*/\1<REPORTED DBI VERSION REMOVED>/" ' \
5795N/A '-e "/^chmod/d" '
5477N/A
5925N/A# DBD::Sqlite ships custom sqlite3 sources. We remove the sources to make sure
5925N/A# that we do not build/link against it. However just removing the files would
5925N/A# break the build process. The next best thing is to make the files empty. The
5925N/A# macro $(RM) is intentionaly not used here, as it contains '-f' parameter.
5925N/A# Using plain 'rm' makes the action fail if the files are not found.
5925N/ACOMPONENT_PRE_CONFIGURE_ACTION= ( \
5925N/A cd $(SOURCE_DIR) && \
5925N/A rm sqlite3.h sqlite3.c && \
5925N/A $(TOUCH) sqlite3.h sqlite3.c; \
5925N/A)
5925N/A
5477N/A# This makes the configuration process a bit more chatty
5477N/ACOMPONENT_CONFIGURE_ENV += AUTOMATED_TESTING=1
5795N/A
5795N/ACLEAN_PATHS += $(LICENSE)
5477N/A
5477N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
5477N/A
5477N/A$(LICENSE): $(LICENSE).template
5477N/A $(PERL) -pe 's/COMPONENT_VERSION/$(COMPONENT_VERSION)/g' "$<" > "$@"
5477N/A
5477N/AREQUIRED_PACKAGES += database/sqlite-3
5795N/AREQUIRED_PACKAGES += library/perl-5/database