freebsd-ports/databases/pgtcl/Makefile
Mikhail Teterin b8710f49ce Upgrade from 1.8.0 to 1.9.0 released in March. The newly added feature
can only be used with Tcl85 and above, but the software still builds
with earlier Tcl.

PR:	158742
2011-07-11 04:35:49 +00:00

48 lines
1.3 KiB
Makefile

# New ports collection makefile for: pgtcl
# Date created: February 13, 2007
# Whom: Mikhail Teterin
#
# $FreeBSD$
#
PORTNAME= pgtcl
PORTVERSION= 1.9.0
CATEGORIES= databases tcl
MASTER_SITES= SF/pgtclng/pgtclng/${PORTVERSION}:src \
SF/pgtclng/Manual/20110321:doc
MASTER_SITE_SUBDIR= pgtclng
DISTNAME= ${PORTNAME}${PORTVERSION}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:src
MAINTAINER= mi@aldan.algebra.com
COMMENT= TCL extension for accessing a PostgreSQL server (PGTCL-NG)
LICENSE= BSD
USE_TCL= yes
USE_PGSQL= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--with-tcl=${TCL_LIBDIR} --with-tclinclude=${TCL_INCLUDEDIR}
LIBDIR= ${PREFIX}/lib/${PORTNAME}
PLIST_SUB+= PORTVERSION=${PORTVERSION}
.if !defined(NOPORTDOCS)
EXTRACT_ONLY= ${_DISTFILES:M*tar.gz}
DISTFILES+= pgtcldocs-20110321.zip:doc
MASTER_SITES+= http://pgfoundry.org/frs/download.php/2836/:doc
BUILD_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
.endif
post-configure:
${REINPLACE_CMD} -e 's,tclstub,tcl,g' \
-e 's,-DUSE_TCL_STUBS=1,-UUSE_TCL_STUBS,g' \
${WRKSRC}/Makefile
do-install:
${MKDIR} ${LIBDIR}
${INSTALL_DATA} ${WRKSRC}/pkgIndex.tcl \
${WRKSRC}/libpgtcl${PORTVERSION}.so ${LIBDIR}
.if !defined(NOPORTDOCS)
${UNZIP_CMD} -oj ${DISTDIR}/${_DISTFILES:M*.zip} -d ${DOCSDIR}
.endif
.include <bsd.port.mk>