__deps__ := YASM FREETYPE FRIBIDI HARFBUZZ
-ifneq ($(BUILD.system),darwin)
+ifeq (,$(filter $(BUILD.system),darwin cygwin mingw))
__deps__ += FONTCONFIG
endif
FREETYPE_LIBS="-L$(call fn.ABSOLUTE,$(CONTRIB.build/))lib -lfreetype" \
FREETYPE_CFLAGS="-I$(call fn.ABSOLUTE,$(CONTRIB.build/))include/freetype2" \
-ifneq ($(BUILD.system),darwin)
+ifeq (,$(filter $(BUILD.system),darwin cygwin mingw))
# Tell configure where to find our version of fontconfig
LIBASS.CONFIGURE.extra += \
--enable-fontconfig \
LIBASS.BUILD.env = PATH="$(call fn.ABSOLUTE,$(CONTRIB.build/)bin):$(PATH)"
endif
endif
-
-ifeq (1-mingw,$(BUILD.cross)-$(BUILD.system))
- LIBASS.CONFIGURE.extra += --disable-directwrite
-endif
-__deps__ := A52DEC BZIP2 LIBVPX FFMPEG FONTCONFIG FREETYPE LAME LIBASS LIBDCA \
+__deps__ := A52DEC BZIP2 LIBVPX FFMPEG FREETYPE LAME LIBASS LIBDCA \
LIBDVDREAD LIBDVDNAV LIBICONV LIBSAMPLERATE LIBTHEORA LIBVORBIS LIBOGG \
LIBXML2 PTHREADW32 X264 X265 ZLIB LIBBLURAY FDKAAC LIBMFX LIBGNURX JANSSON \
HARFBUZZ LIBOPUS
+ifeq (,$(filter $(BUILD.system),darwin cygwin mingw))
+ __deps__ += FONTCONFIG
+endif
+
$(eval $(call import.MODULE.defs,LIBHB,libhb,$(__deps__)))
$(eval $(call import.GCC,LIBHB))
LIBHB.lib = $(LIBHB.build/)hb.lib
LIBHB.dll.libs = $(foreach n, \
- ass avcodec avformat avfilter avutil avresample dvdnav dvdread fontconfig \
+ ass avcodec avformat avfilter avutil avresample dvdnav dvdread \
freetype mp3lame samplerate swscale vpx theora vorbis vorbisenc ogg \
x264 xml2 bluray jansson harfbuzz opus, \
$(CONTRIB.build/)lib/lib$(n).a )
endif
endif
-ifneq (,$(filter $(BUILD.system),cygwin mingw))
- MODULES += contrib/fontconfig
-endif
-
ifneq (,$(filter $(BUILD.system),darwin cygwin mingw))
MODULES += contrib/freetype
MODULES += contrib/fribidi
samplerate swscale vpx theoraenc theoradec vorbis vorbisenc ogg x264 \
bluray freetype xml2 bz2 z jansson harfbuzz opus
-ifneq ($(BUILD.system),darwin)
+ifeq (,$(filter $(BUILD.system),darwin cygwin mingw))
TEST.GCC.l += fontconfig
endif