diff options
author | dinoex <dinoex@FreeBSD.org> | 2004-11-02 14:24:23 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2004-11-02 14:24:23 +0800 |
commit | ab8953e8206f884bc88699b976fdd93f462c2904 (patch) | |
tree | 18e754b396d28f7583ce9c8d88b2695b63df2636 /textproc/cost | |
parent | 7991e9df308b941d3c1e282d767d746ef631e27d (diff) | |
download | freebsd-ports-gnome-ab8953e8206f884bc88699b976fdd93f462c2904.tar.gz freebsd-ports-gnome-ab8953e8206f884bc88699b976fdd93f462c2904.tar.zst freebsd-ports-gnome-ab8953e8206f884bc88699b976fdd93f462c2904.zip |
- fix reference on tcl source, use TCL_INCLUDE_SPEC
- search dependecy in LOCALBASE, not in PREFIX
- fix package with NOPORTDOCS
- use DOCSDIR
- make portlint happy
Diffstat (limited to 'textproc/cost')
-rw-r--r-- | textproc/cost/Makefile | 12 | ||||
-rw-r--r-- | textproc/cost/files/patch-configure | 11 | ||||
-rw-r--r-- | textproc/cost/pkg-plist | 10 |
3 files changed, 22 insertions, 11 deletions
diff --git a/textproc/cost/Makefile b/textproc/cost/Makefile index bf42cd896e2a..790c31627cb5 100644 --- a/textproc/cost/Makefile +++ b/textproc/cost/Makefile @@ -14,13 +14,12 @@ MAINTAINER= ports@FreeBSD.org COMMENT= SGML/XML application programming tool LIB_DEPENDS= tcl82.1:${PORTSDIR}/lang/tcl82 -BUILD_DEPENDS= ${NONEXISTENT}:${PORTSDIR}/lang/tcl82:patch WRKSRC= ${WRKDIR}/${DISTNAME}/src GNU_CONFIGURE= YES -CONFIGURE_ARGS+= --with-tcl=${PREFIX}/lib/tcl8.2 \ +CONFIGURE_ARGS+= --with-tcl=${LOCALBASE}/lib/tcl8.2 \ --with-docdir=${PREFIX}/share/doc/cost --with-charmaps -CONFIGURE_ENV+= CFLAGS="${CFLAGS} -fPIC" +CONFIGURE_ENV+= CFLAGS="${CFLAGS} -fPIC" TCL_INCLUDE_SPEC="${LOCALBASE}/include/tcl8.2" do-install: ${MKDIR} ${PREFIX}/lib/cost2.2 @@ -32,9 +31,10 @@ do-install: .if !defined(NOPORTDOCS) @${ECHO} "===> Installing Cost documentation" - @${MKDIR} ${PREFIX}/share/doc/cost && ${CHMOD} a+rx ${PREFIX}/share/doc/cost - @cd ${WRKDIR}/${DISTNAME}/doc && ${INSTALL_MAN} manual.html manual.ps rtflib.html simple.html \ - ${PREFIX}/share/doc/cost + @${MKDIR} ${DOCSDIR} && ${CHMOD} a+rx ${DOCSDIR} + @cd ${WRKDIR}/${DISTNAME}/doc && \ + ${INSTALL_MAN} manual.html manual.ps rtflib.html simple.html \ + ${DOCSDIR}/ .endif .include <bsd.port.mk> diff --git a/textproc/cost/files/patch-configure b/textproc/cost/files/patch-configure new file mode 100644 index 000000000000..c3207cbb1b81 --- /dev/null +++ b/textproc/cost/files/patch-configure @@ -0,0 +1,11 @@ +--- configure.orig Mon Jul 19 00:36:25 1999 ++++ configure Tue Nov 2 07:00:46 2004 +@@ -1174,7 +1174,7 @@ + s%@TCL_SHLIB_LD@%$TCL_SHLIB_LD%g + s%@TCL_SHLIB_LD_LIBS@%$TCL_SHLIB_LD_LIBS%g + s%@TCL_SHLIB_SUFFIX@%$TCL_SHLIB_SUFFIX%g +-s%@TCL_SRC_DIR@%$TCL_SRC_DIR%g ++s%@TCL_SRC_DIR@%$TCL_INCLUDE_SPEC%g + s%@TCL_PREFIX@%$TCL_PREFIX%g + s%@TCL_EXEC_PREFIX@%$TCL_EXEC_PREFIX%g + s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g diff --git a/textproc/cost/pkg-plist b/textproc/cost/pkg-plist index d7cf154f40ec..9c0afeef67ad 100644 --- a/textproc/cost/pkg-plist +++ b/textproc/cost/pkg-plist @@ -13,9 +13,9 @@ lib/cost2.2/textutil.tcl lib/cost2.2/winhelp-stylesheet.tcl lib/cost2.2/RTF.spec lib/cost2.2/EventHandler.itcl -share/doc/cost/manual.html -share/doc/cost/manual.ps -share/doc/cost/rtflib.html -share/doc/cost/simple.html -@dirrm share/doc/cost +%%PORTDOCS%%%%DOCSDIR%%/manual.html +%%PORTDOCS%%%%DOCSDIR%%/manual.ps +%%PORTDOCS%%%%DOCSDIR%%/rtflib.html +%%PORTDOCS%%%%DOCSDIR%%/simple.html +%%PORTDOCS%%@dirrm %%DOCSDIR%% @dirrm lib/cost2.2 |