From 7767d0f28de1accae535d422cd295c46f0815c7d Mon Sep 17 00:00:00 2001 From: Yuichiro NAITO Date: Tue, 21 Aug 2018 10:42:30 +0900 Subject: build: Allows to use clang/clang++ compiler on FreeBSD. LOCALBASE variable is used to indicate where FreeBSD ports are installed. default is /usr/local. --- contrib/ffmpeg/module.defs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'contrib/ffmpeg/module.defs') diff --git a/contrib/ffmpeg/module.defs b/contrib/ffmpeg/module.defs index 9460b5e56..87f236380 100644 --- a/contrib/ffmpeg/module.defs +++ b/contrib/ffmpeg/module.defs @@ -22,6 +22,11 @@ FFMPEG.CONFIGURE.build = FFMPEG.CONFIGURE.env.LOCAL_PATH = PATH="$(call fn.ABSOLUTE,$(CONTRIB.build/)bin):$(PATH)" FFMPEG.BUILD.env = PATH="$(call fn.ABSOLUTE,$(CONTRIB.build/)bin):$(PATH)" +ifeq (freebsd,$(BUILD.system)) + FFMPEG.CONFIGURE.env += CFLAGS=-I$(LOCALBASE)/include + FFMPEG.CONFIGURE.env += LDFLAGS=-L$(LOCALBASE)/lib +endif + FFMPEG.CONFIGURE.extra = \ --enable-gpl \ --disable-doc \ -- cgit v1.2.3