Makefile.am of pango



  I've tried to create .deb package of pango (CVS HEAD) for
experimental purpose, and found 2 problems.

1. When I exec 'make install DESTDIR=/some/where',
   generated '/etc/pango/pango.modules' contains $DESTDIR as modules'
   pathname like this:

---
/some/where/usr/lib/pango/modules/pango-arabic-x.so ArabicScriptEngineX PangoEngineShape PangoRenderX 1547-1747:*
/some/where/usr/lib/pango/modules/pango-arabic-xft.so ArabicScriptEngineXft PangoEngineShap
---
   So, I modified Makefile.am in 'pango' subdir to ease packagin task
  (This can also be done in packaing rule (or .spec) file instead of
   pango/Makefile).

==cut here=
--- pango/Makefile.am.orig	Fri Jun  1 00:40:00 2001
+++ pango/Makefile.am	Fri Jun  1 00:30:28 2001
@@ -196,6 +196,7 @@
 	if ls $(DESTDIR)$(libdir)/pango/modules/*.so | grep 'so' > /dev/null ; then \
           echo "Wrote $(DESTDIR)$(sysconfdir)/pango/pango.modules."; \
           $(top_builddir)/pango/pango-querymodules $(DESTDIR)$(libdir)/pango/modules/*.so \
+	| sed -e s%^$(DESTDIR)%% \
 		> $(DESTDIR)$(sysconfdir)/pango/pango.modules; \
         else \
           echo "No dynamic modules were installed; all modules were linked statically."; \
==cut here=

2. 'ls $(DESTDIR)$(libdir)/pango/modules/*.so' always fail in the above rule, 
   because 'make install' in 'modules' sub-directory is executed after
   'make install' in 'pango' sub-directory.

   So I had to execute
      (cd modules ; make install DESTDIR=/some/where)
   before executing
      make install DESTDIR=/some/where

  KUSANO Takayuki <URL:http://www.asahi-net.or.jp/~AE5T-KSN/>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]