/[packages]/cauldron/hspell/current/SOURCES/hspell-1.0.sharedlib.patch
ViewVC logotype

Contents of /cauldron/hspell/current/SOURCES/hspell-1.0.sharedlib.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 70239 - (show annotations) (download)
Sat Mar 12 23:06:23 2011 UTC (10 years, 8 months ago) by dmorgan
File size: 2725 byte(s)
Sync with fedora 
	- add lib
	- create hunspell-he

1 Index: hspell-1.0/Makefile.in
2 ===================================================================
3 --- hspell-1.0.orig/Makefile.in
4 +++ hspell-1.0/Makefile.in
5 @@ -51,7 +51,7 @@ LDFLAGS=@LDFLAGS@
6
7 # Our TARGETS variable chooses what to compile. Some things are
8 # optionally compiled depending on --enable-* paramters to configure.
9 -TARGETS = @TARGETS@
10 +TARGETS = @TARGETS@ libhspell.a
11 all: $(TARGETS)
12
13 # SEDCMD controls on whether objective-kinuyim - about 130,000 rare verb
14 @@ -76,7 +76,8 @@ clean:
15 hebrew.wgz.lingsizes.tmp dmask.c install.js \
16 spell-he.xpi he.dic he.aff README-he.txt \
17 README_he_IL.txt he_IL.dic he_IL.aff he_IL.zip \
18 - specfilter.o specfilter
19 + specfilter.o specfilter \
20 + libhspell.so.0 libhspell.so *.lo
21 rm -f hebeng/install.js hebeng/heb-eng.aff hebeng/heb-eng.dic \
22 hebeng/README-he.txt hebeng/README-en-US.txt \
23 hebeng/spell-heb-eng.xpi
24 @@ -113,6 +114,9 @@ install: all
25 test -d $(DESTDIR)$(LIBDIR) || mkdir -m 755 -p $(DESTDIR)$(LIBDIR)
26 cp libhspell.a $(DESTDIR)$(LIBDIR)/
27 chmod 644 $(DESTDIR)$(LIBDIR)/libhspell.a
28 + cp libhspell.so.0 $(DESTDIR)$(LIBDIR)/
29 + chmod 755 $(DESTDIR)$(LIBDIR)/libhspell.so.0
30 + ln -sf libhspell.so.0 $(DESTDIR)$(LIBDIR)/libhspell.so
31 test -d $(DESTDIR)$(INCLUDEDIR) || mkdir -m 755 -p $(DESTDIR)$(INCLUDEDIR)
32 cp hspell.h linginfo.h $(DESTDIR)$(INCLUDEDIR)/
33 chmod 644 $(DESTDIR)$(INCLUDEDIR)/hspell.h $(DESTDIR)$(INCLUDEDIR)/linginfo.h
34 @@ -166,19 +170,30 @@ libhspell.a: dict_radix.o gimatria.o cor
35 ar cr $@ $^
36 -ranlib $@
37
38 -$(HSPELL_EXECUTABLE): hspell.o tclHash.o libhspell.a
39 - $(CC) $(CFLAGS) $(LDFLAGS) -o $(HSPELL_EXECUTABLE) hspell.o tclHash.o libhspell.a $(LIBS)
40 +EXTRAOBJECTSPIC=$(EXTRAOBJECTS:.o=.lo)
41 +
42 +%.lo: %.c
43 + $(CC) -c $(CFLAGS) $(CPPFLAGS) $(DEFS) -fPIC -DPIC -o $@ $<
44 +
45 +libhspell.so.0: dict_radix.lo gimatria.lo corlist.lo libhspell.lo $(EXTRAOBJECTSPIC)
46 + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ -shared -Wl,-soname,libhspell.so.0 $^ -lz
47 + ln -sf libhspell.so.0 libhspell.so
48 +
49 +$(HSPELL_EXECUTABLE): hspell.o tclHash.o libhspell.so.0
50 + $(CC) $(CFLAGS) $(LDFLAGS) -o $(HSPELL_EXECUTABLE) hspell.o tclHash.o libhspell.so.0 $(LIBS)
51
52 # remember to update this dependency list once in a while...
53 libhspell.o dict_radix.o find_sizes.o: dict_radix.h
54 dict_radix.o linginfo.o: gzbuffered.h
55 libhspell.o mk_he_affix.o: prefixes.c
56 +libhspell.lo mk_he_affix.lo: prefixes.c
57 hspell.o: hash.h tclHash.h
58 tclHash.o: tclHash.h
59 corlist.o gimatria.o hspell.o libhspell.o: hspell.h
60 hspell.o libhspell.o linginfo.o: linginfo.h hspell.h
61 linginfo.o: dmask.c
62 specfilter.o: prefixes.c
63 +specfilter.lo: prefixes.c
64
65 prefixes.c: genprefixes.pl PrefixBits.pl
66 $(PERL) -w ./genprefixes.pl >prefixes.c
67

  ViewVC Help
Powered by ViewVC 1.1.28