summaryrefslogtreecommitdiffstats
path: root/contrib/ffmpeg
diff options
context:
space:
mode:
authorYuichiro NAITO <[email protected]>2018-08-21 10:42:30 +0900
committerBradley Sepos <[email protected]>2018-08-22 06:10:32 -0400
commit7767d0f28de1accae535d422cd295c46f0815c7d (patch)
tree88cfa8bf5ea8a5476b191250430e26406efdd552 /contrib/ffmpeg
parent4b7a96048aa0ebef75079423b64549b763208f32 (diff)
build: Allows to use clang/clang++ compiler on FreeBSD.
LOCALBASE variable is used to indicate where FreeBSD ports are installed. default is /usr/local.
Diffstat (limited to 'contrib/ffmpeg')
-rw-r--r--contrib/ffmpeg/module.defs5
1 files changed, 5 insertions, 0 deletions
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 \