freebsd-ports/databases/pgaccess/Makefile
Daichi GOTO 3e8c2b2ab5 update databases/pgaccess: 0.98.8 -> 0.98.8.20030520
PR:		55355
Submitted by:	Palle Girgensohn <girgen@pingpong.net> (maintainer)
2003-08-18 05:17:34 +00:00

56 lines
1.5 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.98.8.20030520
CATEGORIES= databases tcl83 tk83
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= pgaccess
MAINTAINER= girgen@pingpong.net
COMMENT= A powerful GUI PostgreSQL database administration tool and toolkit
LIB_DEPENDS= pgtcl:${PORTSDIR}/databases/postgresql-tcltk
USE_REINPLACE= yes
TCL_VERSION?= 8.4
PGACCESSDOCDIR= ${PREFIX}/share/doc/postgresql/pgaccess
PGACCESSDIR= ${PREFIX}/share/postgresql/pgaccess
post-patch:
@${REINPLACE_CMD} -e "s,/usr/bin,${PREFIX}/bin,g ; " ${WRKSRC}/lib/mainlib.tcl
@${RM} ${WRKSRC}/lib/mainlib.tcl.bak
do-build:
.for file in pgaccess.tcl pgmonitor
@ ${SED} -e "s,%%LOCALBASE%%,${LOCALBASE},g; \
s,%%TCL_VERSION%%,${TCL_VERSION},g; \
s,%%PREFIX%%,${PREFIX},g; \
s,%%PROGRAM%%,${file},g" \
< ${FILESDIR}/run-tcl-file > ${WRKDIR}/${file: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 file in pgaccess pgmonitor
${INSTALL_SCRIPT} ${WRKDIR}/${file}.sh ${PREFIX}/bin/${file}
.endfor
.if !defined(NOPORTDOCS)
@${MKDIR} ${PGACCESSDOCDIR} ; \
cd ${WRKSRC}/doc/html ;\
${TAR} cf - * | \
( cd ${PGACCESSDOCDIR}; ${TAR} xf - ) ; \
${CHOWN} -R 0:0 ${PGACCESSDOCDIR}
.endif
.include <bsd.port.mk>