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
|
$NetBSD: patch-aa,v 1.3 2003/01/01 19:24:20 jmmv Exp $
--- Makefile.orig Sun Oct 27 06:17:27 2002
+++ Makefile
@@ -11,7 +11,7 @@
# Where to install things:
-PREFIX=/usr/local
+#PREFIX=/usr/local
# Program:
@@ -27,16 +27,9 @@ DATA_PREFIX=$(PREFIX)/share/tuxpaint/
# Docs and man page:
DOC_PREFIX=$(PREFIX)/share/doc/tuxpaint/
-MAN_PREFIX=$(PREFIX)/share/man/
+MAN_PREFIX=$(PREFIX)/man/
-# 'System-wide' Config file:
-
-ifeq ($(PREFIX),/usr)
- CONFDIR=/etc/tuxpaint
-else
- CONFDIR=$(PREFIX)/etc/tuxpaint
-endif
# Icons and launchers:
@@ -68,7 +61,7 @@ SDL_CFLAGS=$(shell sdl-config --cflags)
# The entire set of CFLAGS:
-CFLAGS=-O2 -Wall $(SDL_CFLAGS) -DDATA_PREFIX=\"$(DATA_PREFIX)\" \
+CFLAGS+=-Wall $(SDL_CFLAGS) -DDATA_PREFIX=\"$(DATA_PREFIX)\" \
-D$(NOSOUNDFLAG) -DDOC_PREFIX=\"$(DOC_PREFIX)\" \
-DLOCALEDIR=\"$(LOCALE_PREFIX)\" -DCONFDIR=\"$(CONFDIR)\"
@@ -100,8 +93,7 @@ nosound:
# to do this as superuser ("root"))
install: install-bin install-data install-man install-doc \
- install-gnome install-kde install-kde-icons \
- install-icon install-gettext install-importscript \
+ install-gettext install-importscript \
install-default-config
@echo
@echo "All done! Now (preferably NOT as 'root' superuser),"
@@ -167,9 +159,9 @@ uninstall:
install-default-config:
@echo
@echo "...Installing default config file..."
- install -d $(CONFDIR)
- cp src/tuxpaint.conf $(CONFDIR)
- chmod 644 $(CONFDIR)/tuxpaint.conf
+ install -d $(PREFIX)/share/examples/tuxpaint
+ cp src/tuxpaint.conf $(PREFIX)/share/examples/tuxpaint
+ chmod 644 $(PREFIX)/share/examples/tuxpaint/tuxpaint.conf
# Install a launcher icon in the Gnome menu, under "Graphics"
|