3 POSTPROC_SNAPURL := http://git.videolan.org/?p=libpostproc.git;a=snapshot;h=HEAD;sf=tgz
11 DEPS_postproc = ffmpeg
14 POSTPROCCONF += --enable-small
17 # XXX: assumes > ARMv7-A, and thus thumb2-able
18 FFMPEGCONF += --enable-thumb
23 ifdef HAVE_CROSS_COMPILE
24 POSTPROCCONF += --enable-cross-compile
26 POSTPROCCONF += --cross-prefix=$(HOST)-
32 POSTPROCCONF += --disable-runtime-cpudetect --arch=arm
34 POSTPROCCONF += --cpu=cortex-a8 --enable-neon
35 POSTPROC_CFLAGS += -mfloat-abi=softfp -mfpu=neon
41 POSTPROCCONF += --arch=mips
46 POSTPROCCONF += --arch=x86
51 POSTPROCCONF += --arch=$(ARCH) --target-os=darwin
54 POSTPROCCONF += --cpu=core2
58 POSTPROCCONF += --as="$(AS)"
64 POSTPROCCONF += --target-os=linux
70 POSTPROCCONF += --target-os=mingw32
72 POSTPROCCONF += --cpu=athlon64 --arch=x86_64
74 POSTPROCCONF+= --cpu=i686 --arch=x86
77 POSTPROCCONF += --enable-pthreads
81 POSTPROCCONF += --target-os=mingw32ce --arch=armv4l --cpu=armv4t
84 POSTPROC_CFLAGS += --std=gnu99
89 ifeq ($(call need_pkg,"libpostproc"),)
90 PKGS_FOUND += postproc
93 $(TARBALLS)/postproc-git.tar.gz:
94 $(call download,$(POSTPROC_SNAPURL))
96 POSTPROC_VERSION := git
98 .sum-postproc: $(TARBALLS)/postproc-$(POSTPROC_VERSION).tar.gz
99 $(warning Not implemented.)
102 postproc: postproc-$(POSTPROC_VERSION).tar.gz .sum-postproc
105 $(ZCAT) "$<" | (cd $@-git && tar xv --strip-components=1)
107 sed -i "s/std=c99/std=gnu99/" $@-$(POSTPROC_VERSION)/configure
112 cd $< && $(HOSTVARS) ./configure \
113 --extra-cflags="$(POSTPROC_CFLAGS) -DHAVE_STDINT_H" \
114 --extra-ldflags="$(LDFLAGS)" $(POSTPROCCONF) \
115 --prefix="$(PREFIX)" --enable-static --disable-shared
116 cd $< && $(MAKE) install-libs install-headers