freebsd-ports/databases/tcl-sqlite3/Makefile
Ruslan Makhmatkhanov 7ad9778313 - update to 3.8.3
- correct EXAMPLE option
- "extended regex" had used on post-patch phase

PR:		186558
Submitted by:	Pavel I Volkov <pavelivolkov@gmail.com> (maintainer)
2014-02-10 22:01:26 +00:00

51 lines
1.4 KiB
Makefile

# $FreeBSD$
PORTNAME= sqlite3
PORTVERSION= 3.8.3
CATEGORIES= databases tcl
MASTER_SITES= http://www.sqlite.org/2014/ http://www2.sqlite.org/2014/ http://www3.sqlite.org/2014/
PKGNAMEPREFIX= tcl-
DISTNAME= sqlite-autoconf-3080300
MAINTAINER= pavelivolkov@gmail.com
COMMENT= SQLite extension for Tcl using the Tcl Extension Architecture (TEA)
LICENSE= public
LICENSE_NAME= Public Domain
LICENSE_TEXT= Description of the license can be obtained from the following URL: http://www.sqlite.org/copyright.html
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
LIB_DEPENDS= libsqlite3.so:${PORTSDIR}/databases/sqlite3
OPTIONS_DEFINE= EXAMPLES
WRKSRC= ${WRKDIR}/${DISTNAME}/tea
USES= pkgconfig tcl
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CFLAGS+= `pkg-config --cflags --libs sqlite3`
CONFIGURE_ARGS+= --with-tcl=${TCL_LIBDIR} --with-system-sqlite
PLIST_DIRS+= lib/sqlite3
PLIST_FILES+= lib/sqlite3/libsqlite.so.1 lib/sqlite3/pkgIndex.tcl
PORTEXAMPLES= *
SUB_FILES= example.tcl
SUB_LIST= "TCLSH=${TCLSH}"
PLIST_FILES+= man/mann/sqlite3.n.gz
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -E 's/^(.*\$$\(PACKAGE_NAME\))\$$\(PACKAGE_VERSION\).*$$/\1${PORTVERSION:C/.*([0-9]+).*/\1/}/' ${WRKSRC}/Makefile.in
post-install:
.if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_SCRIPT} ${WRKDIR}/${SUB_FILES} ${STAGEDIR}${EXAMPLESDIR}
.endif
.include <bsd.port.mk>