3 POSTPROC_SNAPURL := http://git.videolan.org/?p=libpostproc.git;a=snapshot;h=HEAD;sf=tgz
11 DEPS_postproc = ffmpeg
14 POSTPROCCONF += --enable-small --optflags=-O2
17 ifdef HAVE_CROSS_COMPILE
18 POSTPROCCONF += --enable-cross-compile --cross-prefix=$(HOST)-
23 POSTPROCCONF += --disable-runtime-cpudetect --arch=arm
25 POSTPROCCONF += --cpu=cortex-a8 --enable-neon
26 POSTPROC_CFLAGS +=-mfloat-abi=softfp -mfpu=neon
32 POSTPROCCONF += --arch=$(ARCH) --target-os=darwin
35 POSTPROCCONF += --cpu=core2
40 POSTPROCCONF += --target-os=linux
46 POSTPROCCONF += --target-os=mingw32
48 POSTPROCCONF += --cpu=athlon64 --arch=x86_64
50 POSTPROCCONF+= --cpu=i686 --arch=x86
53 POSTPROCCONF += --enable-pthreads
57 POSTPROCCONF += --target-os=mingw32ce --arch=armv4l --cpu=armv4t
60 POSTPROC_CFLAGS += --std=gnu99
65 ifeq ($(call need_pkg,"libpostproc"),)
66 PKGS_FOUND += postproc
69 $(TARBALLS)/postproc-git.tar.gz:
70 $(call download,$(POSTPROC_SNAPURL))
72 POSTPROC_VERSION := git
74 .sum-postproc: $(TARBALLS)/postproc-$(POSTPROC_VERSION).tar.gz
75 $(warning Not implemented.)
78 postproc: postproc-$(POSTPROC_VERSION).tar.gz .sum-postproc
81 $(ZCAT) "$<" | (cd $@-git && tar xv --strip-components=1)
83 sed -i "s/std=c99/std=gnu99/" $@-$(POSTPROC_VERSION)/configure
88 cd $< && $(HOSTVARS) ./configure \
89 --extra-cflags="$(POSTPROC_CFLAGS) -DHAVE_STDINT_H" \
90 --extra-ldflags="$(LDFLAGS)" $(POSTPROCCONF) \
91 --prefix="$(PREFIX)" --enable-static --disable-shared
92 cd $< && $(MAKE) install-libs install-headers