mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-21 04:06:46 +00:00
ae7ba1f5de
PR: 223364 Submitted by: Pavel Volkov (maintainer)
48 lines
1.3 KiB
Makefile
48 lines
1.3 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= sqlite3
|
|
PORTVERSION= 3.21.0
|
|
CATEGORIES= databases tcl
|
|
MASTER_SITES= https://www.sqlite.org/2017/ http://www2.sqlite.org/2017/ http://www3.sqlite.org/2017/
|
|
PKGNAMEPREFIX= tcl-
|
|
DISTNAME= sqlite-autoconf-${PORTVERSION:C/\.([[:digit:]])[[:>:]]/0\1/g:S/.//g}00
|
|
|
|
MAINTAINER= pavelivolkov@gmail.com
|
|
COMMENT= SQLite extension for Tcl using the Tcl Extension Architecture (TEA)
|
|
|
|
LICENSE= PD
|
|
|
|
LIB_DEPENDS= libsqlite3.so:databases/sqlite3
|
|
|
|
OPTIONS_DEFINE= THREADS
|
|
OPTIONS_DEFAULT= THREADS
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/tea
|
|
|
|
USES= pkgconfig tcl:tea
|
|
USE_LDCONFIG= yes
|
|
|
|
CFLAGS+= `pkg-config --cflags sqlite3`
|
|
LDFLAGS+= `pkg-config --libs sqlite3`
|
|
CONFIGURE_ARGS= --with-system-sqlite
|
|
|
|
THREADS_CONFIGURE_ENABLE= threads
|
|
|
|
PLIST_FILES+= lib/${PORTNAME}/libsqlite${PORTVERSION}.so lib/${PORTNAME}/pkgIndex.tcl
|
|
PORTEXAMPLES= *
|
|
|
|
SUB_FILES= example.tcl
|
|
SUB_LIST= "TCLSH=${TCLSH}"
|
|
|
|
PLIST_FILES+= man/mann/sqlite3.n.gz
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -E 's/^(.*\$$\(PACKAGE_NAME\))\$$\(PACKAGE_VERSION\).*$$/\1${PORTVERSION:C/[^[:digit:]]*([[:digit:]]+).*/\1/}/' ${WRKSRC}/Makefile.in
|
|
|
|
post-install:
|
|
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${PORTNAME}/libsqlite${PORTVERSION}.so
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${SUB_FILES} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|