Radix cross Linux 3pp sources

RcL sources – is a tree of Third Party and Radix source tarballs

366 Commits   0 Branches   0 Tags
author: kx <kx@radix.pro> 2024-01-11 11:21:52 +0300 committer: kx <kx@radix.pro> 2024-01-11 11:21:52 +0300 commit: e5b2a816b5bcff2d56cb2b9d8985e44b100473ac parent: 769dc2bcd7d02d022f78bb76a7f54bb34a832faa
Commit Summary:
MPlayer-38448
Diffstat:
2 files changed, 36 insertions, 0 deletions
diff --git a/packages/m/Makefile b/packages/m/Makefile
index 100098e..a189d05 100644
--- a/packages/m/Makefile
+++ b/packages/m/Makefile
@@ -43,6 +43,7 @@ SUBDIRS := OpenMAX      \
            moc          \
            mp4v2        \
            mpg123       \
+           mplayer      \
            normalize    \
            openal-soft  \
            opencv       \
diff --git a/packages/m/mplayer/Makefile b/packages/m/mplayer/Makefile
new file mode 100644
index 0000000..eac1fe5
--- /dev/null
+++ b/packages/m/mplayer/Makefile
@@ -0,0 +1,45 @@
+#
+# Project Home:
+# ============
+#   http://www.mplayerhq.hu/
+#
+# Downloads:
+# =========
+#   http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.5.tar.xz
+#
+# Subversion:
+# ==========
+#   svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer
+#
+
+url         = svn://svn.mplayerhq.hu/mplayer/trunk
+
+versions    = 38448
+
+pkgname     = mplayer
+suffix      = tar.xz
+
+tarballs    = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
+sha1s       = $(addsuffix .sha1sum, $(tarballs))
+
+
+all: $(tarballs) $(sha1s)
+
+.PHONY: downloads_clean
+
+$(tarballs):
+	@echo -e "\n======= Downloading source tarballs =======\n"
+	@for version in $(versions) ; do \
+	  svn checkout -r$${version} $(url) $(pkgname)-$${version} ; \
+	  tar cJf $(pkgname)-$${version}.$(suffix) $(pkgname)-$${version} ; \
+	  rm -rf $(pkgname)-$${version} ; \
+	done
+
+$(sha1s): %.$(suffix).sha1sum : %.$(suffix)
+	@for tarball in $< ; do \
+	  echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
+	  sha1sum --binary $$tarball > $$tarball.sha1sum ; \
+	done
+
+downloads_clean:
+	@rm -rf $(tarballs) $(sha1s)