aboutsummaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2014-02-17 13:56:48 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2014-02-17 13:56:48 +0000
commitb8999e2cc284686c1e136c69b338e9e3d33a3f1f (patch)
treeef52ddc6272f35d782b6d445633d368a11f688b0 /databases
parent1ba3d2f8f351396633a1ea523e4ced1fa34f5413 (diff)
downloadports-b8999e2cc284686c1e136c69b338e9e3d33a3f1f.tar.gz
ports-b8999e2cc284686c1e136c69b338e9e3d33a3f1f.zip
Notes
Diffstat (limited to 'databases')
-rw-r--r--databases/tcl-Mysql/Makefile25
-rw-r--r--databases/tcl-Mysql/pkg-plist7
2 files changed, 14 insertions, 18 deletions
diff --git a/databases/tcl-Mysql/Makefile b/databases/tcl-Mysql/Makefile
index 562015598a15..da89fb0ff1a9 100644
--- a/databases/tcl-Mysql/Makefile
+++ b/databases/tcl-Mysql/Makefile
@@ -12,36 +12,39 @@ 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+
-USE_TCL= 84+
+USES= tcl
TCL_NODOT= tcl${TCL_VER:S/.//}
WRKSRC= ${WRKDIR}/tcl-sql/
LIB_NAME= libTclMySQL.so.1
-PLIST_SUB= TCL_VERSION=tcl${TCL_VER} LIB_NAME=${LIB_NAME}
MAKE_ARGS+= SHLIB_NAME=${LIB_NAME} ${PLIST_SUB}
REINPLACE_ARGS= -i ""
MAKEFILE= ${FILESDIR}/Makefile.bsd
DOCSDIR?= ${PREFIX}/share/doc/tcl-MySQL
-NO_STAGE= yes
+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= ${LOCALBASE}/lib/tcl${TCL_VER}/sql1.0
+SQL_DIR= lib/sql1.0
do-install:
- ${MKDIR} ${SQL_DIR}
- ${INSTALL_DATA} ${WRKSRC}/obj/libTclMySQL.so.* ${SQL_DIR}
+ ${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}" \
- > ${SQL_DIR}/pkgIndex.tcl
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
+ > ${STAGEDIR}${PREFIX}/${SQL_DIR}/pkgIndex.tcl
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/*.html ${WRKSRC}/docs/*.txt \
- ${DOCSDIR}
-.endif
+ ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/databases/tcl-Mysql/pkg-plist b/databases/tcl-Mysql/pkg-plist
deleted file mode 100644
index 68f129498ffb..000000000000
--- a/databases/tcl-Mysql/pkg-plist
+++ /dev/null
@@ -1,7 +0,0 @@
-lib/%%TCL_VERSION%%/sql1.0/%%LIB_NAME%%
-lib/%%TCL_VERSION%%/sql1.0/pkgIndex.tcl
-@dirrm lib/%%TCL_VERSION%%/sql1.0
-%%PORTDOCS%%%%DOCSDIR%%/api.html
-%%PORTDOCS%%%%DOCSDIR%%/sample.full.txt
-%%PORTDOCS%%%%DOCSDIR%%/sample.simple.txt
-%%PORTDOCS%%@dirrm %%DOCSDIR%%