openbsd-ports/x11/tktreectrl/patches/patch-Makefile_in
sebastia 63faa5ff7f import tktreectrl-2.2.9
tree widget extension for Tk

A widget which displays items in a one- or two-dimensional arrangement.
Items have a parent-child relationship with other items. Items have a
set of states, which are boolean properties. Items may be spread about
one or more columns. For each column of an item there is a style
associated, which determines how to display the item's column taking
into account the item's current state set. One column can be defined to
display the data in a hierarchical structure.

OK from sthen@, landry@
2010-07-09 16:43:11 +00:00

49 lines
1.7 KiB
Plaintext

$OpenBSD: patch-Makefile_in,v 1.1.1.1 2010/07/09 16:43:11 sebastia Exp $
Also install some demos and license files.
--- Makefile.in.orig Sun Feb 24 23:22:10 2008
+++ Makefile.in Sat Jun 19 00:30:03 2010
@@ -75,6 +75,7 @@ datadir = @datadir@
datarootdir = @datarootdir@
mandir = @mandir@
includedir = @includedir@
+docdir = @docdir@
DESTDIR =
@@ -189,7 +190,7 @@ doc-x:
doc:
@echo "No docs to build"
-install: all install-binaries install-libraries install-doc
+install: all install-binaries install-libraries install-doc install-demos
install-binaries: binaries install-lib-binaries install-bin-binaries
@mkdir -p $(DESTDIR)$(pkglibdir)
@@ -216,15 +217,19 @@ install-libraries: libraries
install-doc-x:
@mkdir -p $(DESTDIR)$(mandir)/mann
@echo "Installing documentation in $(DESTDIR)$(mandir)"
- @for i in $(srcdir)/doc/*.n; do \
- echo "Installing $$i"; \
- rm -f $(DESTDIR)$(mandir)/mann/`basename $$i`; \
- $(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/mann ; \
- done
+ $(INSTALL_DATA) $(srcdir)/doc/*.n $(DESTDIR)$(mandir)/mann
install-doc: install-doc-x
- mkdir -p $(DESTDIR)$(pkglibdir)/htmldoc
- cp $(srcdir)/doc/*.html $(DESTDIR)$(pkglibdir)/htmldoc
+ @echo "Installing documentation in $(DESTDIR)$(docdir)"
+ mkdir -p $(DESTDIR)$(docdir)
+ $(INSTALL_DATA) $(srcdir)/doc/*.html $(DESTDIR)$(docdir)
+ $(INSTALL_DATA) $(srcdir)/license.terms $(DESTDIR)$(docdir)
+
+install-demos:
+ mkdir -p $(DESTDIR)$(pkgdatadir)
+ $(INSTALL_SCRIPT) $(srcdir)/demos/*.tcl $(DESTDIR)$(pkgdatadir)
+ mkdir -p $(DESTDIR)$(pkgdatadir)/pics
+ $(INSTALL_DATA) $(srcdir)/demos/pics/* $(DESTDIR)$(pkgdatadir)/pics
test: binaries libraries
$(WISH) `@CYGPATH@ $(srcdir)/tests/all.tcl` $(TESTFLAGS) | cat