pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/sqlite3 Added an option to build the package...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a43f148b4634
branches:  trunk
changeset: 490349:a43f148b4634
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon Mar 07 14:59:06 2005 +0000

description:
Added an option to build the package with tcl support

diffstat:

 databases/sqlite3/Makefile   |  26 +++++++++++++-------------
 databases/sqlite3/PLIST      |   5 ++++-
 databases/sqlite3/options.mk |  16 ++++++++++++++++
 3 files changed, 33 insertions(+), 14 deletions(-)

diffs (74 lines):

diff -r e1142444b2a7 -r a43f148b4634 databases/sqlite3/Makefile
--- a/databases/sqlite3/Makefile        Mon Mar 07 14:55:15 2005 +0000
+++ b/databases/sqlite3/Makefile        Mon Mar 07 14:59:06 2005 +0000
@@ -1,23 +1,23 @@
-# $NetBSD: Makefile,v 1.2 2005/02/24 16:02:28 wiz Exp $
+# $NetBSD: Makefile,v 1.3 2005/03/07 14:59:06 adam Exp $
 
-DISTNAME=              sqlite-3.1.3
-PKGNAME=               ${DISTNAME:S/-/3-/}
-CATEGORIES=            databases
-MASTER_SITES=          http://www.hwaci.com/sw/sqlite/ \
-                       http://www.sqlite.org/
+DISTNAME=      sqlite-3.1.3
+PKGNAME=       ${DISTNAME:S/-/3-/}
+PKGREVISION=   1
+CATEGORIES=    databases
+MASTER_SITES=  http://www.hwaci.com/sw/sqlite/ \
+               http://www.sqlite.org/
 
-MAINTAINER=            tech-pkg%NetBSD.org@localhost
-HOMEPAGE=              http://www.hwaci.com/sw/sqlite/
-COMMENT=               SQL Database Engine in a C Library
+MAINTAINER=    tech-pkg%NetBSD.org@localhost
+HOMEPAGE=      http://www.hwaci.com/sw/sqlite/
+COMMENT=       SQL Database Engine in a C Library
 
 USE_BUILDLINK3=                yes
 USE_GNU_TOOLS+=                make
 USE_LIBTOOL=           yes
+GNU_CONFIGURE=         yes
+PKGCONFIG_OVERRIDE=    ${WRKDIR}/sqlite/sqlite3.pc.in
 
-GNU_CONFIGURE=         yes
-CONFIGURE_ARGS+=       --disable-tcl
-
-PKGCONFIG_OVERRIDE=    ${WRKDIR}/sqlite/sqlite3.pc.in
+.include "options.mk"
 
 post-install:
        ${INSTALL_MAN} ${WRKSRC}/sqlite3.1 ${PREFIX}/man/man1/sqlite3.1
diff -r e1142444b2a7 -r a43f148b4634 databases/sqlite3/PLIST
--- a/databases/sqlite3/PLIST   Mon Mar 07 14:55:15 2005 +0000
+++ b/databases/sqlite3/PLIST   Mon Mar 07 14:59:06 2005 +0000
@@ -1,6 +1,9 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2005/01/16 02:00:33 tv Exp $
+@comment $NetBSD: PLIST,v 1.2 2005/03/07 14:59:06 adam Exp $
 bin/sqlite3
 include/sqlite3.h
 lib/libsqlite3.la
 lib/pkgconfig/sqlite3.pc
+${TCL_COMMENT}lib/tcl8.4/sqlite3/libtclsqlite3.so
+${TCL_COMMENT}lib/tcl8.4/sqlite3/pkgIndex.tcl
+${TCL_COMMENT}@dirrm lib/tcl8.4/sqlite3
 man/man1/sqlite3.1
diff -r e1142444b2a7 -r a43f148b4634 databases/sqlite3/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/sqlite3/options.mk      Mon Mar 07 14:59:06 2005 +0000
@@ -0,0 +1,16 @@
+# $NetBSD: options.mk,v 1.1 2005/03/07 14:59:06 adam Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.sqlite3
+PKG_DEFAULT_OPTIONS=   # empty
+PKG_SUPPORTED_OPTIONS= tcl
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mtcl)
+CONFIGURE_ARGS+=       --with-tcl=${BUILDLINK_PREFIX.tcl}/lib
+PLIST_SUBST+=          TCL_COMMENT=
+.  include "../../lang/tcl/buildlink3.mk"
+.else
+CONFIGURE_ARGS+=       --disable-tcl
+PLIST_SUBST+=          TCL_COMMENT="@comment "
+.endif



Home | Main Index | Thread Index | Old Index