From 903357b41263285e03bc83d41f9224d91ab4fb1a Mon Sep 17 00:00:00 2001 From: Rodeo Date: Fri, 7 Feb 2014 19:21:19 +0000 Subject: build: use a local version of pkg-config when necessary (Darwin-only). Automatically enabled when pkg-config detection fails, and can be forced with the --enable-local-pkgconfig configure option. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6019 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- contrib/libdvdread/module.defs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'contrib/libdvdread/module.defs') diff --git a/contrib/libdvdread/module.defs b/contrib/libdvdread/module.defs index 3dcfc8892..8efbc31ce 100644 --- a/contrib/libdvdread/module.defs +++ b/contrib/libdvdread/module.defs @@ -1,4 +1,4 @@ -$(eval $(call import.MODULE.defs,LIBDVDREAD,libdvdread)) +$(eval $(call import.MODULE.defs,LIBDVDREAD,libdvdread,PKGCONFIG)) $(eval $(call import.CONTRIB.defs,LIBDVDREAD)) LIBDVDREAD.FETCH.url = http://download.handbrake.fr/handbrake/contrib/libdvdread-a2f211a.tar.bz2 @@ -6,3 +6,8 @@ LIBDVDREAD.FETCH.url = http://download.handbrake.fr/handbrake/contrib/libdvdread ifeq (1-mingw,$(BUILD.cross)-$(BUILD.system)) LIBDVDREAD.CONFIGURE.extra = --enable-dlfcn endif + +ifeq (1,$(FEATURE.local_pkgconfig)) + LIBDVDREAD.CONFIGURE.env = PATH="$(call fn.ABSOLUTE,$(CONTRIB.build/)bin):$(PATH)" + LIBDVDREAD.BUILD.env = PATH="$(call fn.ABSOLUTE,$(CONTRIB.build/)bin):$(PATH)" +endif -- cgit v1.2.3