Browse Source

Fix for the libcucul symlinks installation, courtesy of Ben Wiley Sittler.

tags/v0.99.beta16
Sam Hocevar sam 16 years ago
parent
commit
ebabc96cea
2 changed files with 16 additions and 18 deletions
  1. +8
    -9
      caca/Makefile.am
  2. +8
    -9
      cxx/Makefile.am

+ 8
- 9
caca/Makefile.am View File

@@ -58,21 +58,20 @@ libcaca_la_LIBADD = @CACA_LIBS@ $(ZLIB_LIBS)

install-exec-local:
$(mkinstalldirs) $(DESTDIR)$(libdir)
dllext=$$(grep dlname libcaca.la | cut -f2 -d.); \
ln -sf libcaca.$$dllext $(DESTDIR)$(libdir)/libcucul.$$dllext; \
ln -sf libcaca.$$dllext.0 $(DESTDIR)$(libdir)/libcucul.$$dllext.0
. libcaca.la; \
for x in $$library_names; do \
ln -sf $$x $(DESTDIR)$(libdir)/$$(echo $$x | sed 's/caca/cucul/g'); \
done

install-data-local:
$(mkinstalldirs) $(DESTDIR)$(pkgconfigdir)
ln -sf caca.pc $(DESTDIR)$(pkgconfigdir)/cucul.pc

uninstall-local:
rm -f $(DESTDIR)$(libdir)/libcucul.so
rm -f $(DESTDIR)$(libdir)/libcucul.so.0
rm -f $(DESTDIR)$(libdir)/libcucul.sl
rm -f $(DESTDIR)$(libdir)/libcucul.sl.0
rm -f $(DESTDIR)$(libdir)/libcucul.dylib
rm -f $(DESTDIR)$(libdir)/libcucul.dylib.0
. libcaca.la; \
for x in $$library_names; do \
rm -f $(DESTDIR)$(libdir)/$$(echo $$x | sed 's/caca/cucul/g'); \
done
rmdir $(DESTDIR)$(libdir) 2>/dev/null || true
rm -f $(DESTDIR)$(pkgconfigdir)/cucul.pc
rmdir $(DESTDIR)$(pkgconfigdir) 2>/dev/null || true


+ 8
- 9
cxx/Makefile.am View File

@@ -23,21 +23,20 @@ cxxtest_LDADD = libcaca++.la ../caca/libcaca.la

install-exec-local:
$(mkinstalldirs) $(DESTDIR)$(libdir)
dllext=$$(grep dlname libcaca++.la | cut -f2 -d.); \
ln -sf libcaca++.$$dllext $(DESTDIR)$(libdir)/libcucul++.$$dllext; \
ln -sf libcaca++.$$dllext.0 $(DESTDIR)$(libdir)/libcucul++.$$dllext.0
. libcaca++.la; \
for x in $$library_names; do \
ln -sf $$x $(DESTDIR)$(libdir)/$$(echo $$x | sed 's/caca/cucul/g'); \
done

install-data-local:
$(mkinstalldirs) $(DESTDIR)$(pkgconfigdir)
ln -sf caca++.pc $(DESTDIR)$(pkgconfigdir)/cucul++.pc

uninstall-local:
rm -f $(DESTDIR)$(libdir)/libcucul++.so
rm -f $(DESTDIR)$(libdir)/libcucul++.so.0
rm -f $(DESTDIR)$(libdir)/libcucul++.sl
rm -f $(DESTDIR)$(libdir)/libcucul++.sl.0
rm -f $(DESTDIR)$(libdir)/libcucul++.dylib
rm -f $(DESTDIR)$(libdir)/libcucul++.dylib.0
. libcaca++.la; \
for x in $$library_names; do \
rm -f $(DESTDIR)$(libdir)/$$(echo $$x | sed 's/caca/cucul/g'); \
done
rmdir $(DESTDIR)$(libdir) 2>/dev/null || true
rm -f $(DESTDIR)$(pkgconfigdir)/cucul++.pc
rmdir $(DESTDIR)$(pkgconfigdir) 2>/dev/null || true


Loading…
Cancel
Save