openbsd-ports/devel/pango/patches/patch-modules_Makefile_in
2002-12-23 04:57:56 +00:00

39 lines
1.4 KiB
Plaintext

$OpenBSD: patch-modules_Makefile_in,v 1.2 2002/12/23 04:57:56 marcm Exp $
--- modules/Makefile.in.orig Sun Oct 13 09:50:50 2002
+++ modules/Makefile.in Wed Dec 4 13:54:30 2002
@@ -115,6 +115,7 @@ WIN32_LIBS = @WIN32_LIBS@
XFT_LIBS = @XFT_LIBS@
YACC = @YACC@
ms_librarian = @ms_librarian@
+moduledir = $(libdir)/pango/$(PANGO_MODULE_VERSION)/modules
SUBDIRS = \
arabic \
@@ -336,21 +337,11 @@ maintainer-clean-generic clean mostlycle
install-data-local:
- @if $(RUN_QUERY_IMMODULES_TEST) ; then \
- echo $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/pango \&\& \
- $(top_builddir)/pango/pango-querymodules \
- \> $(DESTDIR)$(sysconfdir)/pango/pango.modules ; \
- $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/pango && \
- $(top_builddir)/pango/pango-querymodules \
- > $(DESTDIR)$(sysconfdir)/pango/pango.modules ; \
- else \
- echo "***" ; \
- echo "*** Warning: pango.modules not created" ; \
- echo "***" ; \
- echo "*** Generate this file on the target system" ; \
- echo "*** system using pango-querymodules" ; \
- echo "***" ; \
- fi
+ $(mkinstalldirs) $(DESTDIR)$(sysconfdir)/pango && \
+ LD_LIBRARY_PATH=$(top_builddir)/pango/.libs \
+ $(top_builddir)/pango/pango-querymodules \
+ `find $(DESTDIR)$(moduledir) -name '*.so'` | sed 's,$(DESTDIR),,' \
+ > $(DESTDIR)$(sysconfdir)/pango/pango.modules
included-modules:
@for d in $(SUBDIRS) ; do \