# vim: ft=make ts=4 sw=4 noet

NAME    = sqlite3
VERSION = 3530200 	
GARTYPE = v2

DESCRIPTION = SQLite version 3, the lightweight SQL database library
define BLURB
    SQLite is a C-language library that implements a small, fast, self-contained, high-reliability, full-featured, SQL database engine.
    SQLite is the most used database engine in the world.
endef

MASTER_SITES = https://sqlite.org/2026/
DISTFILES   += $(DISTNAME).tar.gz

LICENSE = COPYING

PACKAGES               += OZSWhello
SPKG_DESC_OZSWhello    = GNU Hello, the friendly greeting program
CATALOGNAME_OZSWhello  = hello
# Catch-all: leave PKGFILES_OZSWhello unset (GAR uses exclude-other-pkgs mechanism).

RUNTIME_DEP_PKGS_OZSWhello += OZSWgettext OZSWlibiconv
BUILD_DEP_PKGS += OZSWgettext OZSWlibiconv

# Enable Solaris extension macros (wprintf, mbstowcs, pthreads, etc.)
EXTENSIONS = 1

# GNU ld requires all DSO dependencies to be explicit; libintl.so uses
# libiconv internally, so we must add it to the link line.
EXTRA_LD_FLAGS += -liconv

# Patch libtool scripts to replace ksh93 "print -r --" with printf
# so they work under bash (our SHELL override).
post-configure:
	@echo "==> Patching libtool scripts for bash compatibility"
	@find $(WORKSRC) -name "libtool" -type f -exec \
	    gsed -i 's/ECHO="print -r --"/ECHO="printf %s\\\\n"/g' {} \;
	@$(MAKECOOKIE)

include gar/category.mk
