summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkx <kx@radix.pro>2024-01-15 19:04:02 +0300
committerkx <kx@radix.pro>2024-01-15 19:04:02 +0300
commitd85ba8cfb6b7c6fbf43b267c644c30a199d391c1 (patch)
treee7be1465e12b8921436f501311a52271d919f10c
parent9bf9d9e58e7a06dab08ccb8a6f7b3d76532fab5f (diff)
downloadsources-d85ba8cfb6b7c6fbf43b267c644c30a199d391c1.tar.xz
libupnp, minidlna
-rw-r--r--packages/m/Makefile1
-rw-r--r--packages/m/minidlna/Makefile40
-rw-r--r--packages/n/Makefile1
-rw-r--r--packages/n/libupnp/Makefile62
4 files changed, 104 insertions, 0 deletions
diff --git a/packages/m/Makefile b/packages/m/Makefile
index 376aa19..f3221a1 100644
--- a/packages/m/Makefile
+++ b/packages/m/Makefile
@@ -43,6 +43,7 @@ SUBDIRS := OpenMAX \
mad \
mega-nerd \
mikmod \
+ minidlna \
moc \
mp4v2 \
mpg123 \
diff --git a/packages/m/minidlna/Makefile b/packages/m/minidlna/Makefile
new file mode 100644
index 0000000..ccd4418
--- /dev/null
+++ b/packages/m/minidlna/Makefile
@@ -0,0 +1,40 @@
+#
+# Project Home:
+# ============
+# https://sourceforge.net/projects/minidlna/
+#
+# Downloads:
+# =========
+# https://downloads.sourceforge.net/project/minidlna
+#
+
+url = https://downloads.sourceforge.net/minidlna
+
+versions = 1.3.3
+
+pkgname = minidlna
+suffix = tar.gz
+
+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 tarball in $(tarballs) ; do \
+ version=`echo $$tarball | sed 's/\([a-zA-Z-]*\)\([0-9][.0-9]*[.0-9]*\)\(\.tar.*\)/\2/'` ; \
+ wget -N $(url)/$$version/$$tarball ; \
+ 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)
diff --git a/packages/n/Makefile b/packages/n/Makefile
index c82ee24..45bcec4 100644
--- a/packages/n/Makefile
+++ b/packages/n/Makefile
@@ -86,6 +86,7 @@ SUBDIRS := ModemManager \
libsignal-protocol-c \
libsrtp \
libtirpc \
+ libupnp \
links \
lynx \
mailx \
diff --git a/packages/n/libupnp/Makefile b/packages/n/libupnp/Makefile
new file mode 100644
index 0000000..fa0b2c4
--- /dev/null
+++ b/packages/n/libupnp/Makefile
@@ -0,0 +1,62 @@
+#
+# Project Home:
+# ============
+# https://pupnp.sourceforge.io/
+#
+# Clone:
+# =====
+# git clone https://github.com/pupnp/pupnp.git
+#
+
+url = https://github.com/pupnp
+
+repo_name = pupnp
+pkg_name = libupnp
+suffix = tar.xz
+
+versions = 1.14.18
+
+# List of tags to be extracted:
+TAGS = $(addprefix release-, $(versions))
+
+git_repo = .git_clone
+tarballs = $(addsuffix .tar.xz, $(addprefix $(pkg_name)-, $(versions)))
+sha1s = $(addsuffix .sha1sum, $(tarballs))
+
+TARGETS = repository_clean
+
+
+all: $(TARGETS)
+
+.PHONY: downloads_clean repository_clean
+
+$(git_repo):
+ @echo -e "\n======= Clone $(repo_name).git repository =======\n"
+ @rm -rf $(repo_name)
+ @git clone $(url)/$(repo_name).git $(repo_name)
+ @touch $@
+
+$(tarballs): $(git_repo)
+ @for version in $(versions) ; do \
+ tag=release-`echo $$version` ; \
+ if [ ! -f $(repo_name)-$$version.$(suffix) ]; then \
+ echo -e "\n======= Creating '$(repo_name)-$$version.$(suffix)' snapshot =======" ; \
+ ( cd $(repo_name) && \
+ git archive --format=tar --prefix=$(pkg_name)-$$version/ $$tag | \
+ xz >../$(pkg_name)-$$version.$(suffix) ) ; \
+ fi ; \
+ done
+
+$(sha1s): %.tar.xz.sha1sum : %.tar.xz
+ @for tarball in $< ; do \
+ echo -e "\n======= Calculation the '$$tarball' sha1sum =======" ; \
+ sha1sum --binary $$tarball > $$tarball.sha1sum ; \
+ done
+
+repository_clean: $(sha1s)
+ @echo -e "\n======= Remove cloned $(repo_name).git repository =======\n"
+ @rm -rf $(git_repo) $(repo_name)
+
+downloads_clean:
+ @rm -rf $(tarballs) $(sha1s)
+ @rm -rf $(git_repo) $(repo_name)