freebsd-ports/databases/tcl-Mysql/Makefile
Mikhail Teterin b485957452 Though I can not reproduce the error cited by the previous committer
in the commit log with neither g++, clang++, nor clang++33, I'll
try to fix it anyway. Unbreak.
2014-07-13 16:40:24 +00:00

50 lines
1.2 KiB
Makefile

# Created by: Mikhail Teterin <mi@aldan.algebra.com>
# $FreeBSD$
PORTNAME= ${TCL_NODOT}-sql
PORTVERSION= 20000114
PORTREVISION= 7
CATEGORIES= databases tcl
MASTER_SITES= SF/tcl-sql/tcl-sql/${PORTVERSION}
DISTNAME= tcl-sql-${PORTVERSION}
EXTRACT_SUFX= .tgz
MAINTAINER= mi@aldan.algebra.com
COMMENT= TCL module for accessing MySQL databases
OPTIONS_DEFINE= DOCS
PATCH_DEPENDS= rcsdiff:${PORTSDIR}/devel/rcs
USE_MYSQL= 41+
USES= tcl
TCL_NODOT= tcl${TCL_VER:S/.//}
WRKSRC= ${WRKDIR}/tcl-sql/
LIB_NAME= libTclMySQL.so.1
MAKE_ARGS+= SHLIB_NAME=${LIB_NAME} ${PLIST_SUB}
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
PLIST_DIRS= lib/sql1.0
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>