summaryrefslogtreecommitdiff
path: root/accessibility/eflite/files/patch-Makefile.in
blob: e44ad0237e41254a01b6c1749a0ef3203df518ab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- Makefile.in.orig	2007-01-19 00:01:09 UTC
+++ Makefile.in
@@ -34,7 +34,7 @@ eflite: fs.o es.o soccon.o sockopen.o to
 	$(CC) $(LDFLAGS) -o $@ $^ -lm $(LIBS) $(FLITE_LIBS) $(AUDIOLIBS)
 
 fs.o: fs.c
-	$(CC) $(CFLAGS) @AUDIODEFS@ -I. -I$(flite_include_dir) -DREGISTER_VOX=register_$(subst cmu_us_kal16,cmu_us_kal,$(FL_VOX)) -DSTANDALONE -DEFLITE -c -o $@ $<
+	$(CC) $(CFLAGS) @AUDIODEFS@ -I. -I$(flite_include_dir) -DREGISTER_VOX=register_$(FL_VOX) -DSTANDALONE -DEFLITE -c -o $@ $<
 
 tone.o: tone.c
 	$(CC) $(CFLAGS) -I$(flite_include_dir) -DEFLITE -c -o $@ $<
@@ -55,7 +55,8 @@ ifneq (,$(wildcard *.o))
 endif
 
 install: eflite
-	mkdir -p $(exec_prefix)/bin && install -c -m 0755 $< $(exec_prefix)/bin
+	mkdir -p $(DESTDIR)$(exec_prefix)/bin
+	$(BSD_INSTALL_PROGRAM) $< $(DESTDIR)$(exec_prefix)/bin
 
 test: eflite
 	./eflite -f eflite_test.txt