mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-24 00:45:52 +00:00
ae413f56b6
Approved by: ade (mentor)
58 lines
1.6 KiB
Makefile
58 lines
1.6 KiB
Makefile
# New ports collection makefile for: PostgreSQL Pgaccess
|
|
# Date created: December 1st, 2002
|
|
# Whom: Palle Girgensohn <girgen@pingpong.net>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= pgaccess
|
|
PORTVERSION= 0.99.0.20040219
|
|
CATEGORIES= databases tcl${TCLVERSION:S/.//} tk${TCLVERSION:S/.//}
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= pgaccess
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION:S/./_/g}
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= girgen@FreeBSD.org
|
|
COMMENT= A powerful GUI PostgreSQL database administration tool and toolkit
|
|
|
|
LIB_DEPENDS= pgtcl:${PORTSDIR}/databases/postgresql-tcltk
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
TCLVERSION?= 8.4
|
|
DOCSDIR= ${PREFIX}/share/doc/postgresql/${PORTNAME}
|
|
PGACCESSDIR= ${PREFIX}/share/postgresql/${PORTNAME}
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e "s,/usr/bin,${PREFIX}/bin,g ; " ${WRKSRC}/lib/mainlib.tcl
|
|
@${RM} ${WRKSRC}/lib/mainlib.tcl.bak
|
|
|
|
do-build:
|
|
.for targetfile in pgaccess.tcl pgmonitor
|
|
@ ${SED} -e "s,%%LOCALBASE%%,${LOCALBASE},g; \
|
|
s,%%TCL_VERSION%%,${TCLVERSION},g; \
|
|
s,%%PREFIX%%,${PREFIX},g; \
|
|
s,%%PROGRAM%%,${targetfile},g" \
|
|
< ${FILESDIR}/run-tcl-file > ${WRKDIR}/${targetfile:R}.sh
|
|
.endfor
|
|
|
|
do-install:
|
|
@${MKDIR} ${PGACCESSDIR} ; \
|
|
cd ${WRKSRC} ;\
|
|
${TAR} cf - `${FIND} * ! \( -path win32\* -o -path doc\* \)` | \
|
|
( cd ${PGACCESSDIR}; ${TAR} xf - ) ; \
|
|
${CHOWN} -R 0:0 ${PGACCESSDIR}
|
|
.for targetfile in pgaccess pgmonitor
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${targetfile}.sh ${PREFIX}/bin/${targetfile}
|
|
.endfor
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR} ; \
|
|
cd ${WRKSRC}/doc/html ;\
|
|
${TAR} cf - * | \
|
|
( cd ${DOCSDIR}; ${TAR} xf - ) ; \
|
|
${CHOWN} -R 0:0 ${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|