summaryrefslogtreecommitdiff
path: root/lang/icon/patches/patch-aj
blob: e57b37eb0ed3e7d5c730dc8fdcbdc321bdd9327d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
$NetBSD: patch-aj,v 1.8 2009/09/21 16:38:08 tnn Exp $

--- Makefile.orig	2005-11-09 00:24:34.000000000 +0100
+++ Makefile
@@ -14,7 +14,7 @@ dest=/must/specify/dest/
 #
 # Default targets.
 
-All:	Icont Ilib Ibin
+All:	Icont Iconc Ilib Ibin
 
 config/$(name)/status src/h/define.h:
 	:
@@ -95,18 +95,23 @@ Ibin:		bin/icont
 
 # Installation:  "make Install dest=new-icon-directory"
 
-D=$(dest)
 Install:
-		mkdir $D
-		mkdir $D/bin $D/lib $D/doc $D/man $D/man/man1
-		cp README $D
-		cp bin/[cflpvwx]* $D/bin
-		cp bin/icon[tx]* $D/bin
-		rm -f $D/bin/libI*
-		(cd $D/bin; ln -s icont icon)
-		cp lib/*.* $D/lib
-		cp doc/*.* $D/doc
-		cp man/man1/*.* $D/man/man1
+		./bin/patchstr ./bin/icont $(DESTDIR)$(PREFIX)/bin/iconx
+		./bin/patchstr ./bin/iconc $(DESTDIR)$(PREFIX)/lib/icon/
+		cd bin; $(BSD_INSTALL_PROGRAM) icont iconx iconc	\
+			patchstr rtt $(DESTDIR)$(PREFIX)/bin
+		cd $(DESTDIR)$(PREFIX)/bin && ln -sf icont icon
+		$(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(PREFIX)/lib/icon
+		$(BSD_INSTALL_DATA) lib/icon/*.* $(DESTDIR)$(PREFIX)/lib/icon
+		$(BSD_INSTALL_DATA_DIR) $(DESTDIR)$(PREFIX)/share/doc/icon
+		for f in colrbook colrpick fontpick palette vib	\
+		wevents xgamma; do					\
+		if [ -f bin/$$f ]; then					\
+			${BSD_INSTALL_SCRIPT} bin/$$f $(DESTDIR)$(PREFIX)/bin;	\
+		fi;							\
+		done
+		$(BSD_INSTALL_DATA) doc/*.* $(DESTDIR)$(PREFIX)/share/doc/icon
+		$(BSD_INSTALL_MAN) man/man1/* $(DESTDIR)$(PREFIX)/$(PKGMANDIR)/man1
 
 
 # Bundle up for binary distribution.