1 # Created by: Palle Girgensohn <girgen@pingpong.net>
5 PORTVERSION= 1.00.20140902
7 CATEGORIES= databases tcl tk
8 MASTER_SITES= https://BSDforge.com/projects/source/databases/pgaccess/
10 MAINTAINER= portmaster@bsdforge.com
11 COMMENT= Powerful PostgreSQL database GUI administration tool and toolkit
15 RUN_DEPENDS= ${LOCALBASE}/lib/pgtcl/pkgIndex.tcl:databases/pgtcl
21 DOCSDIR= ${PREFIX}/share/doc/postgresql/${PORTNAME}
22 PGACCESSDIR= ${PREFIX}/share/postgresql/${PORTNAME}
26 .include <bsd.port.options.mk>
29 @${REINPLACE_CMD} -e "s,/usr/bin,${PREFIX}/bin,g ; " ${WRKSRC}/lib/mainlib.tcl
30 @${RM} ${WRKSRC}/lib/mainlib.tcl.bak
33 .for targetfile in pgaccess.tcl pgmonitor
34 @ ${SED} -e "s,%%LOCALBASE%%,${LOCALBASE},g; \
35 s,%%WISH%%,${WISH},g; \
36 s,%%PREFIX%%,${PREFIX},g; \
37 s,%%PROGRAM%%,${targetfile},g" \
38 < ${FILESDIR}/run-tcl-file > ${WRKDIR}/${targetfile:R}.sh
42 @${MKDIR} ${STAGEDIR}${PGACCESSDIR} ; \
44 ${TAR} cf - `${FIND} * ! \( -path win32\* -o -path doc\* \)` | \
45 ( cd ${STAGEDIR}${PGACCESSDIR}; ${TAR} xf - )
46 .for targetfile in pgaccess pgmonitor
47 ${INSTALL_SCRIPT} ${WRKDIR}/${targetfile}.sh ${STAGEDIR}${PREFIX}/bin/${targetfile}
49 @${MKDIR} ${STAGEDIR}${DOCSDIR} ; \
50 cd ${WRKSRC}/doc/html ;\
52 ( cd ${STAGEDIR}${DOCSDIR}; ${TAR} xf - )
54 .include <bsd.port.mk>