2013-09-20 18:13:47 +02:00
|
|
|
# Created by: Mikhail Teterin
|
2007-06-18 22:45:59 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= pgtcl
|
2018-01-07 12:33:58 +01:00
|
|
|
PORTVERSION= 2.1.1
|
2008-04-09 15:42:26 +02:00
|
|
|
CATEGORIES= databases tcl
|
2015-05-14 12:15:04 +02:00
|
|
|
MASTER_SITES= SF/pgtclng/pgtclng/${PORTVERSION}
|
2007-06-18 22:45:59 +02:00
|
|
|
DISTNAME= ${PORTNAME}${PORTVERSION}
|
2015-05-14 12:15:04 +02:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
2007-06-18 22:45:59 +02:00
|
|
|
|
|
|
|
MAINTAINER= mi@aldan.algebra.com
|
2009-01-20 19:10:53 +01:00
|
|
|
COMMENT= TCL extension for accessing a PostgreSQL server (PGTCL-NG)
|
2007-06-18 22:45:59 +02:00
|
|
|
|
2014-02-19 15:44:23 +01:00
|
|
|
LICENSE= PostgreSQL
|
2014-02-19 10:53:06 +01:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
|
2010-11-12 03:07:41 +01:00
|
|
|
|
2014-02-17 14:05:39 +01:00
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
|
2014-05-29 10:12:51 +02:00
|
|
|
.if defined(PGTCL_SLAVE)
|
2016-04-21 14:45:16 +02:00
|
|
|
USES= pgsql:${PGTCL_SLAVE}
|
2014-05-29 10:12:51 +02:00
|
|
|
.else
|
2016-04-21 14:45:16 +02:00
|
|
|
USES= pgsql
|
2014-05-29 10:12:51 +02:00
|
|
|
.endif
|
2016-04-21 14:45:16 +02:00
|
|
|
|
|
|
|
USES+= tcl:tea
|
2007-06-18 22:45:59 +02:00
|
|
|
LIBDIR= ${PREFIX}/lib/${PORTNAME}
|
2014-10-07 17:49:55 +02:00
|
|
|
USE_LDCONFIG= ${LIBDIR}
|
2007-06-18 22:45:59 +02:00
|
|
|
PLIST_SUB+= PORTVERSION=${PORTVERSION}
|
2018-01-07 12:33:58 +01:00
|
|
|
MANUALREL= 20171113
|
2012-02-24 22:21:39 +01:00
|
|
|
|
2014-02-17 14:05:39 +01:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2012-02-24 22:21:39 +01:00
|
|
|
DISTFILES+= pgtcldocs-${MANUALREL}.zip:doc
|
|
|
|
MASTER_SITES+= SF/pgtclng/Manual/${MANUALREL}:doc
|
2007-06-18 22:45:59 +02:00
|
|
|
.endif
|
|
|
|
|
2014-02-17 14:05:39 +01:00
|
|
|
PLIST_FILES= lib/pgtcl/libpgtcl${PORTVERSION}.so \
|
|
|
|
lib/pgtcl/pkgIndex.tcl
|
|
|
|
PORTDOCS= *
|
|
|
|
|
2007-06-18 22:45:59 +02:00
|
|
|
post-configure:
|
|
|
|
${REINPLACE_CMD} -e 's,tclstub,tcl,g' \
|
|
|
|
-e 's,-DUSE_TCL_STUBS=1,-UUSE_TCL_STUBS,g' \
|
|
|
|
${WRKSRC}/Makefile
|
|
|
|
|
|
|
|
do-install:
|
2014-02-17 14:05:39 +01:00
|
|
|
@${MKDIR} ${STAGEDIR}${LIBDIR}
|
2007-06-18 22:45:59 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/pkgIndex.tcl \
|
2014-02-17 14:05:39 +01:00
|
|
|
${WRKSRC}/libpgtcl${PORTVERSION}.so ${STAGEDIR}${LIBDIR}
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${TAR} -xf ${DISTDIR}/${_DISTFILES:M*.zip} -C ${STAGEDIR}${DOCSDIR} \
|
2012-02-24 22:21:39 +01:00
|
|
|
--strip-components 1 --no-same-permission --no-same-owner
|
2014-02-17 14:05:39 +01:00
|
|
|
${CHMOD} ${SHAREMODE} ${STAGEDIR}${DOCSDIR}/*
|
2007-06-18 22:45:59 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|