diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2005-05-22 00:06:40 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2005-05-22 00:06:40 +0000 |
commit | 0fe21ea6d5fca7cda9fe143ee6d7a007fbd1879c (patch) | |
tree | d7e18ddb966b65487032aa403f3d3adcc251615d /databases/sqlite3/Makefile | |
parent | d9efcd3a6ff48f5abea978f8ea76e221126c7b19 (diff) |
- Update to 3.2.1
- Use OPTIONS
PR: ports/79024
Submitted by: Marcus Grando <marcus@corp.grupos.com.br>
Approved by: maintainer timeout (2 months)
Notes
Notes:
svn path=/head/; revision=135820
Diffstat (limited to 'databases/sqlite3/Makefile')
-rw-r--r-- | databases/sqlite3/Makefile | 75 |
1 files changed, 35 insertions, 40 deletions
diff --git a/databases/sqlite3/Makefile b/databases/sqlite3/Makefile index 5e887bc8ddba..6b177102b3bf 100644 --- a/databases/sqlite3/Makefile +++ b/databases/sqlite3/Makefile @@ -11,90 +11,85 @@ # If you want to build the TCL wrapper, you have to define SQLITE_WITH_TCL84. PORTNAME= sqlite -PORTVERSION= 3.0.8 -PORTREVISION= 2 +PORTVERSION= 3.2.1 CATEGORIES= databases MASTER_SITES= http://www.sqlite.org/ -DISTNAME= ${PORTNAME}-${PORTVERSION} MAINTAINER= green@FreeBSD.org COMMENT= An SQL database engine in a C library w/ Tcl wrapper (beta) +USE_GMAKE= YES +USE_GNOME= pkgconfig +USE_LIBTOOL_VER= 15 +HAS_CONFIGURE= YES +USE_REINPLACE= YES +INSTALLS_SHLIB= YES + DOCSDIR= ${PREFIX}/share/doc/sqlite3 EXAMPLESDIR= ${PREFIX}/share/examples/sqlite3 LATEST_LINK= ${PKGNAMEPREFIX}${PORTNAME}3 # Defaults, for building the docs: -TCL_V= 8.4 -TCL_SHORT_V= 84 +TCL_V?= 8.4 + +OPTIONS= TCL84 "TCL wrapper for SQLITE" off -.if defined(SQLITE_WITH_TCL84) -CATEGORIES+= tcl84 -TCL_V= 8.4 -TCL_SHORT_V= 84 +.include <bsd.port.pre.mk> + +.if defined(WITH_TCL84) +CATEGORIES+= lang WITH_TCL= YES .endif .if defined(WITH_TCL) ALL_TARGET+= libtclsqlite.la -PLIST_SUB+= WITH_TCL="" +PLIST_SUB+= WITH_TCL="" +CONFIGURE_ARGS= --with-tcl=${LOCALBASE}/lib/tcl${TCL_V} .else -PLIST_SUB+= WITH_TCL="@comment " +PLIST_SUB+= WITH_TCL="@comment " +CONFIGURE_ARGS= --disable-tcl .endif .if !defined(NOPORTDOCS) -BUILD_DEPENDS+= tclsh${TCL_V}:${PORTSDIR}/lang/tcl${TCL_SHORT_V} +BUILD_DEPENDS+= tclsh${TCL_V}:${PORTSDIR}/lang/tcl${TCL_V:S/.//} MAKE_ARGS+= TCLSH=tclsh${TCL_V} MAKE_ENV+= TCL_VER=${TCL_V} .endif -USE_GMAKE= YES -USE_GNOME= pkgconfig -USE_LIBTOOL_VER= 13 -GNU_CONFIGURE= YES -USE_REINPLACE= YES -CONFIGURE_ARGS= --prefix=${PREFIX} --with-hints=freebsd.hints +CONFIGURE_ARGS+= --prefix=${PREFIX} --with-hints=freebsd.hints CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} -ALL_TARGET= all - -INSTALLS_SHLIB= YES +ALL_TARGET= all -WRKSRC= ${WRKDIR}/${PORTNAME} - -.include <bsd.port.pre.mk> - -DOCFILES!= ${AWK} 'BEGIN {FS="/"}; /^%%PORTDOCS%%%%DOCSDIR%%/{print $$2}' pkg-plist +.if !defined(NOPORTDOCS) +PORTDOCS= * +.endif post-patch: @${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_V}\"" >${WRKSRC}/freebsd.hints - @${ECHO} "config_TARGET_TCL_LIBS=\"-L${PREFIX}/lib -ltcl${TCL_SHORT_V}\"" >>${WRKSRC}/freebsd.hints - #@${ECHO} "config_TARGET_CFLAGS=\"-DTHREADSAFE=1 -pthread\"" >>${WRKSRC}/freebsd.hints + @${ECHO} "config_TARGET_TCL_LIBS=\"-L${PREFIX}/lib -ltcl${TCL_V:S/.//}\"" >>${WRKSRC}/freebsd.hints +# @${ECHO} "config_TARGET_CFLAGS=\"-DTHREADSAFE=1 -pthread\"" >>${WRKSRC}/freebsd.hints post-build: # Build the docs .if !defined(NOPORTDOCS) - cd ${WRKSRC} && ${GMAKE} ${MAKE_ARGS} doc + @(cd ${WRKSRC} && ${GMAKE} ${MAKE_ARGS} doc) .endif post-install: .if defined(WITH_TCL) @${MKDIR} ${PREFIX}/lib/sqlite - cd ${WRKSRC} && ${LIBTOOL} --mode=install ${INSTALL_DATA} \ - libtclsqlite3.la ${PREFIX}/lib/sqlite/ - @${RM} ${PREFIX}/lib/sqlite/libtclsqlite3.la - ${INSTALL_DATA} ${FILESDIR}/pkgIndex.tcl ${PREFIX}/lib/sqlite/ - ${INSTALL_PROGRAM} ${WRKSRC}/.libs/tclsqlite3 ${PREFIX}/bin + @(cd ${WRKSRC} && ${LIBTOOL} --mode=install ${INSTALL_DATA} \ + libtclsqlite3.la ${PREFIX}/lib/sqlite/) + @${INSTALL_DATA} ${FILESDIR}/pkgIndex.tcl ${PREFIX}/lib/sqlite/ + @${INSTALL_PROGRAM} ${WRKSRC}/.libs/tclsqlite3 ${PREFIX}/bin .endif .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} -.for file in ${DOCFILES} - ${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR} -.endfor + @${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR} @${MKDIR} ${EXAMPLESDIR} - ${INSTALL_DATA} ${FILESDIR}/example.tcl ${EXAMPLESDIR} + @${INSTALL_DATA} ${FILESDIR}/example.tcl ${EXAMPLESDIR} .endif .include <bsd.port.post.mk> |