libtheora/Makefile |
| 1 | # |
| 2 | # Copyright (C) 2008 OpenWrt.org |
| 3 | # |
| 4 | # This is free software, licensed under the GNU General Public License v2. |
| 5 | # See /LICENSE for more information. |
| 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | |
| 10 | PKG_NAME:=libtheora |
| 11 | PKG_VERSION:=1.2.0alpha1 |
| 12 | PKG_RELEASE:=1 |
| 13 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
| 14 | PKG_SOURCE_URL:=http://downloads.xiph.org/releases/theora/ |
| 15 | PKG_MD5SUM:=a2b9b631aede517cf22dcd3f4abf8dd6 |
| 16 | PKG_FIXUP:=libtool |
| 17 | |
| 18 | PKG_BUILD_DEPENDS:=libvorbis |
| 19 | |
| 20 | include $(INCLUDE_DIR)/package.mk |
| 21 | |
| 22 | PKG_INSTALL=1 |
| 23 | |
| 24 | define Package/libtheora |
| 25 | MAINTAINER:="David Kuehling" <dvdkhlng TA gmx TOD de> |
| 26 | SECTION:=libs |
| 27 | CATEGORY:=Libraries |
| 28 | TITLE:=libtheora |
| 29 | URL:=http://xiph.org/theora/ |
| 30 | DEPENDS:=+libogg |
| 31 | endef |
| 32 | |
| 33 | define Package/libtheora/description |
| 34 | Theora is Xiph.Org\'s first publicly released video codec, intended |
| 35 | for use within the Foundation\'s Ogg multimedia streaming system. |
| 36 | Theora is derived directly from On2\'s VP3 codec. Theora adds more |
| 37 | degrees of freedom to the compression parameters and recent encoders |
| 38 | contain optimizations that make it much better than VP3\'s original code. |
| 39 | endef |
| 40 | |
| 41 | CONFIGURE_ARGS += --disable-float \ |
| 42 | --disable-examples \ |
| 43 | --disable-oggtest \ |
| 44 | --disable-vorbistest \ |
| 45 | --disable-sdltest \ |
| 46 | |
| 47 | # override -Os, to not cripple theora's performance |
| 48 | TARGET_CFLAGS += -O2 |
| 49 | |
| 50 | # remove, once we're done with tuning |
| 51 | MAKE_FLAGS += -j4 |
| 52 | |
| 53 | define Build/Configure |
| 54 | $(call Build/Configure/Default) |
| 55 | endef |
| 56 | |
| 57 | define Build/InstallDev |
| 58 | $(INSTALL_DIR) $(1)/usr/include/theora/ |
| 59 | $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/theora/* $(1)/usr/include/theora/ |
| 60 | $(INSTALL_DIR) $(1)/usr/lib/ |
| 61 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} $(1)/usr/lib/ |
| 62 | $(INSTALL_DIR) $(1)/usr/lib/pkgconfig/ |
| 63 | $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* $(1)/usr/lib/pkgconfig/ |
| 64 | endef |
| 65 | |
| 66 | define Package/libtheora/install |
| 67 | $(INSTALL_DIR) $(1)/usr/lib/ |
| 68 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/ |
| 69 | endef |
| 70 | |
| 71 | $(eval $(call BuildPackage,libtheora)) |
| 72 | |
| 73 | |
| 74 | # The following comments configure the Emacs editor. Just ignore them. |
| 75 | # Local Variables: |
| 76 | # compile-command: "make -C ~/h/src/qi/openwrt-xburst package/libtheora/compile -j2 V=99" |
| 77 | # End: |
libtheora/patches/001-no_docs_tests.patch |
| 1 | Index: libtheora-1.2.0alpha1/Makefile.am |
| 2 | =================================================================== |
| 3 | --- libtheora-1.2.0alpha1.orig/Makefile.am 2010-09-23 22:26:52.000000000 +0200 |
| 4 | @@ -8,7 +8,7 @@ |
| 5 | EXAMPLES_DIR = |
| 6 | endif |
| 7 | |
| 8 | -SUBDIRS = lib include doc tests m4 $(EXAMPLES_DIR) |
| 9 | +SUBDIRS = lib include m4 $(EXAMPLES_DIR) |
| 10 | |
| 11 | |
| 12 | # we include the whole debian/ dir in EXTRA_DIST because there's a problem |
| 13 | Index: libtheora-1.2.0alpha1/Makefile.in |
| 14 | =================================================================== |
| 15 | --- libtheora-1.2.0alpha1.orig/Makefile.in 2010-09-23 23:59:14.000000000 +0200 |
| 16 | @@ -106,7 +106,7 @@ |
| 17 | distdir dist dist-all distcheck |
| 18 | ETAGS = etags |
| 19 | CTAGS = ctags |
| 20 | -DIST_SUBDIRS = lib include doc tests m4 examples |
| 21 | +DIST_SUBDIRS = lib include m4 |
| 22 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
| 23 | distdir = $(PACKAGE)-$(VERSION) |
| 24 | top_distdir = $(distdir) |
| 25 | @@ -312,7 +312,7 @@ |
| 26 | AUTOMAKE_OPTIONS = foreign 1.11 dist-zip dist-xz |
| 27 | @THEORA_ENABLE_EXAMPLES_FALSE@EXAMPLES_DIR = |
| 28 | @THEORA_ENABLE_EXAMPLES_TRUE@EXAMPLES_DIR = examples |
| 29 | -SUBDIRS = lib include doc tests m4 $(EXAMPLES_DIR) |
| 30 | +SUBDIRS = lib include m4 $(EXAMPLES_DIR) |
| 31 | |
| 32 | # we include the whole debian/ dir in EXTRA_DIST because there's a problem |
| 33 | # with autotools and HFS+ MacOSX file systems that caused debian/Makefile.am |