freebsd-ports/databases/pgtcl/Makefile

60 lines
1.4 KiB
Makefile
Raw Normal View History

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