summaryrefslogtreecommitdiffstats
path: root/rules/libtheora.make
diff options
context:
space:
mode:
authorRobert Schwebel <r.schwebel@pengutronix.de>2008-07-30 16:33:14 +0000
committerRobert Schwebel <r.schwebel@pengutronix.de>2008-07-30 16:33:14 +0000
commit7a58a4130bc5f0dd55baa6d48a55092af39040a3 (patch)
tree5b2fdfd19c518ba8c2ec8856b13b91688b700f62 /rules/libtheora.make
parentb3b42a9dbbc581c06644cbcca2ea4efd77ac878b (diff)
downloadptxdist-7a58a4130bc5f0dd55baa6d48a55092af39040a3.tar.gz
ptxdist-7a58a4130bc5f0dd55baa6d48a55092af39040a3.tar.xz
* libtheora: added
git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@8697 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'rules/libtheora.make')
-rw-r--r--rules/libtheora.make163
1 files changed, 163 insertions, 0 deletions
diff --git a/rules/libtheora.make b/rules/libtheora.make
new file mode 100644
index 000000000..48bdb7203
--- /dev/null
+++ b/rules/libtheora.make
@@ -0,0 +1,163 @@
+# -*-makefile-*-
+# $Id: template-make 8509 2008-06-12 12:45:40Z mkl $
+#
+# Copyright (C) 2008 by Robert Schwebel
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_LIBTHEORA) += libtheora
+
+#
+# Paths and names
+#
+LIBTHEORA_VERSION := 1.0beta3
+LIBTHEORA := libtheora-$(LIBTHEORA_VERSION)
+LIBTHEORA_SUFFIX := tar.gz
+LIBTHEORA_URL := http://downloads.xiph.org/releases/theora/$(LIBTHEORA).$(LIBTHEORA_SUFFIX)
+LIBTHEORA_SOURCE := $(SRCDIR)/$(LIBTHEORA).$(LIBTHEORA_SUFFIX)
+LIBTHEORA_DIR := $(BUILDDIR)/$(LIBTHEORA)
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+$(LIBTHEORA_SOURCE):
+ @$(call targetinfo)
+ @$(call get, LIBTHEORA)
+
+# ----------------------------------------------------------------------------
+# Extract
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/libtheora.extract:
+ @$(call targetinfo)
+ @$(call clean, $(LIBTHEORA_DIR))
+ @$(call extract, LIBTHEORA)
+ @$(call patchin, LIBTHEORA)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+LIBTHEORA_PATH := PATH=$(CROSS_PATH)
+LIBTHEORA_ENV := $(CROSS_ENV)
+
+#
+# autoconf
+#
+LIBTHEORA_AUTOCONF := \
+ $(CROSS_AUTOCONF_USR) \
+ --enable-asm \
+ --disable-examples \
+ --disable-oggtest \
+ --disable-vorbistest \
+ --disable-sdltest
+
+ifdef PTXCONF_LIBTHEORA__OGG
+LIBTHEORA_AUTOCONF += --enable-ogg
+else
+LIBTHEORA_AUTOCONF += --disable-ogg
+endif
+ifdef PTXCONF_LIBTHEORA__VORBIS
+LIBTHEORA_AUTOCONF += --enable-vorbis
+else
+LIBTHEORA_AUTOCONF += --disable-vorbis
+endif
+ifdef PTXCONF_LIBTHEORA__SDL
+LIBTHEORA_AUTOCONF += --enable-sdl
+else
+LIBTHEORA_AUTOCONF += --disable-sdl
+endif
+ifdef PTXCONF_LIBTHEORA__FLOAT
+LIBTHEORA_AUTOCONF += --enable-float
+else
+LIBTHEORA_AUTOCONF += --disable-float
+endif
+ifdef PTXCONF_LIBTHEORA__ENCODING
+LIBTHEORA_AUTOCONF += --enable-encoding
+else
+LIBTHEORA_AUTOCONF += --disable-encoding
+endif
+
+$(STATEDIR)/libtheora.prepare:
+ @$(call targetinfo)
+ @$(call clean, $(LIBTHEORA_DIR)/config.cache)
+ cd $(LIBTHEORA_DIR) && \
+ $(LIBTHEORA_PATH) $(LIBTHEORA_ENV) \
+ ./configure $(LIBTHEORA_AUTOCONF)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/libtheora.compile:
+ @$(call targetinfo)
+ cd $(LIBTHEORA_DIR) && $(LIBTHEORA_PATH) $(MAKE) $(PARALLELMFLAGS)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/libtheora.install:
+ @$(call targetinfo)
+ @$(call install, LIBTHEORA)
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/libtheora.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, libtheora)
+ @$(call install_fixup, libtheora,PACKAGE,libtheora)
+ @$(call install_fixup, libtheora,PRIORITY,optional)
+ @$(call install_fixup, libtheora,VERSION,$(LIBTHEORA_VERSION))
+ @$(call install_fixup, libtheora,SECTION,base)
+ @$(call install_fixup, libtheora,AUTHOR,"Robert Schwebel <r.schwebel\@pengutronix.de>")
+ @$(call install_fixup, libtheora,DEPENDS,)
+ @$(call install_fixup, libtheora,DESCRIPTION,missing)
+
+ @$(call install_copy, libtheora, 0, 0, 0644, \
+ $(LIBTHEORA_DIR)/lib/.libs/libtheora.so.0.3.3, \
+ /usr/lib/libtheora.so.0.3.3)
+ @$(call install_link, libtheora, libtheora.so.0.3.3, libtheora.so.0)
+ @$(call install_link, libtheora, libtheora.so.0.3.3, libtheora.so)
+
+ @$(call install_copy, libtheora, 0, 0, 0644, \
+ $(LIBTHEORA_DIR)/lib/.libs/libtheoradec.so.1.0.0, \
+ /usr/lib/libtheoradec.so.1.0.0)
+ @$(call install_link, libtheora, libtheoradec.so.1.0.0, libtheoradec.so.0)
+ @$(call install_link, libtheora, libtheoradec.so.1.0.0, libtheoradec.so)
+
+ @$(call install_copy, libtheora, 0, 0, 0644, \
+ $(LIBTHEORA_DIR)/lib/.libs/libtheoraenc.so.1.0.0, \
+ /usr/lib/libtheoraenc.so.1.0.0)
+ @$(call install_link, libtheora, libtheoraenc.so.1.0.0, libtheoraenc.so.0)
+ @$(call install_link, libtheora, libtheoraenc.so.1.0.0, libtheoraenc.so)
+
+ @$(call install_finish, libtheora)
+
+ @$(call touch)
+
+# ----------------------------------------------------------------------------
+# Clean
+# ----------------------------------------------------------------------------
+
+libtheora_clean:
+ rm -rf $(STATEDIR)/libtheora.*
+ rm -rf $(PKGDIR)/libtheora_*
+ rm -rf $(LIBTHEORA_DIR)
+
+# vim: syntax=make