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 | |
parent | 15ff46dc0f669b1078e2690d310bb22d374ad668 (diff) | |
download | ports-a152a878b7d2d67c239f5ff20fbb852443024b96.tar.gz ports-a152a878b7d2d67c239f5ff20fbb852443024b96.zip |
Notes
-rw-r--r-- | lang/tcl84/Makefile | 40 | ||||
-rw-r--r-- | lang/tcl84/files/patch-aa | 38 | ||||
-rw-r--r-- | lang/tcl84/pkg-plist | 4 | ||||
-rw-r--r-- | lang/tcl85/Makefile | 38 | ||||
-rw-r--r-- | lang/tcl85/files/patch-unix-Makefile.in | 55 | ||||
-rw-r--r-- | lang/tcl85/pkg-plist | 4 | ||||
-rw-r--r-- | lang/tcl86/Makefile | 38 | ||||
-rw-r--r-- | lang/tcl86/pkg-plist | 4 | ||||
-rw-r--r-- | x11-toolkits/tk84/Makefile | 32 | ||||
-rw-r--r-- | x11-toolkits/tk84/files/patch-ab | 33 | ||||
-rw-r--r-- | x11-toolkits/tk84/pkg-plist | 4 | ||||
-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 | ||||
-rw-r--r-- | x11-toolkits/tk86/Makefile | 34 | ||||
-rw-r--r-- | x11-toolkits/tk86/files/patch-unix::Makefile.in | 31 | ||||
-rw-r--r-- | x11-toolkits/tk86/pkg-plist | 4 |
17 files changed, 240 insertions, 180 deletions
diff --git a/lang/tcl84/Makefile b/lang/tcl84/Makefile index ee3a8649fb3f..e5f286522371 100644 --- a/lang/tcl84/Makefile +++ b/lang/tcl84/Makefile @@ -7,6 +7,7 @@ PORTNAME= tcl PORTVERSION= 8.4.19 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= lang tcl MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} @@ -32,7 +33,7 @@ PLIST_SUB= TCL_VER="${TCL_VER}" SHORT_TCL_VER="${SHORT_TCL_VER}" EXTRACT_AFTER_ARGS=|${TAR} -xpf - --exclude compat/ .if !defined(BUILDING_TCL_THREADS) -OPTIONS= TCL84_MAN "Install tcl 8.4 manpages" on +OPTIONS= TCL84_MAN "Install tcl 8.4 function manpages" off .else USE_TCL= ${SHORT_TCL_VER} PLIST= ${PKGDIR}/pkg-plist.threads @@ -41,22 +42,20 @@ THREADS_SUFFIX= -threads .include <bsd.port.pre.mk> +DATADIR= ${PREFIX}/share/${PORTNAME}${TCL_VER} + +.if !defined(NO_INSTALL_MANPAGES) +MAN1= tclsh${TCL_VER}${THREADS_SUFFIX}.1 +.endif + .if defined(BUILDING_TCL_THREADS) CONFIGURE_ARGS+= --enable-threads CONFIGURE_ENV+= PTHREAD_LIBS="${PTHREAD_LIBS}" PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" .else CONFIGURE_ARGS+= --disable-threads -.if defined(NO_INSTALL_MANPAGES) || defined(WITHOUT_TCL84_MAN) - -PLIST_SUB+= INSTMAN='@comment ' - -.else - -DATADIR= ${PREFIX}/share/${PORTNAME}${TCL_VER} -PLIST_SUB+= INSTMAN='' -MAN1= tclsh.1 +.if !defined(NO_INSTALL_MANPAGES) && defined(WITH_TCL84_MAN) MAN3= Access.3 AddErrInfo.3 Alloc.3 AllowExc.3 AppInit.3 AssocData.3 \ Async.3 BackgdErr.3 Backslash.3 BoolObj.3 ByteArrObj.3 CallDel.3 \ @@ -615,8 +614,12 @@ LATEST_LINK= tcl84${THREADS_SUFFIX} TCLBASE?= ${PORTSDIR}/${PKGCATEGORY}/${LATEST_LINK} -.if defined(BUILDING_TCL_THREADS) post-patch: + @${REINPLACE_CMD} -e 's|tclsh |tclsh${TCL_VER}${THREADS_SUFFIX} |g' -e 's|Tclsh |Tclsh${TCL_VER}${THREADS_SUFFIX} |g' \ + -e 's|tclsh\\fR|tclsh${TCL_VER}${THREADS_SUFFIX}\\fR|g' -e 's|Tclsh\\fR|Tclsh${TCL_VER}${THREADS_SUFFIX}\\fR|g' \ + -e 's|^.so man.macros|.so ${DATADIR}/man.macros|' \ + ${WRKSRC}/../doc/tclsh.1 +.if defined(BUILDING_TCL_THREADS) @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \ -e 's|$${TCL_TRIM_DOTS}|$${TCL_TRIM_DOTS}${THREADS_SUFFIX}|g' \ -e 's|-ltcl$${TCL_VERSION}|-ltcl$${TCL_VERSION}${THREADS_SUFFIX}|g' \ @@ -654,19 +657,24 @@ do-install: @cd ${WRKSRC} && ${MAKE_ENV} ${MAKE} -f Makefile install-binaries @${MKDIR} ${PREFIX}/lib/tcl${TCL_VER}${THREADS_SUFFIX} @${LN} -s ${PREFIX}/lib/tcl${TCL_VER}/tclConfig${THREADS_SUFFIX}.sh ${PREFIX}/lib/tcl${TCL_VER}${THREADS_SUFFIX}/tclConfig.sh -.else +.endif + post-install: -.if !defined(NO_INSTALL_MANPAGES) && defined(WITH_TCL84_MAN) ${MKDIR} ${DATADIR} ${INSTALL_DATA} ${WRKSRC}/../doc/man.macros ${DATADIR} -. for mp in ${MAN1} ${MAN3} ${MANN} +.if !defined(NO_INSTALL_MANPAGES) + ${MKDIR} ${MANPREFIX}/man/man1 + ${INSTALL_MAN} ${WRKSRC}/../doc/tclsh.1 ${MANPREFIX}/man/man1/tclsh${TCL_VER}${THREADS_SUFFIX}.1 +.if !defined(BUILDING_TCL_THREADS) && defined(WITH_TCL84_MAN) +. for mp in ${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_TCL_THREADS) +.endif # !defined(BUILDING_TCL_THREADS) && defined(WITH_TCL84_MAN) + +.endif # !defined(NO_INSTALL_MANPAGES) regression-test: build cd ${WRKSRC} && LC_ALL=C ${MAKE} test diff --git a/lang/tcl84/files/patch-aa b/lang/tcl84/files/patch-aa index 2fa6098a8c0f..fb257bf34bde 100644 --- a/lang/tcl84/files/patch-aa +++ b/lang/tcl84/files/patch-aa @@ -1,5 +1,5 @@ ---- Makefile.in.orig Thu Oct 19 19:26:15 2006 -+++ Makefile.in Mon Mar 12 18:09:29 2007 +--- Makefile.in.orig 2008-04-17 22:29:49.000000000 +0200 ++++ Makefile.in 2009-02-26 11:41:29.840998305 +0100 @@ -57,6 +57,8 @@ # Directory in which to install the include file tcl.h: @@ -18,7 +18,7 @@ # Flags to pass to the linker LDFLAGS_DEBUG = @LDFLAGS_DEBUG@ -@@ -463,7 +465,8 @@ +@@ -469,7 +471,8 @@ all: binaries libraries doc @@ -28,7 +28,7 @@ libraries: -@@ -474,6 +477,15 @@ +@@ -480,6 +483,15 @@ ${LIB_FILE}: ${OBJS} ${STUB_LIB_FILE} rm -f $@ @MAKE_LIB@ @@ -44,8 +44,8 @@ ${STUB_LIB_FILE}: ${STUB_LIB_OBJS} rm -f $@ -@@ -600,7 +612,7 @@ - dltest.marker: +@@ -606,7 +618,7 @@ + dltest.marker: ${STUB_LIB_FILE} cd dltest ; $(MAKE) -INSTALL_TARGETS = install-binaries install-libraries install-doc @EXTRA_INSTALL@ @@ -53,7 +53,7 @@ install: $(INSTALL_TARGETS) -@@ -629,6 +641,12 @@ +@@ -635,6 +647,12 @@ @echo "Installing $(LIB_FILE) to $(LIB_INSTALL_DIR)/" @@INSTALL_LIB@ @chmod 555 $(LIB_INSTALL_DIR)/$(LIB_FILE) @@ -66,7 +66,7 @@ @if test "$(TCL_BUILD_EXP_FILE)" != ""; then \ echo "Installing $(TCL_EXP_FILE) to $(LIB_INSTALL_DIR)/"; \ $(INSTALL_DATA) $(TCL_BUILD_EXP_FILE) \ -@@ -636,8 +654,9 @@ +@@ -642,8 +660,9 @@ fi @echo "Installing tclsh as $(BIN_INSTALL_DIR)/tclsh$(VERSION)" @$(INSTALL_PROGRAM) tclsh $(BIN_INSTALL_DIR)/tclsh$(VERSION) @@ -78,7 +78,7 @@ @if test "$(STUB_LIB_FILE)" != "" ; then \ echo "Installing $(STUB_LIB_FILE) to $(LIB_INSTALL_DIR)/"; \ @INSTALL_STUB_LIB@ ; \ -@@ -645,7 +664,8 @@ +@@ -651,7 +670,8 @@ @EXTRA_INSTALL_BINARIES@ install-libraries: libraries @@ -88,7 +88,7 @@ do \ if [ ! -d $$i ] ; then \ echo "Making directory $$i"; \ -@@ -667,11 +687,17 @@ +@@ -673,11 +693,17 @@ chmod +x $(SRC_DIR)/install-sh; \ fi @echo "Installing header files"; @@ -107,9 +107,9 @@ + @ln -sf $(GENERIC_INCLUDE_INSTALL_DIR)/tclDecls.h $(INCLUDE_INSTALL_DIR)/tclDecls.h + @ln -sf $(GENERIC_INCLUDE_INSTALL_DIR)/tclPlatDecls.h $(INCLUDE_INSTALL_DIR)/tclPlatDecls.h @echo "Installing library files to $(SCRIPT_INSTALL_DIR)"; - @for i in $(TOP_DIR)/library/*.tcl $(TOP_DIR)/library/tclIndex $(UNIX_DIR)/tclAppInit.c $(UNIX_DIR)/ldAix; \ - do \ -@@ -720,20 +746,22 @@ + @for i in $(TOP_DIR)/library/*.tcl $(TOP_DIR)/library/tclIndex \ + $(UNIX_DIR)/tclAppInit.c $(UNIX_DIR)/ldAix @DTRACE_SRC@; \ +@@ -727,20 +753,20 @@ else true; \ fi; \ done; @@ -117,22 +117,18 @@ - @for i in $(TOP_DIR)/doc/*.1; do \ - $(UNIX_DIR)/installManPage $(MAN_FLAGS) $$i $(MAN1_INSTALL_DIR); \ - done -- + - @echo "Installing and cross-linking C API (.3) docs"; - @for i in $(TOP_DIR)/doc/*.3; do \ - $(UNIX_DIR)/installManPage $(MAN_FLAGS) $$i $(MAN3_INSTALL_DIR); \ - done -- ++ @echo "Installing C API (.3) docs"; ++ ${BSD_INSTALL_MAN} $(TOP_DIR)/doc/*.3 $(MAN3_INSTALL_DIR)/ + - @echo "Installing and cross-linking command (.n) docs"; - @for i in $(TOP_DIR)/doc/*.n; do \ - $(UNIX_DIR)/installManPage $(MAN_FLAGS) $$i $(MANN_INSTALL_DIR); \ - done -+ @echo "Installing top-level (.1) docs"; -+ ${BSD_INSTALL_MAN} $(TOP_DIR)/doc/*.1 $(MAN1_INSTALL_DIR)/ -+ -+ @echo "Installing C API (.3) docs"; -+ ${BSD_INSTALL_MAN} $(TOP_DIR)/doc/*.3 $(MAN3_INSTALL_DIR)/ -+ + @echo "Installing command (.n) docs"; + ${BSD_INSTALL_MAN} $(TOP_DIR)/doc/*.n $(MANN_INSTALL_DIR)/ + @echo "**********" diff --git a/lang/tcl84/pkg-plist b/lang/tcl84/pkg-plist index 4ff921b8f69d..611463646a25 100644 --- a/lang/tcl84/pkg-plist +++ b/lang/tcl84/pkg-plist @@ -124,8 +124,8 @@ lib/tcl%%TCL_VER%%/tclIndex lib/tcl%%TCL_VER%%/tcltest2.2/pkgIndex.tcl lib/tcl%%TCL_VER%%/tcltest2.2/tcltest.tcl lib/tcl%%TCL_VER%%/word.tcl -%%INSTMAN%%%%DATADIR%%/man.macros -%%INSTMAN%%@dirrm %%DATADIR%% +%%DATADIR%%/man.macros +@dirrm %%DATADIR%% @dirrm lib/tcl%%TCL_VER%%/tcltest2.2 @dirrm lib/tcl%%TCL_VER%%/opt0.4 @dirrm lib/tcl%%TCL_VER%%/msgcat1.3 diff --git a/lang/tcl85/Makefile b/lang/tcl85/Makefile index f8fbe9a7e3c0..ac8ba9c2021b 100644 --- a/lang/tcl85/Makefile +++ b/lang/tcl85/Makefile @@ -7,6 +7,7 @@ PORTNAME= tcl PORTVERSION= 8.5.6 +PORTREVISION= 1 CATEGORIES= lang MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= tcl @@ -31,7 +32,7 @@ PLIST_SUB= TCL_VER=${TCL_VER} SHORT_TCL_VER=${SHORT_TCL_VER} EXTRACT_AFTER_ARGS=|${TAR} -xpf - --exclude compat/ .if !defined(BUILDING_TCL_THREADS) -OPTIONS= TCL85_MAN "Install tcl 8.5 manpages" off \ +OPTIONS= TCL85_MAN "Install tcl 8.5 function manpages" off \ TZDATA "Install tcl timezone data" off .else USE_TCL= ${SHORT_TCL_VER} @@ -41,12 +42,18 @@ THREADS_SUFFIX= -threads .include <bsd.port.pre.mk> +DATADIR= ${PREFIX}/share/${PORTNAME}${TCL_VER} + .if defined(WITH_TZDATA) PLIST_SUB+= TZDATA="" .else PLIST_SUB+= TZDATA="@comment " .endif +.if !defined(NO_INSTALL_MANPAGES) +MAN1= tclsh${TCL_VER}${THREADS_SUFFIX}.1 +.endif + .if defined(BUILDING_TCL_THREADS) . if (${ARCH} == "ia64") BROKEN= does not compile on ia64 @@ -65,16 +72,8 @@ CONFIGURE_ENV+= PTHREAD_LIBS="${PTHREAD_LIBS}" PTHREAD_CFLAGS="${PTHREAD_CFLAGS CONFIGURE_ARGS+= --disable-threads -.if defined(NO_INSTALL_MANPAGES) || !defined(WITH_TCL85_MAN) - -PLIST_SUB+= INSTMAN='@comment ' - -.else - -DATADIR= ${PREFIX}/share/${PORTNAME}${TCL_VER} -PLIST_SUB+= INSTMAN='' -MAN1= tclsh.1 +.if !defined(NO_INSTALL_MANPAGES) && defined(WITH_TCL85_MAN) MAN3= Access.3 AddErrInfo.3 Alloc.3 AllowExc.3 AppInit.3 AssocData.3 \ Async.3 BackgdErr.3 Backslash.3 BoolObj.3 ByteArrObj.3 CallDel.3 \ @@ -701,8 +700,12 @@ LATEST_LINK= tcl85${THREADS_SUFFIX} TCLBASE?= ${PORTSDIR}/${PKGCATEGORY}/${LATEST_LINK} -.if defined(BUILDING_TCL_THREADS) post-patch: + @${REINPLACE_CMD} -e 's|tclsh |tclsh${TCL_VER}${THREADS_SUFFIX} |g' -e 's|Tclsh |Tclsh${TCL_VER}${THREADS_SUFFIX} |g' \ + -e 's|tclsh\\fR|tclsh${TCL_VER}${THREADS_SUFFIX}\\fR|g' -e 's|Tclsh\\fR|Tclsh${TCL_VER}${THREADS_SUFFIX}\\fR|g' \ + -e 's|^.so man.macros|.so ${DATADIR}/man.macros|' \ + ${WRKSRC}/../doc/tclsh.1 +.if defined(BUILDING_TCL_THREADS) @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \ -e 's|$${TCL_TRIM_DOTS}|$${TCL_TRIM_DOTS}${THREADS_SUFFIX}|g' \ -e 's|-ltcl$${TCL_VERSION}|-ltcl$${TCL_VERSION}${THREADS_SUFFIX}|g' \ @@ -740,22 +743,27 @@ do-install: @cd ${WRKSRC} && ${MAKE_ENV} ${MAKE} -f Makefile install-binaries @${MKDIR} ${PREFIX}/lib/tcl${TCL_VER}${THREADS_SUFFIX} @${LN} -s ${PREFIX}/lib/tcl${TCL_VER}/tclConfig${THREADS_SUFFIX}.sh ${PREFIX}/lib/tcl${TCL_VER}${THREADS_SUFFIX}/tclConfig.sh -.else +.endif + post-install: .if defined(WITH_TZDATA) @cd ${WRKSRC} && ${MAKE} -f Makefile install-tzdata ${MAKE_ENV} .endif -.if !defined(NO_INSTALL_MANPAGES) && defined(WITH_TCL85_MAN) ${MKDIR} ${DATADIR} ${INSTALL_DATA} ${WRKSRC}/../doc/man.macros ${DATADIR} +.if !defined(NO_INSTALL_MANPAGES) + ${MKDIR} ${MANPREFIX}/man/man1 + ${INSTALL_MAN} ${WRKSRC}/../doc/tclsh.1 ${MANPREFIX}/man/man1/tclsh${TCL_VER}${THREADS_SUFFIX}.1 +.if !defined(BUILDING_TCL_THREADS) && defined(WITH_TCL85_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_TCL_THREADS) +.endif # !defined(BUILDING_TCL_THREADS) && defined(WITH_TCL85_MAN) + +.endif # !defined(NO_INSTALL_MANPAGES) regression-test: build cd ${WRKSRC} && LC_ALL=C ${MAKE} test diff --git a/lang/tcl85/files/patch-unix-Makefile.in b/lang/tcl85/files/patch-unix-Makefile.in index 333badbf8c00..66dd98728f1b 100644 --- a/lang/tcl85/files/patch-unix-Makefile.in +++ b/lang/tcl85/files/patch-unix-Makefile.in @@ -1,5 +1,5 @@ ---- Makefile.in.orig 2008-03-28 19:41:53.000000000 +0100 -+++ Makefile.in 2008-04-02 11:49:46.000000000 +0200 +--- Makefile.in.orig 2008-12-22 18:45:06.000000000 +0100 ++++ Makefile.in 2009-02-26 11:53:11.121953378 +0100 @@ -55,6 +55,8 @@ # Directory in which to install the include file tcl.h: @@ -9,7 +9,7 @@ # Path to the private tcl header dir: PRIVATE_INCLUDE_DIR = @PRIVATE_INCLUDE_DIR@ -@@ -98,7 +100,7 @@ +@@ -101,7 +103,7 @@ #CFLAGS = $(CFLAGS_DEBUG) #CFLAGS = $(CFLAGS_OPTIMIZE) #CFLAGS = $(CFLAGS_DEBUG) $(CFLAGS_OPTIMIZE) @@ -18,9 +18,12 @@ # Flags to pass to the linker LDFLAGS_DEBUG = @LDFLAGS_DEBUG@ -@@ -538,7 +540,8 @@ +@@ -579,9 +581,10 @@ + SRCS = $(GENERIC_SRCS) $(TOMMATH_SRCS) $(UNIX_SRCS) $(NOTIFY_SRCS) \ + $(OO_SRCS) $(STUB_SRCS) @PLAT_SRCS@ @ZLIB_SRCS@ - all: binaries libraries doc +-all: binaries libraries doc packages ++all: binaries libraries doc -binaries: ${LIB_FILE} $(STUB_LIB_FILE) $(TCL_BUILD_EXP_FILE) tclsh +binaries: ${LIB_FILE} $(STUB_LIB_FILE) $(TCL_BUILD_EXP_FILE) \ @@ -28,7 +31,7 @@ libraries: -@@ -549,6 +552,15 @@ +@@ -592,6 +595,15 @@ ${LIB_FILE}: ${OBJS} ${STUB_LIB_FILE} rm -f $@ @MAKE_LIB@ @@ -44,16 +47,16 @@ ${STUB_LIB_FILE}: ${STUB_LIB_OBJS} rm -f $@ -@@ -697,7 +709,7 @@ +@@ -726,7 +738,7 @@ dltest.marker: ${STUB_LIB_FILE} cd dltest ; $(MAKE) --INSTALL_TARGETS = install-binaries install-libraries install-doc @EXTRA_INSTALL@ +-INSTALL_TARGETS = install-binaries install-libraries install-doc install-packages @EXTRA_INSTALL@ +INSTALL_TARGETS = install-binaries install-libraries @EXTRA_INSTALL@ install: $(INSTALL_TARGETS) -@@ -726,6 +738,13 @@ +@@ -755,6 +767,13 @@ @echo "Installing $(LIB_FILE) to $(LIB_INSTALL_DIR)/" @@INSTALL_LIB@ @chmod 555 "$(LIB_INSTALL_DIR)"/$(LIB_FILE) @@ -67,7 +70,7 @@ @if test "$(TCL_BUILD_EXP_FILE)" != ""; then \ echo "Installing $(TCL_EXP_FILE) to $(LIB_INSTALL_DIR)/"; \ $(INSTALL_DATA) $(TCL_BUILD_EXP_FILE) \ -@@ -733,8 +752,9 @@ +@@ -762,8 +781,9 @@ fi @echo "Installing tclsh as $(BIN_INSTALL_DIR)/tclsh$(VERSION)" @$(INSTALL_PROGRAM) tclsh "$(BIN_INSTALL_DIR)"/tclsh$(VERSION) @@ -79,7 +82,7 @@ @if test "$(STUB_LIB_FILE)" != "" ; then \ echo "Installing $(STUB_LIB_FILE) to $(LIB_INSTALL_DIR)/"; \ @INSTALL_STUB_LIB@ ; \ -@@ -742,7 +762,8 @@ +@@ -771,7 +791,8 @@ @EXTRA_INSTALL_BINARIES@ install-libraries: libraries $(INSTALL_TZDATA) install-msgs @@ -89,36 +92,42 @@ do \ if [ ! -d "$$i" ] ; then \ echo "Making directory $$i"; \ -@@ -764,13 +785,17 @@ - chmod +x $(SRC_DIR)/../unix/install-sh; \ +@@ -793,14 +814,21 @@ + chmod +x $(UNIX_DIR)/install-sh; \ fi @echo "Installing header files"; - @for i in $(GENERIC_DIR)/tcl.h $(GENERIC_DIR)/tclDecls.h \ +- $(GENERIC_DIR)/tclOO.h $(GENERIC_DIR)/tclOODecls.h \ - $(GENERIC_DIR)/tclPlatDecls.h \ - $(GENERIC_DIR)/tclTomMath.h \ - $(GENERIC_DIR)/tclTomMathDecls.h ; \ + @for i in $(GENERIC_DIR)/*.h ; \ -+ do \ -+ $(INSTALL_DATA) $$i "$(GENERIC_INCLUDE_INSTALL_DIR)"; \ -+ done; -+ @for i in $(UNIX_DIR)/*.h ; \ do \ - $(INSTALL_DATA) $$i "$(INCLUDE_INSTALL_DIR)"; \ -+ $(INSTALL_DATA) $$i "$(UNIX_INCLUDE_INSTALL_DIR)"; \ ++ $(INSTALL_DATA) $$i "$(GENERIC_INCLUDE_INSTALL_DIR)"; \ done; ++ @for i in $(UNIX_DIR)/*.h ; \ ++ do \ ++ $(INSTALL_DATA) $$i "$(UNIX_INCLUDE_INSTALL_DIR)"; \ ++ done; + @ln -sf "$(GENERIC_INCLUDE_INSTALL_DIR)"/tcl.h "$(INCLUDE_INSTALL_DIR)"/tcl.h + @ln -sf "$(GENERIC_INCLUDE_INSTALL_DIR)"/tclDecls.h "$(INCLUDE_INSTALL_DIR)"/tclDecls.h + @ln -sf "$(GENERIC_INCLUDE_INSTALL_DIR)"/tclPlatDecls.h "$(INCLUDE_INSTALL_DIR)"/tclPlatDecls.h ++ @ln -sf "$(GENERIC_INCLUDE_INSTALL_DIR)"/tclOO.h "$(INCLUDE_INSTALL_DIR)"/tclOO.h ++ @ln -sf "$(GENERIC_INCLUDE_INSTALL_DIR)"/tclOODecls.h "$(INCLUDE_INSTALL_DIR)"/tclOODecls.h ++ @ln -sf "$(GENERIC_INCLUDE_INSTALL_DIR)"/tclTomMath.h "$(INCLUDE_INSTALL_DIR)"/tclTomMath.h ++ @ln -sf "$(GENERIC_INCLUDE_INSTALL_DIR)"/tclTomMathDecls.h "$(INCLUDE_INSTALL_DIR)"/tclTomMathDecls.h @echo "Installing library files to $(SCRIPT_INSTALL_DIR)"; @for i in $(TOP_DIR)/library/*.tcl $(TOP_DIR)/library/tclIndex \ $(UNIX_DIR)/tclAppInit.c $(UNIX_DIR)/ldAix @DTRACE_SRC@; \ -@@ -838,18 +863,27 @@ +@@ -866,20 +894,25 @@ + 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/lang/tcl85/pkg-plist b/lang/tcl85/pkg-plist index 467e0aaf0c9b..82e1c7ec5379 100644 --- a/lang/tcl85/pkg-plist +++ b/lang/tcl85/pkg-plist @@ -822,8 +822,8 @@ lib/tcl8/8.4/platform/shell-1.1.4.tm lib/tcl8/8.4/platform-1.0.3.tm lib/tcl8/8.5/msgcat-1.4.2.tm lib/tcl8/8.5/tcltest-2.3.0.tm -%%INSTMAN%%%%DATADIR%%/man.macros -%%INSTMAN%%@dirrm %%DATADIR%% +%%DATADIR%%/man.macros +@dirrm %%DATADIR%% %%TZDATA%%@dirrm lib/tcl%%TCL_VER%%/tzdata/US %%TZDATA%%@dirrm lib/tcl%%TCL_VER%%/tzdata/SystemV %%TZDATA%%@dirrm lib/tcl%%TCL_VER%%/tzdata/Pacific diff --git a/lang/tcl86/Makefile b/lang/tcl86/Makefile index b20f698fad26..f43c378029fb 100644 --- a/lang/tcl86/Makefile +++ b/lang/tcl86/Makefile @@ -7,6 +7,7 @@ PORTNAME= tcl PORTVERSION= 8.6.b.1 +PORTREVISION= 1 CATEGORIES= lang MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= tcl @@ -31,7 +32,7 @@ PLIST_SUB= TCL_VER=${TCL_VER} SHORT_TCL_VER=${SHORT_TCL_VER} EXTRACT_AFTER_ARGS=|${TAR} -xpf - --exclude compat/ .if !defined(BUILDING_TCL_THREADS) -OPTIONS= TCL86_MAN "Install tcl 8.6 manpages" off \ +OPTIONS= TCL86_MAN "Install tcl 8.6 function manpages" off \ TZDATA "Install tcl timezone data" off .else USE_TCL= ${SHORT_TCL_VER} @@ -41,12 +42,18 @@ THREADS_SUFFIX= -threads .include <bsd.port.pre.mk> +DATADIR= ${PREFIX}/share/${PORTNAME}${TCL_VER} + .if defined(WITH_TZDATA) PLIST_SUB+= TZDATA="" .else PLIST_SUB+= TZDATA="@comment " .endif +.if !defined(NO_INSTALL_MANPAGES) +MAN1= tclsh${TCL_VER}${THREADS_SUFFIX}.1 +.endif + .if defined(BUILDING_TCL_THREADS) . if (${ARCH} == "ia64") BROKEN= does not compile on ia64 @@ -65,16 +72,7 @@ CONFIGURE_ENV+= PTHREAD_LIBS="${PTHREAD_LIBS}" PTHREAD_CFLAGS="${PTHREAD_CFLAGS CONFIGURE_ARGS+= --disable-threads -.if defined(NO_INSTALL_MANPAGES) || !defined(WITH_TCL86_MAN) - -PLIST_SUB+= INSTMAN='@comment ' - -.else - -DATADIR= ${PREFIX}/share/${PORTNAME}${TCL_VER} -PLIST_SUB+= INSTMAN='' - -MAN1= tclsh.1 +.if !defined(NO_INSTALL_MANPAGES) && defined(WITH_TCL84_DOC) MAN3= Access.3 AddErrInfo.3 Alloc.3 AllowExc.3 AppInit.3 AssocData.3 \ Async.3 BackgdErr.3 Backslash.3 BoolObj.3 ByteArrObj.3 CallDel.3 \ @@ -703,8 +701,12 @@ LATEST_LINK= tcl86${THREADS_SUFFIX} TCLBASE?= ${PORTSDIR}/${PKGCATEGORY}/${LATEST_LINK} -.if defined(BUILDING_TCL_THREADS) post-patch: + @${REINPLACE_CMD} -e 's|tclsh |tclsh${TCL_VER}${THREADS_SUFFIX} |g' -e 's|Tclsh |Tclsh${TCL_VER}${THREADS_SUFFIX} |g' \ + -e 's|tclsh\\fR|tclsh${TCL_VER}${THREADS_SUFFIX}\\fR|g' -e 's|Tclsh\\fR|Tclsh${TCL_VER}${THREADS_SUFFIX}\\fR|g' \ + -e 's|^.so man.macros|.so ${DATADIR}/man.macros|' \ + ${WRKSRC}/../doc/tclsh.1 +.if defined(BUILDING_TCL_THREADS) @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \ -e 's|$${TCL_TRIM_DOTS}|$${TCL_TRIM_DOTS}${THREADS_SUFFIX}|g' \ -e 's|-ltcl$${TCL_VERSION}|-ltcl$${TCL_VERSION}${THREADS_SUFFIX}|g' \ @@ -742,22 +744,26 @@ do-install: @cd ${WRKSRC} && ${MAKE_ENV} ${MAKE} -f Makefile install-binaries @${MKDIR} ${PREFIX}/lib/tcl${TCL_VER}${THREADS_SUFFIX} @${LN} -s ${PREFIX}/lib/tcl${TCL_VER}/tclConfig${THREADS_SUFFIX}.sh ${PREFIX}/lib/tcl${TCL_VER}${THREADS_SUFFIX}/tclConfig.sh -.else +.endif + post-install: .if defined(WITH_TZDATA) @cd ${WRKSRC} && ${MAKE} -f Makefile install-tzdata ${MAKE_ENV} .endif -.if !defined(NO_INSTALL_MANPAGES) && defined(WITH_TCL86_MAN) ${MKDIR} ${DATADIR} ${INSTALL_DATA} ${WRKSRC}/../doc/man.macros ${DATADIR} +.if !defined(NO_INSTALL_MANPAGES) + ${MKDIR} ${MANPREFIX}/man/man1 + ${INSTALL_MAN} ${WRKSRC}/../doc/tclsh.1 ${MANPREFIX}/man/man1/tclsh${TCL_VER}${THREADS_SUFFIX}.1 +.if !defined(BUILDING_TCL_THREADS) && defined(WITH_TCL86_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_TCL_THREADS) && defined(WITH_TCL86_MAN) -.endif # !defined(BUILDING_TCL_THREADS) +.endif # !defined(NO_INSTALL_MANPAGES) regression-test: build cd ${WRKSRC} && LC_ALL=C ${MAKE} test diff --git a/lang/tcl86/pkg-plist b/lang/tcl86/pkg-plist index e679e0de86fe..db44c63bad5b 100644 --- a/lang/tcl86/pkg-plist +++ b/lang/tcl86/pkg-plist @@ -832,8 +832,8 @@ lib/tcl8/8.4/platform/shell-1.1.4.tm lib/tcl8/8.4/platform-1.0.3.tm lib/tcl8/8.5/msgcat-1.4.2.tm lib/tcl8/8.5/tcltest-2.3.0.tm -%%INSTMAN%%%%DATADIR%%/man.macros -%%INSTMAN%%@dirrm %%DATADIR%% +%%DATADIR%%/man.macros +@dirrm %%DATADIR%% %%TZDATA%%@dirrm lib/tcl%%TCL_VER%%/tzdata/US %%TZDATA%%@dirrm lib/tcl%%TCL_VER%%/tzdata/SystemV %%TZDATA%%@dirrm lib/tcl%%TCL_VER%%/tzdata/Pacific diff --git a/x11-toolkits/tk84/Makefile b/x11-toolkits/tk84/Makefile index 31259fdabf29..92e1a7bac113 100644 --- a/x11-toolkits/tk84/Makefile +++ b/x11-toolkits/tk84/Makefile @@ -7,7 +7,7 @@ PORTNAME= tk PORTVERSION= 8.4.19 -PORTREVISION= 1 +PORTREVISION= 2 PORTEPOCH= 2 CATEGORIES= x11-toolkits tk MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} @@ -38,7 +38,7 @@ SUB_FILES= pkgIndex.tcl .if !defined(BUILDING_TK_THREADS) USE_TCL= 84 -OPTIONS= TK84_MAN "Install tk 8.4 manpages" on +OPTIONS= TK84_DOC "Install tk 8.4 function manpages" off .else USE_TK= ${SHORT_TK_VER} PLIST= ${PKGDIR}/pkg-plist.threads @@ -50,6 +50,12 @@ SUB_LIST+= THREADS_SUFFIX="${THREADS_SUFFIX}" .include <bsd.port.pre.mk> +DATADIR= ${PREFIX}/share/${PORTNAME}${TCL_VER} + +.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}" \ @@ -62,16 +68,9 @@ CONFIGURE_ENV+= ac_cv_path_tclsh="${TCLSH}" SUB_LIST+= TK_PROVIDE="" -.if defined(NO_INSTALL_MANPAGES) || !defined(WITH_TK84_MAN) - -PLIST_SUB+= INSTMAN='@comment ' -.else - -DATADIR= ${PREFIX}/share/${PORTNAME}${TCL_VER} -PLIST_SUB+= INSTMAN='' +.if !defined(NO_INSTALL_MANPAGES) && defined(WITH_TK84_DOC) -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 \ @@ -385,6 +384,10 @@ post-patch: @(cd ${WRKSRC}/..; ${PATCH} -p0 < ${PATCHDIR}/extra-lastevent-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' \ @@ -416,15 +419,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_TK84_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_TK84_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} install-doc ${MAKE_ENV} -.endif +.endif # !defined(BUILDING_TK_THREADS) && defined(WITH_TK84_MAN) + +.endif # !defined(NO_INSTALL_MANPAGES) regression-test: build cd ${WRKSRC}; ${MAKE} test diff --git a/x11-toolkits/tk84/files/patch-ab b/x11-toolkits/tk84/files/patch-ab index ea781cd6c152..811954ede3dd 100644 --- a/x11-toolkits/tk84/files/patch-ab +++ b/x11-toolkits/tk84/files/patch-ab @@ -1,5 +1,5 @@ ---- Makefile.in.orig Thu Oct 19 19:27:34 2006 -+++ Makefile.in Mon Mar 12 18:18:40 2007 +--- Makefile.in.orig 2008-04-17 17:14:08.000000000 +0200 ++++ Makefile.in 2009-02-26 12:06:12.362017966 +0100 @@ -64,6 +64,8 @@ # Directory in which to install the include file tk.h: @@ -18,6 +18,15 @@ # The directory containing the Tcl library archive file appropriate # for this version of Tk: +@@ -107,7 +109,7 @@ + TK_DBGX = @TK_DBGX@ + + # Flag, 1: we're building a shared lib, 0 we're not +-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@ @@ -130,7 +132,7 @@ #CFLAGS = $(CFLAGS_DEBUG) #CFLAGS = $(CFLAGS_OPTIMIZE) @@ -36,7 +45,7 @@ # Additional search flags needed to find the various shared libraries # at run-time. The first symbol is for use when creating a binary -@@ -477,6 +479,8 @@ +@@ -478,6 +480,8 @@ default.h ks_names.h tkPatch.h tk.h tkButton.h tkCanvas.h tkInt.h \ tkPort.h tkScrollbar.h tkText.h @@ -45,7 +54,7 @@ DEMOPROGS = browse hello ixset rmt rolodex square tcolor timer widget all: binaries libraries doc -@@ -496,6 +500,12 @@ +@@ -497,6 +501,12 @@ ${LIB_FILE}: ${OBJS} ${STUB_LIB_FILE} @LIB_RSRC_FILE@ rm -f $@ @MAKE_LIB@ @@ -58,7 +67,7 @@ ${STUB_LIB_FILE}: ${STUB_LIB_OBJS} rm -f $@ -@@ -601,7 +611,7 @@ +@@ -602,7 +612,7 @@ gdb ./wish --command=gdb.run rm gdb.run @@ -67,7 +76,7 @@ install: $(INSTALL_TARGETS) -@@ -614,7 +624,8 @@ +@@ -615,7 +625,8 @@ # some ranlibs write to current directory, and this might not always be # possible (e.g. if installing as root). @@ -77,7 +86,7 @@ @for i in $(LIB_INSTALL_DIR) $(BIN_INSTALL_DIR) $(PKG_INSTALL_DIR); \ do \ if [ ! -d $$i ] ; then \ -@@ -645,10 +656,15 @@ +@@ -646,10 +657,15 @@ $(INSTALL_DATA) $(TK_BUILD_EXP_FILE) \ $(LIB_INSTALL_DIR)/$(TK_EXP_FILE); \ fi @@ -95,7 +104,7 @@ @if test "$(STUB_LIB_FILE)" != "" ; then \ echo "Installing $(STUB_LIB_FILE) to $(LIB_INSTALL_DIR)/"; \ @INSTALL_STUB_LIB@ ; \ -@@ -659,6 +675,7 @@ +@@ -660,6 +676,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} \ @@ -103,7 +112,7 @@ $(SCRIPT_INSTALL_DIR) $(SCRIPT_INSTALL_DIR)/images \ $(SCRIPT_INSTALL_DIR)/msgs; \ do \ -@@ -673,11 +690,14 @@ +@@ -674,11 +691,14 @@ chmod +x $(SRC_DIR)/install-sh; \ fi @echo "Installing header files"; @@ -122,7 +131,7 @@ @list='$(@TK_WINDOWINGSYSTEM@_XLIB_HDRS)'; for i in $$list ; \ do \ $(INSTALL_DATA) $$i $(INCLUDE_INSTALL_DIR)/X11; \ -@@ -748,20 +768,13 @@ +@@ -749,20 +769,10 @@ else true; \ fi; \ done; @@ -135,13 +144,11 @@ - @for i in $(TOP_DIR)/doc/*.3; do \ - $(UNIX_DIR)/installManPage $(MAN_FLAGS) $$i $(MAN3_INSTALL_DIR); \ - done - +- - @echo "Installing and cross-linking command (.n) docs"; - @for i in $(TOP_DIR)/doc/*.n; do \ - $(UNIX_DIR)/installManPage $(MAN_FLAGS) $$i $(MANN_INSTALL_DIR); \ - done -+ @echo "Installing top-level (.1) docs"; -+ ${BSD_INSTALL_MAN} $(TOP_DIR)/doc/*.1 $(MAN1_INSTALL_DIR) + @echo "Installing C API (.3) docs"; + ${BSD_INSTALL_MAN} $(TOP_DIR)/doc/*.3 $(MAN3_INSTALL_DIR) + @echo "Installing command (.n) docs"; diff --git a/x11-toolkits/tk84/pkg-plist b/x11-toolkits/tk84/pkg-plist index 325f2caca5de..09c11b9a4bab 100644 --- a/x11-toolkits/tk84/pkg-plist +++ b/x11-toolkits/tk84/pkg-plist @@ -159,8 +159,8 @@ lib/tk%%TK_VER%%/tkConfig.sh lib/tk%%TK_VER%%/tkfbox.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%%/demos/images @dirrm lib/tk%%TK_VER%%/demos @dirrm lib/tk%%TK_VER%%/images 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 diff --git a/x11-toolkits/tk86/Makefile b/x11-toolkits/tk86/Makefile index 0bfec0d0b2ce..967a8e456d14 100644 --- a/x11-toolkits/tk86/Makefile +++ b/x11-toolkits/tk86/Makefile @@ -7,6 +7,7 @@ PORTNAME= tk PORTVERSION= 8.6.b.1 +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= TK86_MAN "Install tk 8.6 manpages" off \ +OPTIONS= TK86_MAN "Install tk 8.6 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_TK86_MAN) - -PLIST_SUB+= INSTMAN='@comment ' - -.else - -DATADIR= ${PREFIX}/share/${PORTNAME}${TCL_VER} -PLIST_SUB+= INSTMAN='' +.if !defined(NO_INSTALL_MANPAGES) && defined(WITH_TK86_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 CrtConsoleChan.3 CrtCmHdlr.3 CrtErrHdlr.3 CrtGenHdlr.3 \ @@ -399,7 +398,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_TK86_MAN) .endif # defined(BUILDING_TK_THREADS) @@ -411,6 +410,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' \ @@ -443,15 +446,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_TK86_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/tk86/files/patch-unix::Makefile.in b/x11-toolkits/tk86/files/patch-unix::Makefile.in index e2cc060d8712..26155a62cd0b 100644 --- a/x11-toolkits/tk86/files/patch-unix::Makefile.in +++ b/x11-toolkits/tk86/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-21 17:34:25.000000000 +0100 ++++ Makefile.in 2009-02-26 12:21:11.480095049 +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@ @@ -45,7 +45,7 @@ # Additional search flags needed to find the various shared libraries # at run-time. The first symbol is for use when creating a binary -@@ -550,6 +552,8 @@ +@@ -554,6 +556,8 @@ $(GENERIC_DIR)/tkIntPlatDecls.h $(GENERIC_DIR)/tkPort.h \ $(TTK_HDRS) $(@TK_WINDOWINGSYSTEM@_PRIVATE_HDRS) @@ -54,7 +54,7 @@ DEMOPROGS = browse hello ixset rmt rolodex square tcolor timer widget SHELL_ENV = \ -@@ -575,6 +579,12 @@ +@@ -579,6 +583,12 @@ ${LIB_FILE}: ${OBJS} ${STUB_LIB_FILE} @LIB_RSRC_FILE@ rm -f $@ @MAKE_LIB@ @@ -67,7 +67,7 @@ ${STUB_LIB_FILE}: ${STUB_LIB_OBJS} rm -f $@ -@@ -674,7 +684,7 @@ +@@ -678,7 +688,7 @@ gdb ./wish --command=gdb.run rm gdb.run @@ -76,7 +76,7 @@ install: $(INSTALL_TARGETS) -@@ -687,7 +697,8 @@ +@@ -691,7 +701,8 @@ # some ranlibs write to current directory, and this might not always be # possible (e.g. if installing as root). @@ -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 @@ +@@ -723,10 +734,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 @@ +@@ -737,6 +753,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 @@ +@@ -751,10 +768,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 @@ +@@ -832,19 +853,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/tk86/pkg-plist b/x11-toolkits/tk86/pkg-plist index 8ed069120bdd..64b58b4782f7 100644 --- a/x11-toolkits/tk86/pkg-plist +++ b/x11-toolkits/tk86/pkg-plist @@ -204,8 +204,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 |