From: Erwin Rol <[email protected]>

Signed-off-by: Erwin Rol <[email protected]>
---
 rules/libmpeg2.in   |    9 +++++
 rules/libmpeg2.make |   93 +++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 102 insertions(+), 0 deletions(-)
 create mode 100644 rules/libmpeg2.in
 create mode 100644 rules/libmpeg2.make

diff --git a/rules/libmpeg2.in b/rules/libmpeg2.in
new file mode 100644
index 0000000..e4d2481
--- /dev/null
+++ b/rules/libmpeg2.in
@@ -0,0 +1,9 @@
+## SECTION=multimedia_libs
+
+config LIBMPEG2
+       tristate
+       prompt "libmpeg2"
+       help
+         libmpeg2 is a free library for decoding mpeg-2
+         and mpeg-1 video streams. It is released under
+         the terms of the GPL license.
diff --git a/rules/libmpeg2.make b/rules/libmpeg2.make
new file mode 100644
index 0000000..d1daafb
--- /dev/null
+++ b/rules/libmpeg2.make
@@ -0,0 +1,93 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2009 by Erwin Rol
+#
+# 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_LIBMPEG2) += libmpeg2
+
+#
+# Paths and names
+#
+LIBMPEG2_VERSION       := 0.5.1
+LIBMPEG2               := libmpeg2-$(LIBMPEG2_VERSION)
+LIBMPEG2_SUFFIX                := tar.gz
+LIBMPEG2_URL           := 
http://libmpeg2.sourceforge.net/files//$(LIBMPEG2).$(LIBMPEG2_SUFFIX)
+LIBMPEG2_SOURCE                := $(SRCDIR)/$(LIBMPEG2).$(LIBMPEG2_SUFFIX)
+LIBMPEG2_DIR           := $(BUILDDIR)/$(LIBMPEG2)
+LIBMPEG2_LICENSE       := GPLv3
+
+# ----------------------------------------------------------------------------
+# Get
+# ----------------------------------------------------------------------------
+
+$(LIBMPEG2_SOURCE):
+       @$(call targetinfo)
+       @$(call get, LIBMPEG2)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+LIBMPEG2_PATH          := PATH=$(CROSS_PATH)
+LIBMPEG2_CONF_ENV      := $(CROSS_ENV)
+
+#
+# autoconf
+#
+LIBMPEG2_CONF_TOOL     := autoconf
+LIBMPEG2_CONF_OPT      := \
+       $(CROSS_AUTOCONF_USR) \
+       --disable-debug \
+       --disable-largefile \
+       --disable-accel-detect \
+       --disable-sdl \
+       --disable-warnings \
+       --disable-gprof \
+       --without-x 
+
+
+#      ac_cv_try_cflags_ok=no
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/libmpeg2.targetinstall:
+       @$(call targetinfo)
+
+       @$(call install_init, libmpeg2)
+       @$(call install_fixup, libmpeg2,PACKAGE,libmpeg2)
+       @$(call install_fixup, libmpeg2,PRIORITY,optional)
+       @$(call install_fixup, libmpeg2,VERSION,$(LIBMPEG2_VERSION))
+       @$(call install_fixup, libmpeg2,SECTION,base)
+       @$(call install_fixup, libmpeg2,AUTHOR,"Erwin Rol <[email protected]>")
+       @$(call install_fixup, libmpeg2,DEPENDS,)
+       @$(call install_fixup, libmpeg2,DESCRIPTION,missing)
+
+       @$(call install_copy, libmpeg2, 0, 0, 0644, -, \
+               /usr/lib/libmpeg2.so.0.1.0)
+       @$(call install_link, libmpeg2, libmpeg2.so.0.1.0, \
+                /usr/lib/libmpeg2.so.0)
+       @$(call install_link, libmpeg2, libmpeg2.so.0.1.0, \
+                /usr/lib/libmpeg2.so)
+
+       @$(call install_copy, libmpeg2, 0, 0, 0644, -, \
+               /usr/lib/libmpeg2convert.so.0.0.0)
+       @$(call install_link, libmpeg2, libmpeg2convert.so.0.0.0, \
+                /usr/lib/libmpeg2convert.so.0)
+       @$(call install_link, libmpeg2, libmpeg2convert.so.0.0.0, \
+                /usr/lib/libmpeg2convert.so)
+
+       @$(call install_finish, libmpeg2)
+
+       @$(call touch)
+
+# vim: syntax=make
-- 
1.6.0.6


--
ptxdist mailing list
[email protected]

Reply via email to