summaryrefslogtreecommitdiff
path: root/packages/openldap/files/ucgendat.patch
blob: 6f04844e0a682aca1883da924456f2d0d23bbf4c (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
36
--- openldap-2.2.24/.pc/ucgendat.patch/libraries/liblunicode/Makefile.in	2005-01-20 09:01:03.000000000 -0800
+++ openldap-2.2.24/libraries/liblunicode/Makefile.in	2005-04-18 07:57:11.364118488 -0700
@@ -31,16 +31,30 @@
 
 ucgendat: $(XLIBS) ucgendat.o
 	$(LTLINK) -o $@ ucgendat.o $(LIBS)
-	./ucgendat $(srcdir)/UnicodeData.txt -x $(srcdir)/CompositionExclusions.txt
+	./ucgendat $(srcdir)/UnicodeData.txt -x $(srcdir)/CompositionExclusions.txt || \
+		touch ./nodat
 
 DATFILES = case.dat cmbcl.dat comp.dat ctype.dat decomp.dat num.dat kdecomp.dat
 
+# This deals with cross compilation - ucgendat must be run on the host after
+# the install!
 install-local: $(PROGRAMS) FORCE
 	-$(MKDIR) $(DESTDIR)$(datadir)/ucdata
-	@for i in $(DATFILES); do \
+	@if test -e nodat;\
+	then\
+		echo $(LTINSTALL) $(INSTALLFLAGS) -s -m 755 ucgendat $(DESTDIR)$(datadir)/ucdata;\
+		$(LTINSTALL) $(INSTALLFLAGS) -s -m 755 ucgendat $(DESTDIR)$(datadir)/ucdata;\
+		for i in UnicodeData.txt CompositionExclusions.txt;\
+		do\
+			echo $(INSTALL) $(INSTALLFLAGS) -m 644 $$i $(DESTDIR)$(datadir)/ucdata;\
+			$(INSTALL) $(INSTALLFLAGS) -m 644 $$i $(DESTDIR)$(datadir)/ucdata;\
+		done;\
+	else\
+	for i in $(DATFILES); do \
 		echo $(INSTALL) $(INSTALLFLAGS) -m 644 $$i $(DESTDIR)$(datadir)/ucdata; \
 		$(INSTALL) $(INSTALLFLAGS) -m 644 $$i $(DESTDIR)$(datadir)/ucdata; \
-	done
+	done;\
+	fi
 
 .links :
 	@for i in $(XXSRCS) $(XXHEADERS); do \