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/sqlite2/Makefile | |
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/sqlite2/Makefile')
-rw-r--r-- | databases/sqlite2/Makefile | 70 |
1 files changed, 34 insertions, 36 deletions
diff --git a/databases/sqlite2/Makefile b/databases/sqlite2/Makefile index d3e6bb436839..c8741686404d 100644 --- a/databases/sqlite2/Makefile +++ b/databases/sqlite2/Makefile @@ -13,7 +13,7 @@ CATEGORIES= databases MASTER_SITES= http://www.sqlite.org/ 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 USE_GMAKE= YES USE_GNOME= pkgconfig @@ -29,62 +29,60 @@ LATEST_LINK= ${PKGNAMEPREFIX}${PORTNAME}2 EXTRACT_AFTER_ARGS= | ${TAR} -xf - --exclude CVS -OPTIONS= TCL84 "Enable TCL wrapper (tcl 8.4)" off \ - TCL83 "Enable TCL wrapper (tcl 8.3)" off \ - THREADS "Compile with threads support" off \ - DOCS "Building docs (depends on TCL)" on - -# Defaults, for building the docs: -TCL_VERSION= 8.4 +OPTIONS= TCLWRAPPER "Enable TCL wrapper" off \ + THREADS "Compile with threads support" off \ + DOCS "Building docs (depends on TCL)" on .include <bsd.port.pre.mk> # Deprecated options -.if defined(SQLITE_WITH_TCL83) -WITH_TCL83= yes +.if defined(SQLITE_WITH_TCL83) || defined(WITH_TCL83) +WITH_TCL_VER= 83 +WITH_TCLWRAPPER= yes .endif -.if defined(SQLITE_WITH_TCL84) -WITH_TCL84= yes +.if defined(SQLITE_WITH_TCL84) || defined(WITH_TCL84) +WITH_TCL_VER= 84 +WITH_TCLWRAPPER= yes .endif -.if defined(WITH_TCL83) -.if defined(WITH_TCL84) -BROKEN= please, select only one TCL wrapper -.endif -CATEGORIES+= tcl -TCL_VERSION= 8.3 -WITH_TCL= YES +.if defined(WITHOUT_DOCS) +NOPORTDOCS= yes +.elif defined(NOPORTDOCS) +WITHOUT_DOCS= yes .endif -.if defined(WITH_TCL84) -.if defined(WITH_TCL83) -BROKEN= please, select only one TCL wrapper -.endif -CATEGORIES+= tcl -TCL_VERSION= 8.4 -WITH_TCL= YES +.if defined(WITH_TCLWRAPPER) +USE_TCL= 83+ +.include "${PORTSDIR}/Mk/bsd.tcl.mk" +.else +. if !defined(WITHOUT_DOCS) +USE_TCL_BUILD= 83+ +. include "${PORTSDIR}/Mk/bsd.tcl.mk" +. endif .endif -.if defined(WITH_TCL) -LIB_DEPENDS+= tcl${TCL_VERSION:S/.//}:${PORTSDIR}/lang/tcl${TCL_VERSION:S/.//} -PLIST_SUB+= WITH_TCL="" +.if defined(WITH_TCLWRAPPER) +CATEGORIES+= lang tcl +COMMENT+= with TCL wrapper +MAKE_ARGS+= TCLSH=${TCLSH} +MAKE_ENV+= TCL_VER=${TCL_VER} +PLIST_SUB+= WITH_TCLWRAPPER="" .else -PLIST_SUB+= WITH_TCL="@comment " +PLIST_SUB+= WITH_TCLWRAPPER="@comment " .endif .if !defined(NOPORTDOCS) && !defined(WITHOUT_DOCS) PORTDOCS= * -BUILD_DEPENDS+= tclsh${TCL_VERSION}:${PORTSDIR}/lang/tcl${TCL_VERSION:S/.//} -MAKE_ARGS+= TCLSH=tclsh${TCL_VERSION} -MAKE_ENV+= TCL_VER=${TCL_VERSION} +MAKE_ARGS+= TCLSH=${TCLSH} +MAKE_ENV+= TCL_VER=${TCL_VER} .endif post-patch: @${REINPLACE_CMD} -e "s/tclsh \$$(TOP)/\$$(TCLSH) \$$(TOP)/g" \ -e "s|\./libtool|${LIBTOOL}|g" ${WRKSRC}/Makefile.in - @${ECHO} "config_TARGET_TCL_INC=\"-I${PREFIX}/include/tcl${TCL_VERSION}\"" \ + @${ECHO} "config_TARGET_TCL_INC=\"-I${TCL_INCLUDEDIR}\"" \ > ${WRKSRC}/freebsd.hints - @${ECHO} "config_TARGET_TCL_LIBS=\"-L${PREFIX}/lib -ltcl${TCL_VERSION:S/.//}\"" \ + @${ECHO} "config_TARGET_TCL_LIBS=\"-L${PREFIX}/lib -ltcl${TCL_VER:S/.//}\"" \ >> ${WRKSRC}/freebsd.hints .if defined(WITH_THREADS) @${ECHO} "config_TARGET_CFLAGS=\"-DTHREADSAFE=1 ${PTHREAD_LIBS}\"" \ @@ -98,7 +96,7 @@ post-build: .endif post-install: -.if defined(WITH_TCL) +.if defined(WITH_TCLWRAPPER) @(cd ${WRKSRC} && ${GMAKE} install-tcl) ${INSTALL_DATA} ${FILESDIR}/pkgIndex.tcl ${PREFIX}/lib/sqlite/ .endif |