blob: ac5044b3b7473aa164e93864291394020e99aa03 (
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
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
  | 
$FreeBSD$
--- makefile.orig	Mon Feb 11 12:01:37 2002
+++ makefile	Mon Feb 11 12:06:45 2002
@@ -10,34 +10,34 @@
 
 # For the Gnome desktop stuff to work, prefix must point to where Gnome thinks it is.
 # "h@h@" is printed here when gnome-config unavailable. Seems harmless.
-gnomeprefix:=$(shell gnome-config --prefix 2>/dev/null)
+gnomeprefix:=$(PREFIX)
 ifdef gnomeprefix
   prefix=$(gnomeprefix)
-  datadir=$(gnomeprefix)/share
+  datadir=$(gnomeprefix)/share/gnome
   pixmapdir=$(datadir)/pixmaps
 else
   prefix=/usr/local
 endif
 bindir=$(prefix)/bin
-SYSCONF_PATH=$(prefix)/share/scite
+SYSCONF_PATH=$(prefix)/share/gnome/scite
 
 PROG	= ../bin/SciTE
 
-vpath %.h ../src ../../scintilla/include
+vpath %.h ../src $(X11BASE)/include/scintilla
 vpath %.cxx ../src
 
 #CXXFLAGS= -g -DGTK -DSCI_LEXER -DSYSCONF_PATH=\"$(SYSCONF_PATH)\" -Wwrite-strings
-INCLUDEDIRS=-I ../../scintilla/include -I ../src
+INCLUDEDIRS=-I $(X11BASE)/include/scintilla -I ../src
 CXXBASEFLAGS=-W -Wall -DGTK -DSCI_LEXER -DSYSCONF_PATH=\"$(SYSCONF_PATH)\" $(INCLUDEDIRS)
 
 ifdef DEBUG
-CXXFLAGS=-DDEBUG -g $(CXXBASEFLAGS)
+CXXFLAGS+=-DDEBUG -g $(CXXBASEFLAGS)
 else
-CXXFLAGS=-DNDEBUG $(CXXBASEFLAGS)
+CXXFLAGS+=-DNDEBUG $(CXXBASEFLAGS)
 endif
 
 .cxx.o:
-	$(CC) `gtk-config --cflags` $(CXXFLAGS) -c $< -o $@
+	$(CC) $(shell $(GTK_CONFIG) --cflags) $(CXXFLAGS) -c $< -o $@
 
 all: $(PROG)
 
@@ -51,8 +51,8 @@
 LEXEROBJS=$(wildcard ../../scintilla/gtk/Lex*.o)
 
 $(PROG): SciTEGTK.o SciTEBase.o SciTEBuffers.o SciTEIO.o Exporters.o DirectorExtension.o \
-SciTEProps.o $(LEXEROBJS) ../../scintilla/bin/scintilla.a
-	$(CC) `gtk-config --libs` -DGTK $^ -o $@
+SciTEProps.o # $(LEXEROBJS) ../../scintilla/bin/scintilla.a
+	$(CC) $(shell $(GTK_CONFIG) --libs) -DGTK $^ -L$(X11BASE)/lib -lscintilla -lscintilla_lexers -o $@
 
 # SciTE-static no longer builds. Kept here in case of later need.
 SciTE-static: SciTEGTK.o SciTEBase.o SciTEBuffers.o SciTEIO.o Exporters.o SciTEProps.o \
@@ -66,15 +66,15 @@
 # This is OK - just means no SciTE in the Gnome Applications menu
 # Dead:	install -D SciTEGTK.properties $(SYSCONF_PATH)/SciTEGlobal.properties
 install:
-	install -s $(PROG) $(bindir)
-	install -d $(SYSCONF_PATH)
-	install -D ../src/*.properties $(SYSCONF_PATH)
-	install ../doc/*.html $(SYSCONF_PATH)
-	install ../doc/SciTEIco.png $(SYSCONF_PATH)
-	install ../doc/PrintHi.png $(SYSCONF_PATH)
+	$(BSD_INSTALL_PROGRAM) $(PROG) $(bindir)
+	$(MKDIR) $(SYSCONF_PATH)
+	$(BSD_INSTALL_DATA) ../src/*.properties $(SYSCONF_PATH)
+	$(BSD_INSTALL_DATA) ../doc/*.html $(SYSCONF_PATH)
+	$(BSD_INSTALL_DATA) ../doc/SciTEIco.png $(SYSCONF_PATH)
+	$(BSD_INSTALL_DATA) ../doc/PrintHi.png $(SYSCONF_PATH)
 ifdef gnomeprefix
-	install SciTE.desktop $(datadir)/gnome/apps/Applications
-	install Sci48M.png $(pixmapdir)
+	$(BSD_INSTALL_DATA) SciTE.desktop $(datadir)/apps/Applications
+	$(BSD_INSTALL_DATA) Sci48M.png $(pixmapdir)
 endif
 
 uninstall:
  
  |