Advertising
- Unnamed
- Thursday, July 20th, 2006 at 3:43:30pm MDT
- #!/usr/bin/make -f
- #export DH_VERBOSE=1
- export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
- export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
- export DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
- ifeq ($(DEB_HOST_ARCH),i386)
- confflags += --extra-cflags="-fomit-frame-pointer -DRUNTIME_CPUDETECT"
- else
- confflags += --extra-cflags="-DRUNTIME_CPUDETECT"
- endif
- # FOR AUTOCONF 2.52 AND NEWER ONLY
- ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
- confflags +=
- else
- confflags +=
- endif
- confflags += --enable-gpl
- confflags += --enable-vorbis --enable-libogg --enable-theora --enable-a52 --enable-dts --enable-dc1394 --enable-libgsm
- confflags += --disable-debug --enable-shared --enable-dts --enable-pp --disable-mmx
- ifneq (,$(findstring risky,$(DEB_BUILD_OPTIONS)))
- weak-build-deps += liblame-dev
- confflags += --enable-mp3lame
- weak-build-deps += libfaad2-dev
- confflags += --enable-faadbin --enable-faad
- weak-build-deps += libfaac-dev
- confflags += --enable-faac
- weak-build-deps += libxvidcore-dev
- confflags += --enable-xvid
- $(warning Make sure these packages are installed: $(weak-build-deps))
- endif
- configure: configure-stamp
- configure-stamp:
- dh_testdir
- ./configure $(confflags) --prefix=/usr
- touch configure-stamp
- build: configure-stamp build-stamp
- build-stamp:
- dh_testdir
- cd doc && $(MAKE)
- cd libavutil && \
- rm -f Makefile.pic && \
- sed 's/^CFLAGS *=/&-fPIC -DPIC /' <Makefile >Makefile.pic && \
- $(MAKE) -f Makefile.pic && \
- mv libavutil.a libavutil_pic.a && \
- $(MAKE) clean && \
- rm -f Makefile.pic
- cd libavcodec && \
- rm -f Makefile.pic && \
- sed 's/^CFLAGS *=/&-fPIC -DPIC /' <Makefile >Makefile.pic && \
- $(MAKE) -f Makefile.pic && \
- mv libavcodec.a libavcodec_pic.a && \
- && \
- $(MAKE) clean && \
- rm -f Makefile.pic
- cd libavformat && \
- rm -f Makefile.pic && \
- sed 's/^CFLAGS *=/&-fPIC -DPIC /' <Makefile >Makefile.pic && \
- $(MAKE) -f Makefile.pic && \
- mv libavformat.a libavformat_pic.a && \
- $(MAKE) clean && \
- rm -f Makefile.pic
- $(MAKE)
- ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
- -cd tests && $(MAKE)
- endif
- touch build-stamp
- clean:
- dh_testdir
- dh_testroot
- rm -f build-stamp configure-stamp
- -cd doc && $(MAKE) clean
- -cd tests && $(MAKE) clean
- -$(MAKE) distclean
- rm -f libavcodec/Makefile.pic libavformat/Makefile.pic config.log
- rm -f libavutil/libavutil_pic.a
- rm -f libavcodec/libavcodec_pic.a
- rm -f libavcodec/libpostproc/libpostproc_pic.a
- rm -f libavformat/libavformat_pic.a
- rm -f libavcodec-uninstalled.pc libavcodec.pc
- rm -f libavutil-uninstalled.pc libavutil.pc
- rm -f libavformat-uninstalled.pc libavformat.pc
- rm -f libpostproc-uninstalled.pc libpostproc.pc
- dh_clean
- install: build
- dh_testdir
- dh_testroot
- dh_clean -k
- dh_installdirs -ptmp usr/share/doc/ffmpeg/html etc usr/include/ffmpeg usr/lib usr/bin usr/share/man/man1 usr/include/postproc
- $(MAKE) install DESTDIR=`pwd`/debian/tmp/ mandir=`pwd`/debian/tmp/usr/share/man
- $(MAKE) installlib DESTDIR=`pwd`/debian/tmp/
- cp libavutil/libavutil_pic.a libavcodec/libavcodec_pic.a libavcodec/libpostproc/libpostproc_pic.a libavformat/libavformat_pic.a debian/tmp/usr/lib
- cp libavcodec/libpostproc/libpostproc.a debian/tmp/usr/lib
- cp libavcodec/libpostproc/postprocess.h debian/tmp/usr/include/postproc
- cp libpostproc.pc debian/tmp/usr/lib/pkgconfig/
- cp doc/*.html debian/tmp/usr/share/doc/ffmpeg/html/
- cp doc/ffserver.conf debian/tmp/etc/
- sed s/@VERSION@/`dpkg-parsechangelog | sed -ne 's/^Version: //p'`/ ffmpeg-config.in > debian/tmp/usr/bin/ffmpeg-config
- chmod 644 debian/tmp/usr/bin/ffmpeg-config
- cp ffmpeg-config.1 debian/tmp/usr/share/man/man1/ffmpeg-config.1
- dh_install --fail-missing --sourcedir=debian/tmp
- # Build architecture-independent files here.
- binary-indep: build install
- # We have nothing to do by default.
- # Build architecture-dependent files here.
- binary-arch: build install
- # dh_testversion
- dh_testdir
- dh_testroot
- # dh_installdebconf
- dh_installdocs doc/ffmpeg_powerpc_performance_evaluation_howto.txt doc/optimization.txt
- dh_installdocs -A CREDITS doc/TODO debian/patents.txt debian/README.Debian
- dh_installexamples doc/ffserver.conf
- dh_installmenu
- # dh_installemacsen
- # dh_installpam
- # dh_installinit
- dh_installcron
- # dh_installmanpages
- dh_installinfo
- dh_installmime
- # dh_undocumented
- dh_installchangelogs Changelog
- dh_link
- dh_strip
- dh_compress
- dh_fixperms
- # dh_makeshlibs
- dh_installdeb
- # dh_perl
- dh_shlibdeps
- dh_gencontrol
- dh_md5sums
- dh_builddeb
- binary: binary-indep binary-arch
- .PHONY: build clean binary-indep binary-arch binary install configure
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.