summaryrefslogtreecommitdiff
path: root/x11-wm/oroborus/files/patch-Makefile
blob: 61d4a34718194ffee27fe3cd1aac25eff01533d6 (plain) (blame)
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
--- Makefile.orig	Wed Jun 13 17:59:09 2001
+++ Makefile	Fri Aug 10 23:54:37 2001
@@ -1,13 +1,13 @@
-CC        = gcc
-CFLAGS    = -g -O2 -Wall
-XROOT     = /usr/X11R6
+CC        ?= gcc
+CFLAGS    ?= -g -O2 -Wall
+XROOT     = $(X11BASE)
 INCLUDES  = -I$(XROOT)/include
 LIBS      = -lX11 -lXext -lXpm #-lXinerama
 LDPATH    = -L$(XROOT)/lib
 
 PROG      = oroborus
 VERSION   = 1.14.0
-PREFIX    = /usr
+PREFIX    ?= /usr
 FONT      = *-helvetica-bold-r-normal-*-*-120-*
 THEME     = default
 RCFILE    = -DRCFILE=\".oroborusrc\"
@@ -37,12 +37,17 @@
 	rm -f $(PROG) $(OBJS) core
 
 install:all
-	install $(PROG) $(PREFIX)/bin
-	install -d $(PREFIX)/share/$(PROG)
-	install -d $(PREFIX)/doc/$(PROG)-$(VERSION)
-	./install_rc $(PREFIX) $(PROG) $(THEME) $(FONT) > $(PREFIX)/share/$(PROG)/oroborusrc
-	cp -R themes $(PREFIX)/share/$(PROG)
-	cp -R doc $(PREFIX)/doc/$(PROG)-$(VERSION)
+	$(BSD_INSTALL_PROGRAM) $(PROG) $(PREFIX)/bin
+	$(MKDIR) $(PREFIX)/share/$(PROG)
+	$(MKDIR) $(PREFIX)/share/doc/$(PROG)
+	./install_rc $(PREFIX) $(PROG) $(THEME) $(FONT) $(INTERVAL) > oroborusrc
+	$(BSD_INSTALL_DATA) oroborusrc $(PREFIX)/share/$(PROG)
+	for dir in agua default defold mac next win95; do \
+		$(MKDIR) $(PREFIX)/share/$(PROG)/themes/$$dir; \
+		$(BSD_INSTALL_DATA) themes/$$dir/[^.]* \
+			$(PREFIX)/share/$(PROG)/themes/$$dir; \
+	done
+	$(BSD_INSTALL_MAN) doc/* $(PREFIX)/share/doc/$(PROG)
 
 uninstall:
 	rm -f $(PREFIX)/bin/$(PROG)