freebsd-ports/databases/tcl-sqlite3/Makefile
Frederic Culot becc78d709 - Update to 3.7.17
PR:		ports/178970
Submitted by:	Pavel I Volkov <pavelivolkov@gmail.com> (maintainer)
2013-05-31 14:04:11 +00:00

50 lines
1.3 KiB
Makefile

# Created by: Baptiste Daroussin <bapt@FreeBSD.org>
# $FreeBSD$
PORTNAME= sqlite3
PORTVERSION= 3.7.17
CATEGORIES= databases tcl
MASTER_SITES= http://www.sqlite.org/2013/ http://www2.sqlite.org/2013/ http://www3.sqlite.org/2013/
PKGNAMEPREFIX= tcl-
DISTNAME= sqlite-autoconf-3071700
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= sqlite3:${PORTSDIR}/databases/sqlite3
WRKSRC= ${WRKDIR}/${DISTNAME}/tea
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
USE_TCL= 84+
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}"
MANN= sqlite3.n
.include <bsd.port.pre.mk>
post-patch:
@${REINPLACE_CMD} 's,\(^PKG_DIR.*\)$$(PACKAGE_VERSION),\13,g' ${WRKSRC}/Makefile.in
post-install:
.if !defined(NOPORTEXAMPLES)
@${MKDIR} ${EXAMPLESDIR}
@${INSTALL_SCRIPT} ${WRKDIR}/${SUB_FILES} ${EXAMPLESDIR}
.endif
.include <bsd.port.post.mk>