]> granicus.if.org Git - handbrake/commitdiff
Fix build of ffmpeg under NetBSD
authorRyo ONODERA <ryo@tetera.org>
Fri, 3 May 2019 12:33:30 +0000 (21:33 +0900)
committerBradley Sepos <bradley@bradleysepos.com>
Tue, 18 Jun 2019 14:42:41 +0000 (10:42 -0400)
Pick up external libraries from LOCALBASE.

contrib/ffmpeg/module.defs

index abeb88df502d9cedea244637180cdd5e70c80949..5d619359dbff9f2d3b1768a1deff3a5e316b1d67 100644 (file)
@@ -22,7 +22,7 @@ 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))
+ifneq (,$(filter $(HOST.system),freebsd netbsd))
        FFMPEG.CONFIGURE.env += CFLAGS=-I$(LOCALBASE)/include
        FFMPEG.CONFIGURE.env += LDFLAGS=-L$(LOCALBASE)/lib
 endif