Steven Mestdagh wrote:
please use MODULES=x11/tk and corresponding variables appropriately.
Slightly modified port attached, thanks
Giovanni
Index: Makefile
===================================================================
RCS file: /cvs/ports/sysutils/tkdvd/Makefile,v
retrieving revision 1.5
diff -u -p -r1.5 Makefile
--- Makefile 13 Nov 2007 20:05:00 -0000 1.5
+++ Makefile 10 Nov 2008 19:20:10 -0000
@@ -3,7 +3,7 @@
COMMENT= GUI to dvd+rw-tools and cdrecord
DISTNAME= tkdvd-4.0.6
-PKGNAME= ${DISTNAME}p0
+PKGNAME= ${DISTNAME}p1
CATEGORIES= sysutils
HOMEPAGE= http://regis.damongeot.free.fr/tkdvd/
@@ -20,16 +20,15 @@ MASTER_SITES= ${HOMEPAGE:=dl/}
WRKDIST= ${WRKDIR}/tkdvd
-BUILD_DEPENDS= :tcl-8.4*:lang/tcl/8.4
RUN_DEPENDS= ::sysutils/cdrtools \
- ::sysutils/dvd+rw-tools \
- :tk-8.4*:x11/tk/8.4
+ ::sysutils/dvd+rw-tools
+
+MODULES= x11/tk
NO_REGRESS= Yes
pre-build:
- @perl -pi -e 's,!!LOCALBASE!!,${LOCALBASE},' \
- ${WRKSRC}/{install.tcl,TkDVD.sh}
+ ${SUBST_CMD} ${WRKSRC}/{install.tcl,TkDVD.sh}
do-build:
cd ${WRKDIST} && ./install.tcl
Index: patches/patch-TkDVD_sh
===================================================================
RCS file: /cvs/ports/sysutils/tkdvd/patches/patch-TkDVD_sh,v
retrieving revision 1.2
diff -u -p -r1.2 patch-TkDVD_sh
--- patches/patch-TkDVD_sh 24 Dec 2006 06:46:04 -0000 1.2
+++ patches/patch-TkDVD_sh 10 Nov 2008 19:20:10 -0000
@@ -1,13 +1,13 @@
$OpenBSD: patch-TkDVD_sh,v 1.2 2006/12/24 06:46:04 steven Exp $
---- TkDVD.sh.orig Sun Nov 12 13:25:23 2006
-+++ TkDVD.sh Mon Dec 18 19:54:04 2006
+--- TkDVD.sh.orig Sat Mar 10 18:10:04 2007
++++ TkDVD.sh Mon Nov 10 19:49:55 2008
@@ -1,6 +1,6 @@
#!/bin/sh
# the next line restarts using wish \
-exec wish "$0" "$@"
-+exec !!LOCALBASE!!/bin/wish8.4 "$0" "$@"
++exec ${MODTK_BIN} "$0" "$@"
- # Copyright 2003 Regis Damongeot
+ # Copyright 2003,2007 Regis Damongeot
@@ -25,7 +25,7 @@ wm geometry . 700x550
wm protocol . WM_DELETE_WINDOW { save_options; destroy . }
Index: patches/patch-install_tcl
===================================================================
RCS file: /cvs/ports/sysutils/tkdvd/patches/patch-install_tcl,v
retrieving revision 1.2
diff -u -p -r1.2 patch-install_tcl
--- patches/patch-install_tcl 24 Dec 2006 06:46:04 -0000 1.2
+++ patches/patch-install_tcl 10 Nov 2008 19:20:10 -0000
@@ -1,11 +1,11 @@
$OpenBSD: patch-install_tcl,v 1.2 2006/12/24 06:46:04 steven Exp $
--- install.tcl.orig Thu Nov 3 20:09:57 2005
-+++ install.tcl Mon Dec 18 19:40:31 2006
++++ install.tcl Mon Nov 10 19:49:55 2008
@@ -1,6 +1,6 @@
#!/bin/sh
# the next line restarts using wish \
-exec tclsh "$0" "$@"
-+exec !!LOCALBASE!!/bin/tclsh8.4 "$0" "$@"
++exec ${MODTCL_BIN} "$0" "$@"
# Copyright 2003 Regis Damongeot
Index: patches/patch-src-other_procedures_tcl
===================================================================
RCS file: /cvs/ports/sysutils/tkdvd/patches/patch-src-other_procedures_tcl,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 patch-src-other_procedures_tcl
--- patches/patch-src-other_procedures_tcl 23 Dec 2006 10:26:57 -0000
1.1.1.1
+++ patches/patch-src-other_procedures_tcl 10 Nov 2008 19:20:10 -0000
@@ -1,7 +1,7 @@
$OpenBSD: patch-src-other_procedures_tcl,v 1.1.1.1 2006/12/23 10:26:57 jasper
Exp $
---- src/other_procedures.tcl.orig Sat Aug 5 20:54:23 2006
-+++ src/other_procedures.tcl Mon Dec 4 17:27:40 2006
-@@ -180,13 +180,13 @@ proc launch {burn_type burn_opt} {
+--- src/other_procedures.tcl.orig Fri Feb 2 13:25:32 2007
++++ src/other_procedures.tcl Mon Nov 10 19:49:54 2008
+@@ -177,13 +177,13 @@ proc launch {burn_type burn_opt} {
}
} elseif { $burn_type == "create_iso" } {
# burn_opt contains destination file for ISO image