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
20 POSTPROCCONF += --cross-prefix=$(HOST)-
26 POSTPROCCONF += --disable-runtime-cpudetect --arch=arm
28 POSTPROCCONF += --cpu=cortex-a8 --enable-neon
29 POSTPROC_CFLAGS +=-mfloat-abi=softfp -mfpu=neon
35 POSTPROCCONF += --arch=x86
40 POSTPROCCONF += --arch=$(ARCH) --target-os=darwin
44 POSTPROCCONF += --as="$(AS)"
45 POSTPROCCONF += --cpu=cortex-a8
49 POSTPROCCONF += --cpu=core2
54 POSTPROCCONF += --target-os=linux
60 POSTPROCCONF += --target-os=mingw32
62 POSTPROCCONF += --cpu=athlon64 --arch=x86_64
64 POSTPROCCONF+= --cpu=i686 --arch=x86
67 POSTPROCCONF += --enable-pthreads
71 POSTPROCCONF += --target-os=mingw32ce --arch=armv4l --cpu=armv4t
74 POSTPROC_CFLAGS += --std=gnu99
79 ifeq ($(call need_pkg,"libpostproc"),)
80 PKGS_FOUND += postproc
83 $(TARBALLS)/postproc-git.tar.gz:
84 $(call download,$(POSTPROC_SNAPURL))
86 POSTPROC_VERSION := git
88 .sum-postproc: $(TARBALLS)/postproc-$(POSTPROC_VERSION).tar.gz
89 $(warning Not implemented.)
92 postproc: postproc-$(POSTPROC_VERSION).tar.gz .sum-postproc
95 $(ZCAT) "$<" | (cd $@-git && tar xv --strip-components=1)
97 sed -i "s/std=c99/std=gnu99/" $@-$(POSTPROC_VERSION)/configure
102 cd $< && $(HOSTVARS) ./configure \
103 --extra-cflags="$(POSTPROC_CFLAGS) -DHAVE_STDINT_H" \
104 --extra-ldflags="$(LDFLAGS)" $(POSTPROCCONF) \
105 --prefix="$(PREFIX)" --enable-static --disable-shared
106 cd $< && $(MAKE) install-libs install-headers