diff options
author | gahr <gahr@FreeBSD.org> | 2014-02-17 21:56:48 +0800 |
---|---|---|
committer | gahr <gahr@FreeBSD.org> | 2014-02-17 21:56:48 +0800 |
commit | edee893ba07f3e597c20a2c714dad780b62ee81d (patch) | |
tree | ef52ddc6272f35d782b6d445633d368a11f688b0 | |
parent | 65a1103508281780c4ad8a4b03f29fd3694c6bb3 (diff) | |
download | freebsd-ports-gnome-edee893ba07f3e597c20a2c714dad780b62ee81d.tar.gz freebsd-ports-gnome-edee893ba07f3e597c20a2c714dad780b62ee81d.tar.zst freebsd-ports-gnome-edee893ba07f3e597c20a2c714dad780b62ee81d.zip |
- STAGE-clean
- Convert to USES=tcl
- Get rid of pkg-plist (PORTDOCS=*)
-rw-r--r-- | databases/tcl-Mysql/Makefile | 25 | ||||
-rw-r--r-- | databases/tcl-Mysql/pkg-plist | 7 |
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%% |