diff --git a/devel/ztcl/Makefile b/devel/ztcl/Makefile index 6ecaef5b1890..1091c232c494 100644 --- a/devel/ztcl/Makefile +++ b/devel/ztcl/Makefile @@ -9,30 +9,31 @@ MASTER_SITES= http://download.gna.org/ztcl/1.0/ DISTNAME= ${PORTNAME}_${DISTVERSION}_src MAINTAINER= dsh@vlink.ru -COMMENT= A zlib extension library for the Tcl +COMMENT= Zlib extension library for the Tcl -LIB_DEPENDS= tclmore0.7:${PORTSDIR}/devel/tclmore +LICENSE= LGPL21 +LIB_DEPENDS= libtclmore0.so:${PORTSDIR}/devel/tclmore + +OPTIONS_DEFINE= DOCS + +USES= gmake tcl GNU_CONFIGURE= yes USE_LDCONFIG= yes -USE_GMAKE= yes -USE_TCL= yes -USE_TCL_BUILD= yes WRKSRC= ${WRKDIR}/${DISTNAME:S/_src$//} INFO= ${PORTNAME} ${PORTNAME}-zlib -CONFIGURE_ARGS+= --with-tcl=${TCL_LIBDIR} \ +CONFIGURE_ARGS+=--with-tcl=${TCL_LIBDIR} \ --with-tclinclude=${TCL_INCLUDEDIR} \ - --with-tclmorescripts=${PREFIX}/libexec/tclmore -CPPFLAGS+= -I ${PREFIX}/include -I ${TCL_INCLUDEDIR} -LDFLAGS+= -L ${PREFIX}/lib + --with-tclmorescripts=${LOCALBASE}/libexec/tclmore \ + --enable-threads +MAKE_ENV+= STAGEDIR=${STAGEDIR} +CPPFLAGS+= -I ${LOCALBASE}/include -I ${TCL_INCLUDEDIR} +LDFLAGS+= -L ${LOCALBASE}/lib -.if !defined(NOPORTDOCS) PORTDOCS= * -.endif -NO_STAGE= yes post-extract: ${MV} ${WRKSRC}/doc/zlib.texi ${WRKSRC}/doc/${PORTNAME}-zlib.texi diff --git a/devel/ztcl/files/patch-Makefile.in b/devel/ztcl/files/patch-Makefile.in index 529f37071419..ce3efd63d256 100644 --- a/devel/ztcl/files/patch-Makefile.in +++ b/devel/ztcl/files/patch-Makefile.in @@ -1,5 +1,5 @@ ---- Makefile.in.orig Sat May 22 09:41:17 2004 -+++ Makefile.in Wed Apr 26 11:24:40 2006 +--- Makefile.in.orig 2004-05-22 07:41:17.000000000 +0200 ++++ Makefile.in 2014-02-17 16:44:51.000000000 +0100 @@ -42,7 +42,7 @@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_VERSION = @PACKAGE_VERSION@ @@ -9,6 +9,15 @@ #PAGE ## ------------------------------------------------------------ +@@ -50,7 +50,7 @@ + ## ------------------------------------------------------------ + + CONFIGDIR = @CONFIGDIR@ +-INSTALL_ROOT = ++INSTALL_ROOT = ${STAGEDIR} + + # If there is not a value for "TMPDIR" from the environment + # we select a common default. @@ -74,7 +74,7 @@ bindir = @bindir@ diff --git a/devel/ztcl/files/patch-configure b/devel/ztcl/files/patch-configure index 64b0ffb85942..3497cae11322 100644 --- a/devel/ztcl/files/patch-configure +++ b/devel/ztcl/files/patch-configure @@ -1,5 +1,14 @@ ---- configure.orig Sat May 22 09:41:22 2004 -+++ configure Wed Apr 26 12:01:02 2006 +--- configure.orig 2004-05-22 07:41:22.000000000 +0200 ++++ configure 2014-02-17 16:43:40.000000000 +0100 +@@ -3919,7 +3919,7 @@ + echo $ECHO_N "(cached) $ECHO_C" >&6 + else + ac_check_lib_save_LIBS=$LIBS +-LIBS="-ltclmorestub0.7g -ltclstub8.4g $LIBS" ++LIBS="-ltclmorestub0.7g $LIBS" + cat >conftest.$ac_ext <<_ACEOF + #line $LINENO "configure" + /* confdefs.h. */ @@ -3986,7 +3986,7 @@ echo $ECHO_N "(cached) $ECHO_C" >&6 else @@ -9,6 +18,15 @@ cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" /* confdefs.h. */ +@@ -6748,7 +6748,7 @@ + # results, and the version is kept in special file). + + if test -r /etc/.relid -a "X`uname -n`" = "X`uname -s`" ; then +- system=MP-RAS-`awk '{print }' /etc/.relid'` ++ system=MP-RAS-`awk '{print }' /etc/.relid` + fi + if test "`uname -s`" = "AIX" ; then + system=AIX-`uname -v`.`uname -r` @@ -7892,11 +7892,12 @@ EXTRA_CFLAGS="-pthread" LDFLAGS="$LDFLAGS -pthread" diff --git a/devel/ztcl/pkg-plist b/devel/ztcl/pkg-plist index 04f67deb885f..c2738a75adb2 100644 --- a/devel/ztcl/pkg-plist +++ b/devel/ztcl/pkg-plist @@ -8,12 +8,4 @@ lib/libztclstub1.0.a lib/libztclstub1.a lib/ztcl/pkgIndex.tcl share/aclocal/ztcl.m4 -%%DOCSDIR%%/DESCRIPTION.txt -%%DOCSDIR%%/HTML/ztcl-zlib.html -%%DOCSDIR%%/HTML/ztcl.html -%%DOCSDIR%%/INSTALL -%%DOCSDIR%%/README -%%DOCSDIR%%/license.terms @dirrm lib/ztcl -@dirrm %%DOCSDIR%%/HTML -@dirrm %%DOCSDIR%%