summaryrefslogtreecommitdiffstats
path: root/contrib/libass/module.defs
blob: 8201714439b82d406285345afbea309a4dd070ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
__deps__ := YASM FREETYPE FRIBIDI HARFBUZZ

ifneq ($(BUILD.system),darwin)
    __deps__ += FONTCONFIG
endif

$(eval $(call import.MODULE.defs,LIBASS,libass,$(__deps__)))
$(eval $(call import.CONTRIB.defs,LIBASS))

LIBASS.FETCH.url     = https://download.handbrake.fr/handbrake/contrib/libass-0.13.2.tar.gz
LIBASS.FETCH.url    += https://github.com/libass/libass/releases/download/0.13.2/libass-0.13.2.tar.gz
LIBASS.FETCH.sha256  = 8baccf663553b62977b1c017d18b3879835da0ef79dc4d3b708f2566762f1d5e

# Tell configure where to find our version of freetype
LIBASS.CONFIGURE.extra = \
    --enable-asm --enable-harfbuzz \
    FREETYPE_LIBS="-L$(call fn.ABSOLUTE,$(CONTRIB.build/))lib -lfreetype" \
    FREETYPE_CFLAGS="-I$(call fn.ABSOLUTE,$(CONTRIB.build/))include/freetype2" \

ifneq ($(BUILD.system),darwin)
    # Tell configure where to find our version of fontconfig
    LIBASS.CONFIGURE.extra += \
        --enable-fontconfig \
        FONTCONFIG_LIBS="-L$(call fn.ABSOLUTE,$(CONTRIB.build/))lib -lfontconfig" \
        FONTCONFIG_CFLAGS="-I$(call fn.ABSOLUTE,$(CONTRIB.build/))include"
else
    LIBASS.CONFIGURE.extra += --disable-fontconfig
endif

ifneq ($(BUILD.system),linux)
    LIBASS.CONFIGURE.extra += \
        FRIBIDI_LIBS="-L$(call fn.ABSOLUTE,$(CONTRIB.build/))lib -lfribidi" \
        FRIBIDI_CFLAGS="-I$(call fn.ABSOLUTE,$(CONTRIB.build/))include"
endif

ifneq (1,$(BUILD.cross))
    ifeq (1,$(FEATURE.local_yasm))
        LIBASS.CONFIGURE.env.LOCAL_PATH = PATH="$(call fn.ABSOLUTE,$(CONTRIB.build/)bin):$(PATH)"
        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