mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
- Change hard coded TCL dependancy to USE_TCL
PR: 132381 Submitted by: Scot W. Hetzel <swhetzel___gmail.com>
This commit is contained in:
parent
2e5523abb0
commit
b93c8d444f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=230722
3 changed files with 67 additions and 55 deletions
|
@ -13,7 +13,7 @@ CATEGORIES= databases
|
||||||
MASTER_SITES= http://www.sqlite.org/
|
MASTER_SITES= http://www.sqlite.org/
|
||||||
|
|
||||||
MAINTAINER= mnag@FreeBSD.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_GMAKE= YES
|
||||||
USE_GNOME= pkgconfig
|
USE_GNOME= pkgconfig
|
||||||
|
@ -29,62 +29,60 @@ LATEST_LINK= ${PKGNAMEPREFIX}${PORTNAME}2
|
||||||
|
|
||||||
EXTRACT_AFTER_ARGS= | ${TAR} -xf - --exclude CVS
|
EXTRACT_AFTER_ARGS= | ${TAR} -xf - --exclude CVS
|
||||||
|
|
||||||
OPTIONS= TCL84 "Enable TCL wrapper (tcl 8.4)" off \
|
OPTIONS= TCLWRAPPER "Enable TCL wrapper" off \
|
||||||
TCL83 "Enable TCL wrapper (tcl 8.3)" off \
|
THREADS "Compile with threads support" off \
|
||||||
THREADS "Compile with threads support" off \
|
DOCS "Building docs (depends on TCL)" on
|
||||||
DOCS "Building docs (depends on TCL)" on
|
|
||||||
|
|
||||||
# Defaults, for building the docs:
|
|
||||||
TCL_VERSION= 8.4
|
|
||||||
|
|
||||||
.include <bsd.port.pre.mk>
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
# Deprecated options
|
# Deprecated options
|
||||||
.if defined(SQLITE_WITH_TCL83)
|
.if defined(SQLITE_WITH_TCL83) || defined(WITH_TCL83)
|
||||||
WITH_TCL83= yes
|
WITH_TCL_VER= 83
|
||||||
|
WITH_TCLWRAPPER= yes
|
||||||
.endif
|
.endif
|
||||||
.if defined(SQLITE_WITH_TCL84)
|
.if defined(SQLITE_WITH_TCL84) || defined(WITH_TCL84)
|
||||||
WITH_TCL84= yes
|
WITH_TCL_VER= 84
|
||||||
|
WITH_TCLWRAPPER= yes
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if defined(WITH_TCL83)
|
.if defined(WITHOUT_DOCS)
|
||||||
.if defined(WITH_TCL84)
|
NOPORTDOCS= yes
|
||||||
BROKEN= please, select only one TCL wrapper
|
.elif defined(NOPORTDOCS)
|
||||||
.endif
|
WITHOUT_DOCS= yes
|
||||||
CATEGORIES+= tcl
|
|
||||||
TCL_VERSION= 8.3
|
|
||||||
WITH_TCL= YES
|
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if defined(WITH_TCL84)
|
.if defined(WITH_TCLWRAPPER)
|
||||||
.if defined(WITH_TCL83)
|
USE_TCL= 83+
|
||||||
BROKEN= please, select only one TCL wrapper
|
.include "${PORTSDIR}/Mk/bsd.tcl.mk"
|
||||||
.endif
|
|
||||||
CATEGORIES+= tcl
|
|
||||||
TCL_VERSION= 8.4
|
|
||||||
WITH_TCL= YES
|
|
||||||
.endif
|
|
||||||
|
|
||||||
.if defined(WITH_TCL)
|
|
||||||
LIB_DEPENDS+= tcl${TCL_VERSION:S/.//}:${PORTSDIR}/lang/tcl${TCL_VERSION:S/.//}
|
|
||||||
PLIST_SUB+= WITH_TCL=""
|
|
||||||
.else
|
.else
|
||||||
PLIST_SUB+= WITH_TCL="@comment "
|
. if !defined(WITHOUT_DOCS)
|
||||||
|
USE_TCL_BUILD= 83+
|
||||||
|
. include "${PORTSDIR}/Mk/bsd.tcl.mk"
|
||||||
|
. endif
|
||||||
|
.endif
|
||||||
|
|
||||||
|
.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_TCLWRAPPER="@comment "
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if !defined(NOPORTDOCS) && !defined(WITHOUT_DOCS)
|
.if !defined(NOPORTDOCS) && !defined(WITHOUT_DOCS)
|
||||||
PORTDOCS= *
|
PORTDOCS= *
|
||||||
BUILD_DEPENDS+= tclsh${TCL_VERSION}:${PORTSDIR}/lang/tcl${TCL_VERSION:S/.//}
|
MAKE_ARGS+= TCLSH=${TCLSH}
|
||||||
MAKE_ARGS+= TCLSH=tclsh${TCL_VERSION}
|
MAKE_ENV+= TCL_VER=${TCL_VER}
|
||||||
MAKE_ENV+= TCL_VER=${TCL_VERSION}
|
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
@${REINPLACE_CMD} -e "s/tclsh \$$(TOP)/\$$(TCLSH) \$$(TOP)/g" \
|
@${REINPLACE_CMD} -e "s/tclsh \$$(TOP)/\$$(TCLSH) \$$(TOP)/g" \
|
||||||
-e "s|\./libtool|${LIBTOOL}|g" ${WRKSRC}/Makefile.in
|
-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
|
> ${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
|
>> ${WRKSRC}/freebsd.hints
|
||||||
.if defined(WITH_THREADS)
|
.if defined(WITH_THREADS)
|
||||||
@${ECHO} "config_TARGET_CFLAGS=\"-DTHREADSAFE=1 ${PTHREAD_LIBS}\"" \
|
@${ECHO} "config_TARGET_CFLAGS=\"-DTHREADSAFE=1 ${PTHREAD_LIBS}\"" \
|
||||||
|
@ -98,7 +96,7 @@ post-build:
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
.if defined(WITH_TCL)
|
.if defined(WITH_TCLWRAPPER)
|
||||||
@(cd ${WRKSRC} && ${GMAKE} install-tcl)
|
@(cd ${WRKSRC} && ${GMAKE} install-tcl)
|
||||||
${INSTALL_DATA} ${FILESDIR}/pkgIndex.tcl ${PREFIX}/lib/sqlite/
|
${INSTALL_DATA} ${FILESDIR}/pkgIndex.tcl ${PREFIX}/lib/sqlite/
|
||||||
.endif
|
.endif
|
||||||
|
|
|
@ -4,8 +4,8 @@ lib/libsqlite.a
|
||||||
lib/libsqlite.so
|
lib/libsqlite.so
|
||||||
lib/libsqlite.so.2
|
lib/libsqlite.so.2
|
||||||
libdata/pkgconfig/sqlite.pc
|
libdata/pkgconfig/sqlite.pc
|
||||||
%%WITH_TCL%%lib/sqlite/libtclsqlite.so
|
%%WITH_TCLWRAPPER%%lib/sqlite/libtclsqlite.so
|
||||||
%%WITH_TCL%%lib/sqlite/pkgIndex.tcl
|
%%WITH_TCLWRAPPER%%lib/sqlite/pkgIndex.tcl
|
||||||
%%WITH_TCL%%@dirrm lib/sqlite
|
%%WITH_TCLWRAPPER%%@dirrm lib/sqlite
|
||||||
%%EXAMPLESDIR%%/example.tcl
|
%%EXAMPLESDIR%%/example.tcl
|
||||||
@dirrm %%EXAMPLESDIR%%
|
@dirrm %%EXAMPLESDIR%%
|
||||||
|
|
|
@ -13,7 +13,7 @@ MASTER_SITE_SUBDIR= mnag/${PORTNAME}
|
||||||
DISTNAME= sqlite-${PORTVERSION}
|
DISTNAME= sqlite-${PORTVERSION}
|
||||||
|
|
||||||
MAINTAINER= mnag@FreeBSD.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
|
||||||
|
|
||||||
CONFLICTS= sqlite3-[0-9]*
|
CONFLICTS= sqlite3-[0-9]*
|
||||||
|
|
||||||
|
@ -29,22 +29,34 @@ OPTIONS= DEBUG "Enable debugging & verbose explain" off \
|
||||||
DOCS "Building docs (depends on TCL)" on \
|
DOCS "Building docs (depends on TCL)" on \
|
||||||
FTS1 "Enable FTS1 (Full Text Search) module" off \
|
FTS1 "Enable FTS1 (Full Text Search) module" off \
|
||||||
FTS2 "Enable FTS2 (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
|
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>
|
.include <bsd.port.pre.mk>
|
||||||
|
|
||||||
.if defined(WITH_DEBUG)
|
.if defined(WITH_DEBUG)
|
||||||
CONFIGURE_ARGS+= --enable-debug
|
CONFIGURE_ARGS+= --enable-debug
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if !defined(NOPORTDOCS) && !defined(WITHOUT_DOCS)
|
.if defined(WITHOUT_DOCS)
|
||||||
BUILD_DEPENDS+= tclsh${TCL_V}:${PORTSDIR}/lang/tcl${TCL_V:S/.//}
|
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
|
ALL_TARGET+= all doc
|
||||||
PORTDOCS= *
|
PORTDOCS= *
|
||||||
.endif
|
.endif
|
||||||
|
@ -62,8 +74,10 @@ EXTRA_PATCHES+= ${FILESDIR}/fts2_patch-Makefile.in
|
||||||
|
|
||||||
.if defined(WITH_TCLWRAPPER)
|
.if defined(WITH_TCLWRAPPER)
|
||||||
CATEGORIES+= lang tcl
|
CATEGORIES+= lang tcl
|
||||||
LIB_DEPENDS+= tcl${TCL_V:S/.//}:${PORTSDIR}/lang/tcl${TCL_V:S/.//}
|
COMMENT+= with TCL wrapper
|
||||||
CONFIGURE_ARGS+= --with-tcl=${LOCALBASE}/lib/tcl${TCL_V}
|
MAKE_ARGS+= TCLSH=${TCLSH}
|
||||||
|
MAKE_ENV+= TCL_VER=${TCL_VER}
|
||||||
|
CONFIGURE_ARGS+= --with-tcl=${TCL_LIBDIR}
|
||||||
PLIST_SUB+= WITH_TCLWRAPPER=""
|
PLIST_SUB+= WITH_TCLWRAPPER=""
|
||||||
.else
|
.else
|
||||||
CONFIGURE_ARGS+= --disable-tcl
|
CONFIGURE_ARGS+= --disable-tcl
|
||||||
|
@ -82,9 +96,9 @@ post-patch:
|
||||||
-e "s|--mode=link|--mode=link --tag=CC|g" \
|
-e "s|--mode=link|--mode=link --tag=CC|g" \
|
||||||
-e "s|\$${HAVE_TCL:1=tcl_install}||" \
|
-e "s|\$${HAVE_TCL:1=tcl_install}||" \
|
||||||
${WRKSRC}/Makefile.in
|
${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
|
> ${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
|
>> ${WRKSRC}/freebsd.hints
|
||||||
|
|
||||||
pre-configure:
|
pre-configure:
|
||||||
|
@ -106,7 +120,7 @@ post-install:
|
||||||
@${MKDIR} ${EXAMPLESDIR}
|
@${MKDIR} ${EXAMPLESDIR}
|
||||||
@${INSTALL_DATA} ${FILESDIR}/example.tcl ${EXAMPLESDIR}
|
@${INSTALL_DATA} ${FILESDIR}/example.tcl ${EXAMPLESDIR}
|
||||||
.endif
|
.endif
|
||||||
.if !defined(NOPORTDOCS) && !defined(WITHOUT_DOCS)
|
.if !defined(WITHOUT_DOCS)
|
||||||
@${MKDIR} ${DOCSDIR}
|
@${MKDIR} ${DOCSDIR}
|
||||||
@${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
|
@${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
|
||||||
.endif
|
.endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue