summaryrefslogtreecommitdiff
path: root/deskutils/xopps/files/patch-aa
blob: f95ce7bbf4047fe54c0488c2291e53a866e59203 (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
--- Makefile.orig	Fri Jan 17 23:22:35 1997
+++ Makefile	Thu Jan 25 22:14:35 2007
@@ -142,19 +142,19 @@
 # Installation locations (edit to suit your system)
 #
 
-ROOTDIR = ### user defined ###
-SUBSYS = ### user defined ###
+ROOTDIR = $(PREFIX)
+SUBSYS =
 BINDIR = $(ROOTDIR)/bin
-RSCDIR = $(ROOTDIR)/setup/app-defaults
+RSCDIR = $(ROOTDIR)/lib/X11/app-defaults
 MAN1DIR = $(ROOTDIR)/man/man1
-HELPDIR = $(ROOTDIR)/setup/$(SUBSYS)/help
-BITDIR = $(ROOTDIR)/setup/bitmaps
+HELPDIR = $(ROOTDIR)/lib/X11/xopps
+BITDIR = $(ROOTDIR)/include/X11/bitmaps
 
 #
 # You generally should not edit below this line
 #
 
-OPTIMIZEFLAG = -O
+#OPTIMIZEFLAG = -O
 SFOCDIR = /SFOC/$(SFOCVER)
 TPSDIR = /TPS/$(SFOCVER)
 BLDDIR = .
@@ -163,27 +163,28 @@
 LOCAL_INCL = ../../lib_incl_local
 GLOBAL_INCL = ../../lib_incl_global
 SYSDEFS = $(MACHDEFS) -D$(MACH) -DRELEASE='"$(RELEASE)"' $(DEFINES)
-SFOCINCLPATH =	-I. \
-		-I$(INCLROOT)/lib_incl_local \
-		-I$(INCLROOT)/lib_incl_global \
-		-I$(SFOCDIR)/include \
-		-I$(SFOCDIR)/include/cda \
-		-I$(SFOCDIR)/include/dts \
-		-I$(SFOCDIR)/include/smc \
-		-I$(SFOCDIR)/include/wse \
-		-I$(TPSDIR)/include
+#SFOCINCLPATH =  -I. \
+#		-I$(INCLROOT)/lib_incl_local \
+#		-I$(INCLROOT)/lib_incl_global \
+#		-I$(SFOCDIR)/include \
+#		-I$(SFOCDIR)/include/cda \
+#		-I$(SFOCDIR)/include/dts \
+#		-I$(SFOCDIR)/include/smc \
+#		-I$(SFOCDIR)/include/wse \
+#		-I$(TPSDIR)/include
 FULLINCLPATH = $(INCLPATH) $(SFOCINCLPATH) $(MACHINCLPATH)
 
 RM = rm -f
 
-CFLAGS = $(OPTIMIZEFLAG) $(SYSDEFS) $(FULLINCLPATH)
+CFLAGS += $(OPTIMIZEFLAG) $(SYSDEFS) $(FULLINCLPATH)
 
 MALLOC =
 
 LDFLAGS = $(OPTIMIZEFLAG) $(MACHDEFS)
 LOCAL_LIB = $(LIBROOT)/lib_incl_local/$(MACH)
-LIBS = -lXm -lXt -lX11
-SFOCLIBPATH = -L$(SFOCDIR)/lib -L/sfoc/lib -L$(TPSDIR)/lib -L/tps/lib
+LIBS = -lXm -lXext -lXt -lX11 ${MOTIFLIB}
+LIBS+= -Wl,-rpath,$(LOCALBASE)/lib
+#SFOCLIBPATH = -L$(SFOCDIR)/lib -L/sfoc/lib -L$(TPSDIR)/lib -L/tps/lib
 FULLLIBPATH = $(LIBPATH) $(SFOCLIBPATH) $(MACHLIBPATH)
 
 LINT = lint
@@ -237,12 +238,13 @@
 	$(HELP) $(DRAWINGS)
 
 install:
-	install -c -m 755 $(PROJ) $(BINDIR)
-	install -c -m 644 $(RSRC) $(RSCDIR)
-	install -c -m 644 $(MAN1) $(MAN1DIR)
-	install -c -m 644 $(HELP) $(HELPDIR)
-	install -c -m 755 $(PERLEXE) $(BINDIR)
-	install -c -m 444 $(BITMAPS) $(BITDIR)
+	if test ! -f $(HELPDIR); then mkdir -p $(HELPDIR); fi
+	${BSD_INSTALL_PROGRAM} $(PROJ) $(BINDIR)
+	${BSD_INSTALL_DATA} $(RSRC) $(RSCDIR)
+	${BSD_INSTALL_DATA} $(MAN1) $(MAN1DIR)
+	${BSD_INSTALL_DATA} $(HELP) $(HELPDIR)
+	${BSD_INSTALL_SCRIPT} $(PERLEXE) $(BINDIR)
+	${BSD_INSTALL_DATA} $(BITMAPS) $(BITDIR)
 
 $(BLDDIR)/activity.o: beware.h
 $(BLDDIR)/activity.o: dialog.h