sthen af7f6e95fd update broken HOMEPAGE/MASTER_SITES for old pgfoundry ports.
add PORTROACH=site markers pointing at newer versions where I could find them.
2021-02-28 12:36:46 +00:00

52 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.16 2021/02/28 12:36:46 sthen Exp $
COMMENT= Tcl interface to PostgreSQL
V= 1.7
DISTNAME= libpgtcl-$V
PKGNAME= pgtcl-$V
REVISION= 1
CATEGORIES= databases
HOMEPAGE= https://flightaware.github.io/Pgtcl/
MAINTAINER= Stuart Cassoff <stwo@users.sourceforge.net>
# BSD
PERMIT_PACKAGE= Yes
PORTROACH= site:https://github.com/flightaware/Pgtcl/archive/
MASTER_SITES= https://ftp.postgresql.org/pub/projects/pgFoundry/pgtcl/pgtcl/$V/
MODULES= lang/tcl
LIB_DEPENDS= databases/postgresql
RUN_DEPENDS= ${MODTCL_RUN_DEPENDS}
BUILD_DEPENDS= ${MODTCL_BUILD_DEPENDS}
WANTLIB += pq>=5 ${MODTCL_WANTLIB}
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --with-tcl=${MODTCL_LIBDIR} \
--libdir=${MODTCL_TCLDIR} \
--with-postgres-include=${LOCALBASE}/include/postgresql \
--with-postgres-lib=${LOCALBASE}/lib \
--disable-threads
FAKE_FLAGS = PKG_DIR='$$(PACKAGE_NAME)' INSTALL_PROGRAM='$$(INSTALL_DATA)' \
PKG_HEADERS='' PKG_TCL_SOURCES=''
NO_TEST= Yes
ALL_TARGET = binaries libraries
INSTALL_TARGET =install-binaries install-libraries
SEPARATE_BUILD =Yes
SUBST_VARS = VER
VER = ${V:S/.//g}
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/pgtcl/html
${INSTALL_DATA} ${WRKSRC}/doc/html/* ${PREFIX}/share/doc/pgtcl/html
${INSTALL_DATA} ${WRKSRC}/doc/libpgtcl.pdf ${PREFIX}/share/doc/pgtcl
.include <bsd.port.mk>