diff options
author | mnag <mnag@FreeBSD.org> | 2009-03-23 13:31:39 +0800 |
---|---|---|
committer | mnag <mnag@FreeBSD.org> | 2009-03-23 13:31:39 +0800 |
commit | 4c33aba304554cdd9b73770d4eee7e666d1ba753 (patch) | |
tree | dd45cc4852823c2ecf5b89f25425d0e33ea9ba96 /databases/sqlite34 | |
parent | 28f92e96ed27edd8f752667fc2ef89fc35df051b (diff) | |
download | freebsd-ports-gnome-4c33aba304554cdd9b73770d4eee7e666d1ba753.tar.gz freebsd-ports-gnome-4c33aba304554cdd9b73770d4eee7e666d1ba753.tar.zst freebsd-ports-gnome-4c33aba304554cdd9b73770d4eee7e666d1ba753.zip |
- Change hard coded TCL dependancy to USE_TCL
PR: 132381
Submitted by: Scot W. Hetzel <swhetzel___gmail.com>
Diffstat (limited to 'databases/sqlite34')
-rw-r--r-- | databases/sqlite34/Makefile | 42 |
1 files changed, 28 insertions, 14 deletions
diff --git a/databases/sqlite34/Makefile b/databases/sqlite34/Makefile index abe1a8f1eecb..9b3d98a19dd9 100644 --- a/databases/sqlite34/Makefile +++ b/databases/sqlite34/Makefile @@ -13,7 +13,7 @@ MASTER_SITE_SUBDIR= mnag/${PORTNAME} DISTNAME= sqlite-${PORTVERSION} MAINTAINER= mnag@FreeBSD.org -COMMENT= An SQL database engine in a C library w/ Tcl wrapper +COMMENT= An SQL database engine in a C library CONFLICTS= sqlite3-[0-9]* @@ -29,22 +29,34 @@ OPTIONS= DEBUG "Enable debugging & verbose explain" off \ DOCS "Building docs (depends on TCL)" on \ FTS1 "Enable FTS1 (Full Text Search) module" off \ FTS2 "Enable FTS2 (Full Text Search) module" off \ - TCLWRAPPER "TCL wrapper for SQLITE" off \ + TCLWRAPPER "Enable TCL wrapper" off \ THREADS "Enable threads support" off -# Defaults, for building the docs: -TCL_V?= 8.4 -MAKE_ARGS+= TCLSH=tclsh${TCL_V} -MAKE_ENV+= TCL_VER=${TCL_V} - .include <bsd.port.pre.mk> .if defined(WITH_DEBUG) CONFIGURE_ARGS+= --enable-debug .endif -.if !defined(NOPORTDOCS) && !defined(WITHOUT_DOCS) -BUILD_DEPENDS+= tclsh${TCL_V}:${PORTSDIR}/lang/tcl${TCL_V:S/.//} +.if defined(WITHOUT_DOCS) +NOPORTDOCS= yes +.elif defined(NOPORTDOCS) +WITHOUT_DOCS= yes +.endif + +.if defined(WITH_TCLWRAPPER) +USE_TCL= 84+ +.include "${PORTSDIR}/Mk/bsd.tcl.mk" +.else +. if !defined(WITHOUT_DOCS) +USE_TCL_BUILD= 84+ +. include "${PORTSDIR}/Mk/bsd.tcl.mk" +. endif +.endif + +.if !defined(WITHOUT_DOCS) +MAKE_ARGS+= TCLSH=${TCLSH} +MAKE_ENV+= TCL_VER=${TCL_VER} ALL_TARGET+= all doc PORTDOCS= * .endif @@ -62,8 +74,10 @@ EXTRA_PATCHES+= ${FILESDIR}/fts2_patch-Makefile.in .if defined(WITH_TCLWRAPPER) CATEGORIES+= lang tcl -LIB_DEPENDS+= tcl${TCL_V:S/.//}:${PORTSDIR}/lang/tcl${TCL_V:S/.//} -CONFIGURE_ARGS+= --with-tcl=${LOCALBASE}/lib/tcl${TCL_V} +COMMENT+= with TCL wrapper +MAKE_ARGS+= TCLSH=${TCLSH} +MAKE_ENV+= TCL_VER=${TCL_VER} +CONFIGURE_ARGS+= --with-tcl=${TCL_LIBDIR} PLIST_SUB+= WITH_TCLWRAPPER="" .else CONFIGURE_ARGS+= --disable-tcl @@ -82,9 +96,9 @@ post-patch: -e "s|--mode=link|--mode=link --tag=CC|g" \ -e "s|\$${HAVE_TCL:1=tcl_install}||" \ ${WRKSRC}/Makefile.in - @${ECHO} "config_TARGET_TCL_INC=\"-I${PREFIX}/include/tcl${TCL_V}\"" \ + @${ECHO} "config_TARGET_TCL_INC=\"-I${TCL_INCLUDEDIR}\"" \ > ${WRKSRC}/freebsd.hints - @${ECHO} "config_TARGET_TCL_LIBS=\"-L${PREFIX}/lib -ltcl${TCL_V:S/.//}\"" \ + @${ECHO} "config_TARGET_TCL_LIBS=\"-L${PREFIX}/lib -ltcl${TCL_VER:S/.//}\"" \ >> ${WRKSRC}/freebsd.hints pre-configure: @@ -106,7 +120,7 @@ post-install: @${MKDIR} ${EXAMPLESDIR} @${INSTALL_DATA} ${FILESDIR}/example.tcl ${EXAMPLESDIR} .endif -.if !defined(NOPORTDOCS) && !defined(WITHOUT_DOCS) +.if !defined(WITHOUT_DOCS) @${MKDIR} ${DOCSDIR} @${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR} .endif |