update Thu Feb 11 18:37:00 PST 2010
[pkgsrc.git] / misc / elizatalk / patches / patch-aa
1 $NetBSD: patch-aa,v 1.2 2010/02/11 19:18:55 joerg Exp $
2
3 --- Makefile.orig       Mon Oct 23 03:27:20 2000
4 +++ Makefile
5 @@ -1,10 +1,11 @@
6 -CXXFLAGS=-O2 # flags for compiler
7 -LDFLAGS=-Xlinker -R/usr/ucblib:/usr/local/lib # linker flags
8 -LDLIBS=-L/usr/local/lib -Itbcc # linker libraries
9 -CXX=gcc # C compiler
10 -CC=gcc # linker
11 -INSTALLDIR=/usr/bin# installation dir of Elizatalk (be sure there is no space between the dir and the #)
12 -INSTALLDIRDICT=/usr/share/elizatalk# installation dir of the dictionaries (be sure there is no space between the dir and the #)
13 +#CXXFLAGS=-O2 # flags for compiler
14 +#LDFLAGS=-Xlinker -R/usr/ucblib:/usr/local/lib # linker flags
15 +#LDLIBS=-L/usr/local/lib -Itbcc # linker libraries
16 +#CXX=gcc # C compiler
17 +#CC=gcc # linker
18 +CFLAGS+=-DELIZADIR=\"${PREFIX}/share/elizatalk\"
19 +INSTALLDIR=${DESTDIR}${PREFIX}/bin# installation dir of Elizatalk (be sure there is no space between the dir and the #)
20 +INSTALLDIRDICT=${DESTDIR}${PREFIX}/share/elizatalk# installation dir of the dictionaries (be sure there is no space between the dir and the #)
21  
22  SOURCES=elizatalk.c \
23          splotch.c
24 @@ -20,10 +21,10 @@ make.depend:$(SOURCES)
25         $(CC) -M $^ >$@
26  
27  install:all
28 -       install -m 775 -s elizatalk $(INSTALLDIR)
29 -       install -d $(INSTALLDIRDICT)/words
30 -       install -m 666 main.dict syn.dict $(INSTALLDIRDICT)
31 -       install -m 666 words/* $(INSTALLDIRDICT)/words
32 +       ${BSD_INSTALL_PROGRAM} elizatalk $(INSTALLDIR)
33 +       ${BSD_INSTALL_DATA_DIR} $(INSTALLDIRDICT)/words
34 +       ${BSD_INSTALL_DATA} main.dict syn.dict $(INSTALLDIRDICT)
35 +       ${BSD_INSTALL_DATA} words/* $(INSTALLDIRDICT)/words
36  
37  uninstall: clean
38         rm -f $(INSTALLDIR)/elizatalk