diff options
author | Martin Matuska <mm@FreeBSD.org> | 2009-02-26 14:19:53 +0000 |
---|---|---|
committer | Martin Matuska <mm@FreeBSD.org> | 2009-02-26 14:19:53 +0000 |
commit | a152a878b7d2d67c239f5ff20fbb852443024b96 (patch) | |
tree | 14a1306c13dc49231b11959cfef6994fa2640077 /x11-toolkits/tk85 | |
parent | 15ff46dc0f669b1078e2690d310bb22d374ad668 (diff) | |
download | ports-a152a878b7d2d67c239f5ff20fbb852443024b96.tar.gz ports-a152a878b7d2d67c239f5ff20fbb852443024b96.zip |
Notes
Diffstat (limited to 'x11-toolkits/tk85')
-rw-r--r-- | x11-toolkits/tk85/Makefile | 34 | ||||
-rw-r--r-- | x11-toolkits/tk85/files/patch-unix::Makefile.in | 23 | ||||
-rw-r--r-- | x11-toolkits/tk85/pkg-plist | 4 |
3 files changed, 35 insertions, 26 deletions
diff --git a/x11-toolkits/tk85/Makefile b/x11-toolkits/tk85/Makefile index 67031587f27e..8d384e3b43aa 100644 --- a/x11-toolkits/tk85/Makefile +++ b/x11-toolkits/tk85/Makefile @@ -7,6 +7,7 @@ PORTNAME= tk PORTVERSION= 8.5.6 +PORTREVISION= 1 CATEGORIES= x11-toolkits MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= tcl @@ -35,7 +36,7 @@ SUB_FILES= pkgIndex.tcl .if !defined(BUILDING_TK_THREADS) USE_TCL= ${SHORT_TK_VER} -OPTIONS= TK85_MAN "Install tk 8.5 manpages" off \ +OPTIONS= TK85_MAN "Install tk 8.5 function manpages" off \ XFT "Use Xft fonts" on \ DEMOS "Install demos" off .else @@ -49,6 +50,8 @@ SUB_LIST+= THREADS_SUFFIX="${THREADS_SUFFIX}" .include <bsd.port.pre.mk> +DATADIR= ${PREFIX}/share/${PORTNAME}${TCL_VER} + .if !defined(WITHOUT_XFT) CONFIGURE_ARGS+= --enable-xft LIB_DEPENDS+= Xft.2:${PORTSDIR}/x11-fonts/libXft @@ -56,6 +59,10 @@ LIB_DEPENDS+= Xft.2:${PORTSDIR}/x11-fonts/libXft CONFIGURE_ARGS+= --disable-xft .endif +.if !defined(NO_INSTALL_MANPAGES) +MAN1= wish${TCL_VER}${THREADS_SUFFIX}.1 +.endif + .if defined(BUILDING_TK_THREADS) CONFIGURE_ARGS+= --enable-threads --with-tcl=${LOCALBASE}/lib/tcl${TK_VER}${THREADS_SUFFIX} CONFIGURE_ENV+= PTHREAD_LIBS="${PTHREAD_LIBS}" PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ @@ -75,16 +82,8 @@ PLIST_SUB+= DEMOS="" PLIST_SUB+= DEMOS="@comment " .endif -.if defined(NO_INSTALL_MANPAGES) || !defined(WITH_TK85_MAN) - -PLIST_SUB+= INSTMAN='@comment ' - -.else - -DATADIR= ${PREFIX}/share/${PORTNAME}${TCL_VER} -PLIST_SUB+= INSTMAN='' +.if !defined(NO_INSTALL_MANPAGES) && defined(WITH_TK85_MAN) -MAN1= wish.1 MAN3= 3DBorder.3 AddOption.3 BindTable.3 CanvPsY.3 CanvTkwin.3 \ CanvTxtInfo.3 Clipboard.3 ClrSelect.3 ConfigWidg.3 ConfigWind.3 \ CoordToWin.3 CrtCmHdlr.3 CrtErrHdlr.3 CrtGenHdlr.3 CrtImgType.3 \ @@ -398,7 +397,7 @@ MLINKS= 3DBorder.3 Tk_Alloc3DBorderFromObj.3 \ text.n tk_textCut.n \ text.n tk_textPaste.n -.endif +.endif #!defined(NO_INSTALL_MANPAGES) && defined(WITH_TK85_MAN) .endif # defined(BUILDING_TK_THREADS) @@ -410,6 +409,10 @@ pre-everything:: post-patch: @${REINPLACE_CMD} -e 's|X11/Intrinsic.h|X11/Xlib.h|g' ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|@TK_SHARED_BUILD@|#@TK_SHARED_BUILD@|g' ${WRKSRC}/Makefile.in + @${REINPLACE_CMD} -e 's|wish |wish${TCL_VER}${THREADS_SUFFIX} |g' -e 's|Wish |Wish${TCL_VER}${THREADS_SUFFIX} |g' \ + -e 's|wish\\fR|wish${TCL_VER}${THREADS_SUFFIX}\\fR|g' -e 's|Wish\\fR|Wish${TCL_VER}${THREADS_SUFFIX}\\fR|g' \ + -e 's|^.so man.macros|.so ${DATADIR}/man.macros|' \ + ${WRKSRC}/../doc/wish.1 .if defined(BUILDING_TK_THREADS) @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \ -e 's|$${TCL_TRIM_DOTS}|$${TCL_TRIM_DOTS}${THREADS_SUFFIX}|g' \ @@ -442,15 +445,20 @@ do-install: post-install: ${INSTALL_DATA} ${WRKDIR}/pkgIndex.tcl ${PREFIX}/lib/tk${TK_VER}${THREADS_SUFFIX}/ -.if !defined(BUILDING_TK_THREADS) && !defined(NO_INSTALL_MANPAGES) && defined(WITH_TK85_MAN) ${MKDIR} ${DATADIR} ${INSTALL_DATA} ${WRKSRC}/../doc/man.macros ${DATADIR} +.if !defined(NO_INSTALL_MANPAGES) + ${MKDIR} ${MANPREFIX}/man/man1 + ${INSTALL_MAN} ${WRKSRC}/../doc/wish.1 ${MANPREFIX}/man/man1/wish${TCL_VER}${THREADS_SUFFIX}.1 +.if !defined(BUILDING_TK_THREADS) && defined(WITH_TK85_MAN) . for mp in ${MAN1} ${MAN3} ${MANN} @${REINPLACE_CMD} -e 's|^.so man.macros|.so ${DATADIR}/man.macros|' \ ${WRKSRC}/../doc/${mp} . endfor @cd ${WRKSRC} && ${MAKE} -f Makefile install-doc ${MAKE_ENV} -.endif +.endif # !defined(BUILDING_TK_THREADS) && defined(WITH_TK85_MAN) + +.endif # !defined(NO_INSTALL_MANPAGES) regression-test: build cd ${WRKSRC}; ${MAKE} test diff --git a/x11-toolkits/tk85/files/patch-unix::Makefile.in b/x11-toolkits/tk85/files/patch-unix::Makefile.in index e2cc060d8712..c83f973ce6e7 100644 --- a/x11-toolkits/tk85/files/patch-unix::Makefile.in +++ b/x11-toolkits/tk85/files/patch-unix::Makefile.in @@ -1,5 +1,5 @@ ---- Makefile.in.orig 2008-03-28 19:46:36.000000000 +0100 -+++ Makefile.in 2008-04-02 12:27:05.000000000 +0200 +--- Makefile.in.orig 2008-12-22 19:52:02.000000000 +0100 ++++ Makefile.in 2009-02-26 12:14:06.265332033 +0100 @@ -65,6 +65,8 @@ # Directory in which to install the include file tk.h: @@ -23,7 +23,7 @@ # Flag, 1: we're building a shared lib, 0 we're not -TK_SHARED_BUILD = @TK_SHARED_BUILD@ -+TK_SHARED_BUILD = ##@TK_SHARED_BUILD@ ++TK_SHARED_BUILD = ###@TK_SHARED_BUILD@ # Subdirectory of $(libdir) containing the pkgIndex.tcl file for loadable Tk TK_PKG_DIR = @TK_PKG_DIR@ @@ -86,7 +86,7 @@ @for i in "$(LIB_INSTALL_DIR)" "$(BIN_INSTALL_DIR)" "$(PKG_INSTALL_DIR)"; \ do \ if [ ! -d "$$i" ] ; then \ -@@ -719,10 +730,15 @@ +@@ -718,10 +729,15 @@ $(INSTALL_DATA) $(TK_BUILD_EXP_FILE) \ "$(LIB_INSTALL_DIR)"/$(TK_EXP_FILE); \ fi @@ -104,7 +104,7 @@ @if test "$(STUB_LIB_FILE)" != "" ; then \ echo "Installing $(STUB_LIB_FILE) to $(LIB_INSTALL_DIR)/"; \ @INSTALL_STUB_LIB@ ; \ -@@ -733,6 +749,7 @@ +@@ -732,6 +748,7 @@ @if test "$(@TK_WINDOWINGSYSTEM@_XLIB_HDRS)" != ""; then \ XLIB_INCLUDE_INSTALL_DIR="$(INCLUDE_INSTALL_DIR)"/X11; fi; \ for i in "$(INCLUDE_INSTALL_DIR)" "$${XLIB_INCLUDE_INSTALL_DIR}" \ @@ -112,7 +112,7 @@ "$(SCRIPT_INSTALL_DIR)" "$(SCRIPT_INSTALL_DIR)"/images \ "$(SCRIPT_INSTALL_DIR)"/msgs "$(SCRIPT_INSTALL_DIR)"/ttk; \ do \ -@@ -747,10 +764,14 @@ +@@ -746,10 +763,14 @@ chmod +x $(SRC_DIR)/install-sh; \ fi @echo "Installing header files"; @@ -130,13 +130,14 @@ @list='$(@TK_WINDOWINGSYSTEM@_XLIB_HDRS)'; for i in $$list ; \ do \ $(INSTALL_DATA) $$i "$(INCLUDE_INSTALL_DIR)"/X11; \ -@@ -830,17 +851,17 @@ +@@ -827,19 +848,15 @@ + else true; \ + fi; \ done; - @echo "Installing and cross-linking top-level (.1) docs"; - @for i in $(TOP_DIR)/doc/*.1; do \ +- @echo "Installing and cross-linking top-level (.1) docs"; +- @for i in $(TOP_DIR)/doc/*.1; do \ - $(UNIX_DIR)/installManPage $(MAN_FLAGS) $$i "$(MAN1_INSTALL_DIR)"; \ -+ ${BSD_INSTALL_MAN} $$i "$(MAN1_INSTALL_DIR)"; \ - done +- done @echo "Installing and cross-linking C API (.3) docs"; @for i in $(TOP_DIR)/doc/*.3; do \ diff --git a/x11-toolkits/tk85/pkg-plist b/x11-toolkits/tk85/pkg-plist index c603b6773ca9..70c84ad8fa18 100644 --- a/x11-toolkits/tk85/pkg-plist +++ b/x11-toolkits/tk85/pkg-plist @@ -199,8 +199,8 @@ lib/tk%%TK_VER%%/ttk/winTheme.tcl lib/tk%%TK_VER%%/ttk/xpTheme.tcl lib/tk%%TK_VER%%/unsupported.tcl lib/tk%%TK_VER%%/xmfbox.tcl -%%INSTMAN%%%%DATADIR%%/man.macros -%%INSTMAN%%@dirrm %%DATADIR%% +%%DATADIR%%/man.macros +@dirrm %%DATADIR%% @dirrm lib/tk%%TK_VER%%/ttk %%DEMOS%%@dirrm lib/tk%%TK_VER%%/demos/images %%DEMOS%%@dirrm lib/tk%%TK_VER%%/demos |