l-smash patch for x264-tMod

If you would like to build your own x264-tMod with l-smash support, you need to apply this patch when building l-smash lib. The reason is that x264-audio uses functions claimed in l-smash’s importer.h, but it is not installed by default in l-smash. This patch just support install/uninstall it as lsamsh_importer.h.

diff --git a/Makefile b/Makefile
index 954a5b3..e6d8a89 100644
--- a/Makefile
+++ b/Makefile
@@ -43,6 +43,7 @@ install: all install-lib
 install-lib: liblsmash.pc lib
 	install -d $(DESTDIR)$(includedir)
 	install -m 644 $(SRCDIR)/lsmash.h $(DESTDIR)$(includedir)
+	install -m 644 $(SRCDIR)/importer.h $(DESTDIR)$(includedir)/lsmash_importer.h
 	install -d $(DESTDIR)$(libdir)/pkgconfig
 	install -m 644 liblsmash.pc $(DESTDIR)$(libdir)/pkgconfig
 ifneq ($(STATICLIB),)
@@ -60,7 +61,7 @@ endif
 
 #All objects should be deleted regardless of configure when uninstall/clean/distclean.
 uninstall:
-	$(RM) $(DESTDIR)$(includedir)/lsmash.h
+	$(RM) $(addprefix $(DESTDIR)$(includedir)/, lsmash.h, lsmash_importer.h)
 	$(RM) $(addprefix $(DESTDIR)$(libdir)/, liblsmash.a liblsmash.dll.a liblsmash.so liblsmash.dylib pkgconfig/liblsmash.pc)
 	$(RM) $(addprefix $(DESTDIR)$(bindir)/, $(TOOLS_ALL) $(TOOLS_ALL:%=%.exe) liblsmash.dll cyglsmash.dll)
 
--

patch it before building liblsmash

  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: