aboutsummaryrefslogtreecommitdiff
path: root/x11-fm/emelfm2/files/patch-Makefile
blob: 16e7e26b40b8ecd0bcb213caeba57270ff76f455 (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
--- Makefile.orig	2008-05-12 02:04:41.000000000 +0200
+++ Makefile	2008-05-26 08:45:53.000000000 +0200
@@ -51,7 +51,7 @@
 
 #these are only used here for installation purposes
 BIN_DIR = $(PREFIX)/bin
-MAN_DIR = $(PREFIX)/share/man/man1
+MAN_DIR = $(PREFIX)/man/man1
 #as well as usage here, all in-code uses of these is assumed localised
 ifeq ($(DOCS_VERSION), 1)
 DOC_DIR = $(PREFIX)/share/doc/$(TARGET)-$(VERSION)
@@ -215,7 +215,7 @@
 
 lLDFLAGS = $(LDFLAGS)
 # -lrt needed for clock_gettime()
-lLIBS = $(shell pkg-config --libs gtk+-2.0 gthread-2.0 gmodule-2.0) -lrt
+lLIBS = $(shell pkg-config --libs gtk+-2.0 gthread-2.0 gmodule-2.0)
 ifeq ($(USE_FAM),1)
 lLIBS += -lfam
 endif
@@ -232,6 +232,7 @@
 lLIBS += -lacl
 endif
 ifeq ($(WITH_HAL),1)
+lCFLAGS += $(shell pkg-config --cflags dbus-1 dbus-glib-1 hal hal-storage)
 lLIBS += $(shell pkg-config --libs dbus-1 dbus-glib-1 hal hal-storage)
 endif
 # for vfs & gvfs development
@@ -244,10 +245,10 @@
 endif
 # should not need translation
 OPSYS := $(shell uname)
-ifeq ($(OPSYS),FreeBSD)
-OSREL = $(shell sysctl -n kern.osreldate)
-lLIBS += $(shell if test $(OSREL) -lt 500041 ; then echo "-lgnugetopt"; fi)
-endif
+#ifeq ($(OPSYS),FreeBSD)
+#OSREL = $(shell sysctl -n kern.osreldate)
+#lLIBS += $(shell if test $(OSREL) -lt 500041 ; then echo "-lgnugetopt"; fi)
+#endif
 
 .PHONY: all plugins install install_plugins uninstall uninstall_plugins doc \
         clean deps i18n install_i18n uninstall_i18n \
@@ -266,10 +267,6 @@
 	@for file in `ls icons/ |grep -v svn`; do \
 		install -m 644 icons/$$file $(ICON_DIR); \
 	done
-	@install -d $(DOC_DIR)
-	@for file in `ls docs/ |grep -v svn |grep -v desktop_environment |grep -v api |grep -v $(TARGET).1`; do \
-		install -m 644 docs/$$file $(DOC_DIR); \
-	done
 	@install -d $(MAN_DIR)
 	@install -m 644 docs/$(TARGET).1 $(MAN_DIR);
 #	@bzip2 -f $(MAN_DIR)/$(TARGET).1;