[vlc-commits] contrib: caca: fix ln -s calls on Windows
Steve Lhomme
git at videolan.org
Wed May 16 17:12:11 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed May 16 16:58:55 2018 +0200| [85e51c1c769f46faa7e5ddb0ce332c8e85056cfb] | committer: Steve Lhomme
contrib: caca: fix ln -s calls on Windows
autoconf detects what the system should use to link files
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=85e51c1c769f46faa7e5ddb0ce332c8e85056cfb
---
contrib/src/caca/caca-fix-ln-call.patch | 61 +++++++++++++++++++++++++++++++++
contrib/src/caca/rules.mak | 2 ++
2 files changed, 63 insertions(+)
diff --git a/contrib/src/caca/caca-fix-ln-call.patch b/contrib/src/caca/caca-fix-ln-call.patch
new file mode 100644
index 0000000000..8b8cb40981
--- /dev/null
+++ b/contrib/src/caca/caca-fix-ln-call.patch
@@ -0,0 +1,61 @@
+--- caca/caca/Makefile.am 2018-05-16 16:48:26.720331200 +0200
++++ caca/caca/Makefile.am.ln 2018-05-16 16:47:40.299559100 +0200
+@@ -77,15 +77,15 @@ install-exec-local:
+ $(mkinstalldirs) $(DESTDIR)$(libdir)
+ . ./libcaca.la || exit 1; \
+ for x in $$library_names; do \
+- ln -sf $$x $(DESTDIR)$(libdir)/$$(echo $$x | sed 's/caca/cucul/g'); \
++ $(LN_S)f $$x $(DESTDIR)$(libdir)/$$(echo $$x | sed 's/caca/cucul/g'); \
+ done
+- ln -sf libcaca.la $(DESTDIR)$(libdir)/libcucul.la
++ $(LN_S)f libcaca.la $(DESTDIR)$(libdir)/libcucul.la
+
+ install-data-local:
+ $(mkinstalldirs) $(DESTDIR)$(pkgconfigdir)
+- ln -sf caca.pc $(DESTDIR)$(pkgconfigdir)/cucul.pc
++ $(LN_S)f caca.pc $(DESTDIR)$(pkgconfigdir)/cucul.pc
+ $(mkinstalldirs) $(DESTDIR)$(includedir)
+- ln -sf caca.h $(DESTDIR)$(includedir)/cucul.h
++ $(LN_S)f caca.h $(DESTDIR)$(includedir)/cucul.h
+
+ uninstall-local:
+ . ./libcaca.la || exit 1; \
+--- caca/cxx/Makefile.am 2018-05-16 16:52:26.779732200 +0200
++++ caca/cxx/Makefile.am.ln 2018-05-16 16:51:42.191400000 +0200
+@@ -26,13 +26,13 @@ install-exec-local:
+ $(mkinstalldirs) $(DESTDIR)$(libdir)
+ . ./libcaca++.la || exit 1; \
+ for x in $$library_names; do \
+- ln -sf $$x $(DESTDIR)$(libdir)/$$(echo $$x | sed 's/caca/cucul/g'); \
++ $(LN_S)f $$x $(DESTDIR)$(libdir)/$$(echo $$x | sed 's/caca/cucul/g'); \
+ done
+- ln -sf libcaca++.la $(DESTDIR)$(libdir)/libcucul++.la
++ $(LN_S)f libcaca++.la $(DESTDIR)$(libdir)/libcucul++.la
+
+ install-data-local:
+ $(mkinstalldirs) $(DESTDIR)$(pkgconfigdir)
+- ln -sf caca++.pc $(DESTDIR)$(pkgconfigdir)/cucul++.pc
++ $(LN_S)f caca++.pc $(DESTDIR)$(pkgconfigdir)/cucul++.pc
+ endif
+
+ uninstall-local:
+--- caca/doc/Makefile.am 2018-05-16 16:52:49.359771300 +0200
++++ caca/doc/Makefile.am.ln 2018-05-16 16:51:49.010973600 +0200
+@@ -42,7 +42,7 @@ clean-local:
+ install-data-local:
+ if BUILD_DOCUMENTATION
+ mkdir -p $(DESTDIR)$(datadir)/doc
+- ln -sf libcaca-dev $(DESTDIR)$(datadir)/doc/libcucul-dev
++ $(LN_S)f libcaca-dev $(DESTDIR)$(datadir)/doc/libcucul-dev
+ $(mkinstalldirs) $(DESTDIR)$(datadir)/doc/libcaca-dev/html
+ cp `find html -name '*.html' -o -name '*.gif' -o -name '*.png'` \
+ $(DESTDIR)$(datadir)/doc/libcaca-dev/html
+@@ -54,7 +54,7 @@ if BUILD_DOCUMENTATION
+ endif
+ $(mkinstalldirs) $(DESTDIR)$(mandir)/man1
+ rm -f $(DESTDIR)$(mandir)/man1/cacademo.1
+- ln -sf cacafire.1 $(DESTDIR)$(mandir)/man1/cacademo.1
++ $(LN_S)f cacafire.1 $(DESTDIR)$(mandir)/man1/cacademo.1
+
+ uninstall-local:
+ rm -f $(DESTDIR)$(datadir)/doc/libcucul-dev
diff --git a/contrib/src/caca/rules.mak b/contrib/src/caca/rules.mak
index 3085267262..2bc78d893e 100644
--- a/contrib/src/caca/rules.mak
+++ b/contrib/src/caca/rules.mak
@@ -20,6 +20,7 @@ caca: libcaca-$(CACA_VERSION).tar.gz .sum-caca
$(APPLY) $(SRC)/caca/caca-llvm-weak-alias.patch
$(APPLY) $(SRC)/caca/caca-osx-sdkofourchoice.patch
$(APPLY) $(SRC)/caca/caca-win32-static.patch
+ $(APPLY) $(SRC)/caca/caca-fix-ln-call.patch
$(UPDATE_AUTOCONFIG)
$(MOVE)
mv caca/config.sub caca/config.guess caca/.auto
@@ -39,6 +40,7 @@ CACA_CONF += --disable-ncurses
endif
.caca: caca
+ $(RECONF)
cd $< && $(HOSTVARS) ./configure $(HOSTCONF) $(CACA_CONF)
cd $< && $(MAKE) -C $< install
touch $@
More information about the vlc-commits
mailing list