blob: a1ebf222638950e9f69a599974582d17d65fdf41 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
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
WWW= https://sourceforge.net/projects/tcl-sql/
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>
|