aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/uTox/files/patch-Makefile
blob: 7ce11dbce3a444a06f9a432276d81e8f7553f6f0 (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
--- Makefile.orig   2015-04-19 07:13:44 UTC
+++ Makefile
@@ -16,10 +16,6 @@ ifeq ($(V4LCONVERT), 1)
     DEPS += libv4lconvert
 endif
 
-ifeq ($(FILTER_AUDIO), 1)
-    DEPS += filteraudio
-endif
-
 ifeq ($(UNITY), 1)
     DEPS += messaging-menu unity
 endif
@@ -41,6 +37,7 @@ endif
 
 ifeq ($(FILTER_AUDIO), 1)
     CFLAGS += -DAUDIO_FILTERING
+    LDFLAGS += -lfilteraudio
 endif
 
 ifeq ($(UNITY), 1)
@@ -100,7 +97,7 @@ install: utox
    
    mkdir -p $(DESTDIR)$(PREFIX)/share/applications
    install -m 644 utox.desktop $(DESTDIR)$(PREFIX)/share/applications/utox.desktop
-   if [ "$UNITY" -eq "1" ]; then echo "X-MessagingMenu-UsesChatSection=true" >> $(DESTDIR)$(PREFIX)/share/applications/utox.desktop; fi
+   if [ "$(UNITY)" -eq "1" ]; then echo "X-MessagingMenu-UsesChatSection=true" >> $(DESTDIR)$(PREFIX)/share/applications/utox.desktop; fi
    
    mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1
    install -m 644 utox.1 $(DESTDIR)$(PREFIX)/share/man/man1/utox.1