PortSystem 1.0

name			sqlite2
version			2.8.17
revision			2
categories		databases
license			public-domain
maintainers		nomaintainer
description		an embedded SQL database engine
long_description	SQLite is an SQL database engine in a C library. \
					Programs that link the SQLite library can have SQL \
					database access without running a separate RDBMS \
					process.  The distribution comes with a standalone \
					command-line access program (sqlite) that can be used \
					to administer an SQLite database and which serves as \
					an example of how to use the SQLite library.
homepage		https://www.sqlite.org/
master_sites	${homepage}
distname		sqlite-${version}
checksums		sha1 75db1cf3b00ea18ae8528e676fc9fdf698e2fe58

depends_lib		port:readline

patchfiles		patch-configure patch-Makefile.in implicit.patch

# Update config.guess and config.sub to be able to build on arm64.
depends_build-append    port:automake
post-patch {
    set automake_dirs [glob -directory ${prefix}/share automake-*]
    set automake_dir [lindex [lsort -command vercmp $automake_dirs] end]
    copy -force ${automake_dir}/config.guess ${automake_dir}/config.sub \
        ${worksrcpath}
}

build.type		gnu

universal_variant	no
