summaryrefslogtreecommitdiffstats
path: root/contrib/libgnurx/module.defs
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/libgnurx/module.defs')
-rw-r--r--contrib/libgnurx/module.defs24
1 files changed, 24 insertions, 0 deletions
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