2000-04-06 04:07:48 +00:00
|
|
|
# New ports collection makefile for: mysqltcl
|
|
|
|
# Date created: August 31, 1999
|
|
|
|
# Whom: Mikhail Teterin <mi@aldan.algebra.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-08 22:49:07 +00:00
|
|
|
PORTNAME= mysqltcl
|
|
|
|
PORTVERSION= 1.53
|
2000-07-16 19:57:01 +00:00
|
|
|
CATEGORIES= databases tcl83
|
|
|
|
MASTER_SITES= http://www.mysql.com/Downloads/Contrib/
|
2000-04-06 04:07:48 +00:00
|
|
|
|
|
|
|
MAINTAINER= mi@aldan.algebra.com
|
|
|
|
|
|
|
|
LIB_DEPENDS= mysqlclient.6:${PORTSDIR}/databases/mysql322-client \
|
|
|
|
${TCL_NODOT}:${PORTSDIR}/lang/${TCL_NODOT}
|
|
|
|
|
2000-07-16 19:57:01 +00:00
|
|
|
TCL_VERSION?= tcl8.3
|
2000-04-06 04:07:48 +00:00
|
|
|
TCL_NODOT= ${TCL_VERSION:S/.//}
|
|
|
|
SQL_DIR= ${PREFIX}/lib/${TCL_VERSION}/mysqltcl
|
|
|
|
PLIST_SUB+= TCL_VERSION=${TCL_VERSION} LIB_NAME=${LIB_NAME}
|
|
|
|
MANN= mysqltcl.n
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC} && ${MAKE} PREFIX="${PREFIX}" \
|
|
|
|
TCL_VERSION=${TCL_VERSION} TCL_NODOT=${TCL_NODOT} \
|
|
|
|
-f ${FILESDIR}/Makefile.bsd ${LIB_NAME}
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${SQL_DIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${LIB_NAME} ${SQL_DIR}
|
|
|
|
${ECHO} "package ifneeded mysql 1.53 {load ${SQL_DIR}/${LIB_NAME}}" \
|
|
|
|
> ${SQL_DIR}/pkgIndex.tcl
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/${MANN} ${PREFIX}/man/mann
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|
|
|
|
|
|
|
|
LIB_NAME!= ${MAKE} -f ${FILESDIR}/Makefile.bsd printname
|