- better conversion to tk.port.mk (use MODTCL_TCLSH_ADJ and MODTK_BIN).
- use ${LOCALBASE} where appropriate - bump
This commit is contained in:
parent
bb2a1c72c7
commit
fdfd363548
@ -1,8 +1,8 @@
|
|||||||
# $OpenBSD: Makefile,v 1.25 2009/03/13 13:13:44 sthen Exp $
|
# $OpenBSD: Makefile,v 1.26 2009/03/13 13:36:57 sthen Exp $
|
||||||
|
|
||||||
COMMENT= graphical frontend to CVS
|
COMMENT= graphical frontend to CVS
|
||||||
DISTNAME= tkcvs-6.0
|
DISTNAME= tkcvs-6.0
|
||||||
PKGNAME= ${DISTNAME}p1
|
PKGNAME= ${DISTNAME}p2
|
||||||
CATEGORIES= devel
|
CATEGORIES= devel
|
||||||
|
|
||||||
MAINTAINER= Todd T. Fries <todd@openbsd.org>
|
MAINTAINER= Todd T. Fries <todd@openbsd.org>
|
||||||
@ -21,6 +21,10 @@ BUILD_DEPENDS= ${RUN_DEPENDS}
|
|||||||
NO_BUILD= Yes
|
NO_BUILD= Yes
|
||||||
NO_REGRESS= Yes
|
NO_REGRESS= Yes
|
||||||
|
|
||||||
|
pre-configure:
|
||||||
|
@${MODTCL_TCLSH_ADJ} ${WRKSRC}/tkcvs/cvscheck.blank
|
||||||
|
@${SUBST_CMD} ${WRKSRC}/tkcvs/doinstall
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
cd $(WRKSRC)/tkcvs; ./doinstall
|
cd $(WRKSRC)/tkcvs; ./doinstall
|
||||||
|
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
$OpenBSD: patch-tkcvs_cvscheck_blank,v 1.1 2007/10/26 20:44:35 ajacoutot Exp $
|
|
||||||
--- tkcvs/cvscheck.blank.orig Mon Nov 20 07:08:35 1995
|
|
||||||
+++ tkcvs/cvscheck.blank Fri Oct 26 22:41:27 2007
|
|
||||||
@@ -1,6 +1,6 @@
|
|
||||||
#!/bin/sh
|
|
||||||
# \
|
|
||||||
- exec tclsh $0 ${1+"$@"}
|
|
||||||
+ exec tclsh8.4 $0 ${1+"$@"}
|
|
||||||
|
|
||||||
# $Id: patch-tkcvs_cvscheck_blank,v 1.1 2007/10/26 20:44:35 ajacoutot Exp $
|
|
||||||
#
|
|
@ -1,20 +1,23 @@
|
|||||||
$OpenBSD: patch-tkcvs_doinstall,v 1.1 2007/10/26 20:44:35 ajacoutot Exp $
|
$OpenBSD: patch-tkcvs_doinstall,v 1.2 2009/03/13 13:36:57 sthen Exp $
|
||||||
--- tkcvs/doinstall.orig Tue Jan 9 22:17:52 1996
|
--- tkcvs/doinstall.orig Tue Jan 9 21:17:52 1996
|
||||||
+++ tkcvs/doinstall Fri Oct 26 22:41:26 2007
|
+++ tkcvs/doinstall Fri Mar 13 13:28:27 2009
|
||||||
@@ -2,10 +2,10 @@
|
@@ -2,39 +2,32 @@
|
||||||
#
|
#
|
||||||
# $Id: patch-tkcvs_doinstall,v 1.1 2007/10/26 20:44:35 ajacoutot Exp $
|
# $Id: patch-tkcvs_doinstall,v 1.2 2009/03/13 13:36:57 sthen Exp $
|
||||||
#
|
#
|
||||||
-
|
-
|
||||||
+PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
|
+PATH=/bin:/usr/bin:/sbin:/usr/sbin:${LOCALBASE}/bin
|
||||||
# Some rational and reasonable defaults.
|
# Some rational and reasonable defaults.
|
||||||
|
|
||||||
-INSTALLDIR=/usr/local/lib
|
-INSTALLDIR=/usr/local/lib
|
||||||
+INSTALLDIR=/usr/local/libdata
|
-BINDIR=/usr/local/bin
|
||||||
BINDIR=/usr/local/bin
|
-MANDIR=/usr/local/man/mann
|
||||||
MANDIR=/usr/local/man/mann
|
+INSTALLDIR=${LOCALBASE}/libdata
|
||||||
|
+BINDIR=${LOCALBASE}/bin
|
||||||
|
+MANDIR=${LOCALBASE}/man/mann
|
||||||
|
|
||||||
|
INSTALL_PROG=./install-sh
|
||||||
|
|
||||||
@@ -14,22 +14,32 @@ INSTALL_PROG=./install-sh
|
|
||||||
# This must be an X based editor -- do NOT use vi except via an xterm
|
# This must be an X based editor -- do NOT use vi except via an xterm
|
||||||
# or shelltool.
|
# or shelltool.
|
||||||
|
|
||||||
@ -25,20 +28,10 @@ $OpenBSD: patch-tkcvs_doinstall,v 1.1 2007/10/26 20:44:35 ajacoutot Exp $
|
|||||||
|
|
||||||
-WISH=`which wish4.0`
|
-WISH=`which wish4.0`
|
||||||
-if [ ! -f $WISH ]; then
|
-if [ ! -f $WISH ]; then
|
||||||
+WISH=`which wish8.4`
|
- WISH=`which wish4.1`
|
||||||
+if [ ! -f ${WISH} ]
|
-fi
|
||||||
+then
|
|
||||||
+ WISH=`which wish4.2`
|
|
||||||
+fi
|
|
||||||
+if [ ! -f ${WISH} ]
|
|
||||||
+then
|
|
||||||
WISH=`which wish4.1`
|
|
||||||
fi
|
|
||||||
-if [ ! -f $WISH ]; then
|
-if [ ! -f $WISH ]; then
|
||||||
+if [ ! -f ${WISH} ]
|
+WISH=${MODTK_BIN}
|
||||||
+then
|
|
||||||
+ WISH=`which wish4.0`
|
|
||||||
+fi
|
|
||||||
+if [ ! -f ${WISH} ]
|
+if [ ! -f ${WISH} ]
|
||||||
+then
|
+then
|
||||||
echo "I cant find a Tk interpreter on your system"
|
echo "I cant find a Tk interpreter on your system"
|
||||||
@ -48,11 +41,16 @@ $OpenBSD: patch-tkcvs_doinstall,v 1.1 2007/10/26 20:44:35 ajacoutot Exp $
|
|||||||
# Find where the global bitmaps are.
|
# Find where the global bitmaps are.
|
||||||
|
|
||||||
-for GDIR in /usr/include/X11/bitmaps /usr/openwin/include/X11/bitmaps /usr/X11/include/bitmaps /usr/include/bitmaps /usr/local/include/bitmaps
|
-for GDIR in /usr/include/X11/bitmaps /usr/openwin/include/X11/bitmaps /usr/X11/include/bitmaps /usr/include/bitmaps /usr/local/include/bitmaps
|
||||||
+for GDIR in /usr/include/X11/bitmaps /usr/openwin/include/X11/bitmaps /usr/X11/include/bitmaps /usr/X11R6/include/bitmaps /usr/include/bitmaps /usr/local/include/bitmaps
|
-do
|
||||||
do
|
- if [ -d "$GDIR" ]; then
|
||||||
if [ -d "$GDIR" ]; then
|
- break
|
||||||
break
|
- fi
|
||||||
@@ -46,15 +56,15 @@ fi
|
-done
|
||||||
|
+GDIR=${X11BASE}/include/X11/bitmaps
|
||||||
|
if [ ! -d "$GDIR" ]; then
|
||||||
|
echo "Enter the directory where your X11 bitmaps are stored:"
|
||||||
|
GDIR=`line`
|
||||||
|
@@ -46,15 +39,15 @@ fi
|
||||||
|
|
||||||
# Find out where we want the system installed.
|
# Find out where we want the system installed.
|
||||||
|
|
||||||
@ -72,7 +70,7 @@ $OpenBSD: patch-tkcvs_doinstall,v 1.1 2007/10/26 20:44:35 ajacoutot Exp $
|
|||||||
echo "I cant write to that directory"
|
echo "I cant write to that directory"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@@ -62,25 +72,25 @@ fi
|
@@ -62,25 +55,25 @@ fi
|
||||||
|
|
||||||
# Some directories we have to create.
|
# Some directories we have to create.
|
||||||
|
|
||||||
@ -104,7 +102,7 @@ $OpenBSD: patch-tkcvs_doinstall,v 1.1 2007/10/26 20:44:35 ajacoutot Exp $
|
|||||||
echo "I cant write to that directory"
|
echo "I cant write to that directory"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@@ -94,21 +104,21 @@ do
|
@@ -94,21 +87,21 @@ do
|
||||||
-e "/GDIR/ s;;$GDIR;g" \
|
-e "/GDIR/ s;;$GDIR;g" \
|
||||||
-e "/EDITOR/ s;;$EDITOR;g" \
|
-e "/EDITOR/ s;;$EDITOR;g" \
|
||||||
-e "/TCDIR/ s;;$TCDIR;g" ${file}.blank >$file
|
-e "/TCDIR/ s;;$TCDIR;g" ${file}.blank >$file
|
||||||
|
Loading…
x
Reference in New Issue
Block a user