summaryrefslogtreecommitdiff
path: root/lang/tcl-otcl
diff options
context:
space:
mode:
authorjoerg <joerg>2009-02-17 19:49:57 +0000
committerjoerg <joerg>2009-02-17 19:49:57 +0000
commit62b7ef0e87cc170d95702c7ac364f04491851676 (patch)
tree07791cdceee59005c2ab5bc497a0917d0345cd08 /lang/tcl-otcl
parent8e55fc3887807ce30d2a1616341c813b8f53d134 (diff)
downloadpkgsrc-62b7ef0e87cc170d95702c7ac364f04491851676.tar.gz
DESTDIR support
Diffstat (limited to 'lang/tcl-otcl')
-rw-r--r--lang/tcl-otcl/Makefile10
-rw-r--r--lang/tcl-otcl/distinfo4
-rw-r--r--lang/tcl-otcl/patches/patch-aa16
3 files changed, 16 insertions, 14 deletions
diff --git a/lang/tcl-otcl/Makefile b/lang/tcl-otcl/Makefile
index 9195372fe60..e70a05ca4d9 100644
--- a/lang/tcl-otcl/Makefile
+++ b/lang/tcl-otcl/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.20 2007/04/26 15:28:42 minskim Exp $
+# $NetBSD: Makefile,v 1.21 2009/02/17 19:49:57 joerg Exp $
DISTNAME= otcl-src-1.13
PKGNAME= tcl-${DISTNAME:S/-src//}
@@ -10,6 +10,7 @@ HOMEPAGE= http://otcl-tclcl.sourceforge.net/otcl/
COMMENT= MIT Object Tcl
PKG_INSTALLATION_TYPES= overwrite pkgviews
+PKG_DESTDIR_SUPPORT= user-destdir
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
@@ -25,7 +26,7 @@ DOCS= autoload.html capi.html class.html object.html \
tutorial.html otcl-paper.ps.gz
DOCDIR= ${PREFIX}/share/doc/tcl/otcl
-INSTALLATION_DIRS= bin include lib
+INSTALLATION_DIRS= bin include lib ${DOCDIR}
BUILDLINK_DEPMETHOD.libXt?= build
@@ -34,10 +35,9 @@ BUILDLINK_DEPMETHOD.libXt?= build
.include "../../x11/libXt/buildlink3.mk"
post-install:
- ${INSTALL_DATA_DIR} ${DOCDIR}
- ${INSTALL_DATA} ${WRKSRC}/CHANGES.html ${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/CHANGES.html ${DESTDIR}${DOCDIR}
.for _file_ in ${DOCS}
- ${INSTALL_DATA} ${WRKSRC}/doc/${_file_} ${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/${_file_} ${DESTDIR}${DOCDIR}
.endfor
.include "../../mk/bsd.pkg.mk"
diff --git a/lang/tcl-otcl/distinfo b/lang/tcl-otcl/distinfo
index 6725f2414fb..a17020c80d5 100644
--- a/lang/tcl-otcl/distinfo
+++ b/lang/tcl-otcl/distinfo
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.8 2007/04/26 15:28:42 minskim Exp $
+$NetBSD: distinfo,v 1.9 2009/02/17 19:49:57 joerg Exp $
SHA1 (otcl-src-1.13.tar.gz) = e3310044628f0a59217abaa5ff8ac8234700dd83
RMD160 (otcl-src-1.13.tar.gz) = 7c0def77993ec6e48e4085d6a953b55c2fe2bc59
Size (otcl-src-1.13.tar.gz) = 317440 bytes
-SHA1 (patch-aa) = 499fc336891fb96392614b85bac4373d7f63be65
+SHA1 (patch-aa) = b3308c72cc4f9260608578ff78926f77df343527
SHA1 (patch-ab) = 0f735f21dd2204fe37990f201ec121af4eb7b470
SHA1 (patch-ac) = c7b11d85eecc954424993f2410cb69da1d3dff1f
diff --git a/lang/tcl-otcl/patches/patch-aa b/lang/tcl-otcl/patches/patch-aa
index 4c700ea8053..71fd00d8864 100644
--- a/lang/tcl-otcl/patches/patch-aa
+++ b/lang/tcl-otcl/patches/patch-aa
@@ -1,6 +1,6 @@
-$NetBSD: patch-aa,v 1.4 2006/09/29 16:28:55 minskim Exp $
+$NetBSD: patch-aa,v 1.5 2009/02/17 19:49:57 joerg Exp $
---- Makefile.in.orig 2006-09-25 05:02:37.000000000 +0000
+--- Makefile.in.orig 2007-03-11 00:11:11.000000000 +0100
+++ Makefile.in
@@ -5,6 +5,7 @@
#
@@ -83,7 +83,7 @@ $NetBSD: patch-aa,v 1.4 2006/09/29 16:28:55 minskim Exp $
test: otclsh owish
./otclsh lib/test.tcl
-@@ -114,12 +103,10 @@ dirs:
+@@ -114,13 +103,11 @@ dirs:
fi;\
done
@@ -93,13 +93,15 @@ $NetBSD: patch-aa,v 1.4 2006/09/29 16:28:55 minskim Exp $
- $(INSTALL) libotcl.a $(INST_OLIB)
- $(RANLIB) $(INST_OLIB)/libotcl.a
- $(INSTALL) libotcl$(SHLIB_SUFFIX) $(INST_OLIBSH)
+- $(INSTALL) -m 644 otcl.h $(INST_OINC)
+install: owish otclsh libotcl.a otcl.h dirs
-+ ${LIBTOOL} --mode=install ${BSD_INSTALL_DATA} libotcl.la ${PREFIX}/lib
-+ ${LIBTOOL} --mode=install ${BSD_INSTALL_PROGRAM} owish $(INST_OWISH)
-+ ${LIBTOOL} --mode=install ${BSD_INSTALL_PROGRAM} otclsh $(INST_OTCLSH)
- $(INSTALL) -m 644 otcl.h $(INST_OINC)
++ ${LIBTOOL} --mode=install ${BSD_INSTALL_DATA} libotcl.la ${DESTDIR}${PREFIX}/lib
++ ${LIBTOOL} --mode=install ${BSD_INSTALL_PROGRAM} owish ${DESTDIR}$(INST_OWISH)
++ ${LIBTOOL} --mode=install ${BSD_INSTALL_PROGRAM} otclsh ${DESTDIR}$(INST_OTCLSH)
++ $(INSTALL) -m 644 otcl.h ${DESTDIR}$(INST_OINC)
clean:
+ rm -f owish otclsh libotcl.a libotcl$(SHLIB_SUFFIX) \
@@ -154,7 +141,7 @@ srctar:
depend: $(CFILES)