1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00
freebsd-ports/databases/pgtcl/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

61 lines
1.5 KiB
Makefile

# Created by: Mikhail Teterin
# $FreeBSD$
PORTNAME= pgtcl
PORTVERSION= 2.0.0
PORTREVISION= 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)
LICENSE= PostgreSQL
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
OPTIONS_DEFINE= DOCS
.if defined(PGTCL_SLAVE)
USES= pgsql:${PGTCL_SLAVE} tcl
.else
USES= pgsql tcl
.endif
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--with-tcl=${TCL_LIBDIR} --with-tclinclude=${TCL_INCLUDEDIR}
LIBDIR= ${PREFIX}/lib/${PORTNAME}
USE_LDCONFIG= ${LIBDIR}
PLIST_SUB+= PORTVERSION=${PORTVERSION}
MANUALREL= 20110918
.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>