diff options
author | Marcus Alves Grando <mnag@FreeBSD.org> | 2009-03-23 05:31:39 +0000 |
---|---|---|
committer | Marcus Alves Grando <mnag@FreeBSD.org> | 2009-03-23 05:31:39 +0000 |
commit | b93c8d444f1c9e41aaaaf4ccd447bf8ccb97c860 (patch) | |
tree | bd3ba676e998f92aa72326912fcecea15f91d2fa /databases/sqlite34 | |
parent | 2e5523abb060cb22a77676dd9dc9a38bf16dbb7a (diff) | |
download | ports-b93c8d444f1c9e41aaaaf4ccd447bf8ccb97c860.tar.gz ports-b93c8d444f1c9e41aaaaf4ccd447bf8ccb97c860.zip |
Notes
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 |