aboutsummaryrefslogtreecommitdiffstats
path: root/databases/tcl-sqlite3/Makefile
blob: 8f39502f9afe281bc2701acc388d656fd4bbfd10 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# $FreeBSD$

PORTNAME=   sqlite3
PORTVERSION=    3.8.0.2
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-3080002

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

OPTIONS_DEFINE= EXAMPLES

WRKSRC=     ${WRKDIR}/${DISTNAME}/tea

USES=       pkgconfig
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

NO_STAGE=   yes
.include <bsd.port.options.mk>

post-patch:
    @${REINPLACE_CMD} 's,\(^PKG_DIR.*\)$$(PACKAGE_VERSION),\13,g' ${WRKSRC}/Makefile.in

post-install:
.if ${PORT_OPTIONS:MEXAMPLES}
    @${MKDIR} ${EXAMPLESDIR}
    @${INSTALL_SCRIPT} ${WRKDIR}/${SUB_FILES} ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>