diff options
author | bradleys <[email protected]> | 2014-10-15 23:36:33 +0000 |
---|---|---|
committer | bradleys <[email protected]> | 2014-10-15 23:36:33 +0000 |
commit | 6a7aae29226cece735f305da594a189f16ea374e (patch) | |
tree | d11c42604f195de39f416b7091eaa2db625e071a /contrib | |
parent | 5996c99f899f8a76289ae30b4b46277a4009179e (diff) |
contrib: Add missing contrib/libgnurx directory.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6446 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/libgnurx/P00-mingw-static.patch | 24 | ||||
-rw-r--r-- | contrib/libgnurx/module.defs | 24 | ||||
-rw-r--r-- | contrib/libgnurx/module.rules | 2 |
3 files changed, 50 insertions, 0 deletions
diff --git a/contrib/libgnurx/P00-mingw-static.patch b/contrib/libgnurx/P00-mingw-static.patch new file mode 100644 index 000000000..a8ea2bb9d --- /dev/null +++ b/contrib/libgnurx/P00-mingw-static.patch @@ -0,0 +1,24 @@ +diff -ur mingw-libgnurx-2.5.1/Makefile.in.orig mingw-libgnurx-2.5.1/Makefile.in +--- mingw-libgnurx-2.5.1/Makefile.in.orig 2007-05-07 15:28:28.000000000 -0400 ++++ mingw-libgnurx-2.5.1/Makefile.in 2014-10-11 14:10:50.000000000 -0400 +@@ -72,11 +72,20 @@ + libregex.a: libgnurx.dll.a + cp -p libgnurx.dll.a $@ + ++libregex.a-static: $(OBJECTS) ++ ar rcu libregex.a $(OBJECTS) ++ ranlib libregex.a ++ + gnurx.lib: libgnurx-$(DLLVERSION).dll + $(MSVCLIB) -def:libgnurx.def -out:gnurx.lib + + install: install-dll @install_dev@ + ++install-static: libregex.a ++ mkdir -p ${includedir} ${libdir} ++ cp -p ${srcdir}/regex.h ${includedir} ++ cp -p ${srcdir}/libregex.a ${libdir} ++ + install-dll: + mkdir -p ${bindir} + cp -p $(BINDIST_FILES) ${bindir} diff --git a/contrib/libgnurx/module.defs b/contrib/libgnurx/module.defs new file mode 100644 index 000000000..f8ca1995f --- /dev/null +++ b/contrib/libgnurx/module.defs @@ -0,0 +1,24 @@ +$(eval $(call import.MODULE.defs,LIBGNURX,libgnurx)) +$(eval $(call import.CONTRIB.defs,LIBGNURX)) + +LIBGNURX.FETCH.url = http://download.handbrake.fr/handbrake/contrib/mingw-libgnurx-2.5.1-src.tar.gz +LIBGNURX.EXTRACT.tarbase = mingw-libgnurx-2.5.1 + +LIBGNURX.BUILD.ntargets = libregex.a-static + +define LIBGNURX.INSTALL + $(CP.exe) $(LIBGNURX.EXTRACT.dir/)libregex.a $(CONTRIB.build/)lib/ + $(CP.exe) $(LIBGNURX.EXTRACT.dir/)regex.h $(CONTRIB.build/)include/ + $(TOUCH.exe) $@ +endef + +define LIBGNURX.UNINSTALL + $(RM.exe) -f $(CONTRIB.build/)lib/libregex.a + $(RM.exe) -f $(CONTRIB.build/)include/regex.h + $(RM.exe) -f $(LIBGNURX.INSTALL.target) +endef + +ifeq (1,$(FEATURE.local_pkgconfig)) + LIBGNURX.CONFIGURE.env = PATH="$(call fn.ABSOLUTE,$(CONTRIB.build/)bin):$(PATH)" + LIBGNURX.BUILD.env = PATH="$(call fn.ABSOLUTE,$(CONTRIB.build/)bin):$(PATH)" +endif diff --git a/contrib/libgnurx/module.rules b/contrib/libgnurx/module.rules new file mode 100644 index 000000000..d754693c8 --- /dev/null +++ b/contrib/libgnurx/module.rules @@ -0,0 +1,2 @@ +$(eval $(call import.MODULE.rules,LIBGNURX)) +$(eval $(call import.CONTRIB.rules,LIBGNURX)) |