1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00
freebsd-ports/databases/tcl-Mysql/Makefile
2021-04-06 16:31:07 +02:00

49 lines
1.3 KiB
Makefile

# Created by: Mikhail Teterin <mi@aldan.algebra.com>
PORTNAME= ${TCL_NODOT}-sql
PORTVERSION= 20000114
PORTREVISION= 7
CATEGORIES= databases tcl
MASTER_SITES= SF/tcl-sql/tcl-sql/${PORTVERSION}
DISTNAME= tcl-sql-${PORTVERSION}
MAINTAINER= mi@aldan.algebra.com
COMMENT= TCL module for accessing MySQL databases
PATCH_DEPENDS= rcsdiff:devel/rcs
BROKEN_armv6= fails to package: libTclMySQL.so.*: No such file or directory
OPTIONS_DEFINE= DOCS
USES= mysql tcl tar:tgz
TCL_NODOT= tcl${TCL_VER:S/.//}
WRKSRC= ${WRKDIR}/tcl-sql
LIB_NAME= libTclMySQL.so.1
MAKE_ARGS+= SHLIB_NAME=${LIB_NAME} ${PLIST_SUB} TCL_VERSION=tcl${TCL_VER}
REINPLACE_ARGS= -i ""
MAKEFILE= ${FILESDIR}/Makefile.bsd
DOCSDIR?= ${PREFIX}/share/doc/tcl-MySQL
PLIST_FILES= lib/sql1.0/${LIB_NAME} \
lib/sql1.0/pkgIndex.tcl
PORTDOCS= *
post-patch:
@${REINPLACE_CMD} -e 's,^int ,static int ,' ${WRKSRC}/sql.cc
SQL_DIR= lib/sql1.0
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/${SQL_DIR}
${INSTALL_DATA} ${WRKSRC}/obj/libTclMySQL.so.* ${STAGEDIR}${PREFIX}/${SQL_DIR}
${ECHO} "package ifneeded sql 1.1 \
{load ${SQL_DIR}/${LIB_NAME} sql}" \
> ${STAGEDIR}${PREFIX}/${SQL_DIR}/pkgIndex.tcl
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/*.html ${WRKSRC}/docs/*.txt \
${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>