1999-11-01 04:15:01 +00:00
|
|
|
# New ports collection makefile for: p5-Mysql-modules
|
|
|
|
# Date created: 24 August 1999
|
|
|
|
# Whom: Mikhail Teterin <mi@aldan.algebra.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-08 22:49:07 +00:00
|
|
|
PORTNAME= tcl-sql
|
|
|
|
PORTVERSION= 20000114
|
2000-07-16 19:51:40 +00:00
|
|
|
CATEGORIES= databases ${TCL_NODOT}
|
1999-11-01 04:15:01 +00:00
|
|
|
MASTER_SITES= http://www.binevolve.com/~tdarugar/tcl-sql/download/
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
MAINTAINER= mi@aldan.algebra.com
|
|
|
|
|
|
|
|
LIB_DEPENDS= mysqlclient.6:${PORTSDIR}/databases/mysql322-client
|
2000-07-16 19:51:40 +00:00
|
|
|
RUN_DEPENDS= ${TCL_VERSION:S/tcl/tclsh/}:${PORTSDIR}/lang/${TCL_NODOT}
|
1999-11-01 04:15:01 +00:00
|
|
|
|
2000-07-16 19:51:40 +00:00
|
|
|
TCL_VERSION?= tcl8.3 # Only this needs changing to switch TCL-version
|
|
|
|
TCL_NODOT= ${TCL_VERSION:S/.//}
|
1999-11-01 04:15:01 +00:00
|
|
|
WRKSRC= ${WRKDIR}/tcl-sql/
|
2000-07-16 19:51:40 +00:00
|
|
|
PLIST_SUB= TCL_VERSION=${TCL_VERSION} LIB_NAME=${LIB_NAME}
|
1999-11-01 04:15:01 +00:00
|
|
|
|
|
|
|
do-build:
|
2000-07-16 19:51:40 +00:00
|
|
|
cd ${WRKSRC} && ${MAKE} ${PLIST_SUB} -f ${FILESDIR}/Makefile.bsd
|
1999-11-01 04:15:01 +00:00
|
|
|
|
2000-07-16 19:51:40 +00:00
|
|
|
SQL_DIR= ${LOCALBASE}/lib/${TCL_VERSION}/sql1.0
|
1999-11-01 04:15:01 +00:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${MKDIR} ${SQL_DIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/obj/libTclMySQL.so.* ${SQL_DIR}
|
|
|
|
${ECHO} "package ifneeded sql 1.0 \
|
2000-07-16 19:51:40 +00:00
|
|
|
{load ${SQL_DIR}/${LIB_NAME} sql}" \
|
1999-11-01 04:15:01 +00:00
|
|
|
> ${SQL_DIR}/pkgIndex.tcl
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/tcl-MySQL/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/docs/*.* ${PREFIX}/share/doc/tcl-MySQL/
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|
2000-07-16 19:51:40 +00:00
|
|
|
|
|
|
|
LIB_NAME!= ${MAKE} -f ${FILESDIR}/Makefile.bsd printname
|