summaryrefslogtreecommitdiff
path: root/audio/flite/patches/patch-aa
blob: 502e37e0280917617d72f92c37db7809e57c84d3 (plain)
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
$NetBSD: patch-aa,v 1.2 2006/09/01 15:44:44 gdt Exp $

--- Makefile.orig	2005-11-01 08:40:45.000000000 -0500
+++ Makefile
@@ -48,6 +48,7 @@ CONFIG=configure configure.in config.sub
 FILES = Makefile README ACKNOWLEDGEMENTS COPYING $(CONFIG)
 DIST_CLEAN = config.cache config.log config.status \
 		config/config config/system.mak FileList
+DOCDIR=	$(PREFIX)/share/doc/flite
 
 HOST_ONLY_DIRS = tools main
 ALL = $(BUILD_DIRS)
@@ -105,13 +106,15 @@ tags:
 
 install:
 	@echo Installing 
-	mkdir -p $(INSTALLBINDIR)
-	mkdir -p $(INSTALLLIBDIR)
-	mkdir -p $(INSTALLINCDIR)
-	$(INSTALL) -m 644 include/*.h $(INSTALLINCDIR)
-	@ $(MAKE) -C lib --no-print-directory install
-	$(INSTALL) -m 755 bin/flite $(INSTALLBINDIR)
-	$(INSTALL) -m 755 bin/flite_time $(INSTALLBINDIR)
+	$(BSD_INSTALL_PROGRAM_DIR) $(INSTALLBINDIR)
+	$(BSD_INSTALL_DATA_DIR) $(INSTALLLIBDIR)
+	$(BSD_INSTALL_DATA_DIR) $(INSTALLINCDIR)
+	$(BSD_INSTALL_DATA_DIR) $(DOCDIR)
+	$(BSD_INSTALL_DATA) include/*.h $(INSTALLINCDIR)
+	$(BSD_INSTALL_DATA) $(LIBDIR)/libflite* $(INSTALLLIBDIR)
+	$(BSD_INSTALL_PROGRAM) bin/flite $(INSTALLBINDIR)
+	$(BSD_INSTALL_PROGRAM) bin/flite_time $(INSTALLBINDIR)
+	$(BSD_INSTALL_DATA) README $(DOCDIR)
 
 time-stamp :
 	@ echo $(PROJECT_NAME) >.time-stamp