diff options
author | kx <kx@radix.pro> | 2023-10-11 16:06:24 +0300 |
---|---|---|
committer | kx <kx@radix.pro> | 2023-10-11 16:06:24 +0300 |
commit | 50c97b5df3bfd4c671998ea6cc496b38648481a3 (patch) | |
tree | 5ab74a552eea67076648f919a10a68a98d58c331 /packages | |
parent | ef54946ddf187971e5f0779a60f6f0b11b5fde8f (diff) | |
download | sources-50c97b5df3bfd4c671998ea6cc496b38648481a3.tar.xz |
ImageMagik with PHP imagick
Diffstat (limited to 'packages')
-rw-r--r-- | packages/x/Makefile | 2 | ||||
-rw-r--r-- | packages/x/imagemagick/Makefile | 45 | ||||
-rw-r--r-- | packages/x/php-imagick/Makefile | 63 |
3 files changed, 110 insertions, 0 deletions
diff --git a/packages/x/Makefile b/packages/x/Makefile index f7ecf7f..b247d78 100644 --- a/packages/x/Makefile +++ b/packages/x/Makefile @@ -26,6 +26,7 @@ SUBDIRS := Vulkan \ gst-plugins-ugly \ gstreamer \ hicolor-icon-theme \ + imagemagick \ libdrm \ libepoxy \ liberation-fonts \ @@ -55,6 +56,7 @@ SUBDIRS := Vulkan \ openbox \ openjdk \ pcmanfm \ + php-imagick \ pidgin \ pycairo \ pyqt5 \ diff --git a/packages/x/imagemagick/Makefile b/packages/x/imagemagick/Makefile new file mode 100644 index 0000000..89efcbf --- /dev/null +++ b/packages/x/imagemagick/Makefile @@ -0,0 +1,45 @@ +# +# Project Home: +# ============ +# https://imagemagick.org +# +# Downloads: +# ========= +# https://imagemagick.org/archive +# + +url = https://imagemagick.org/archive + +versions = 7.1.1.20 + +tarname = ImageMagick +pkgname = imagemagick +suffix = tar.xz + +tarballs = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions))) +sha1s = $(addsuffix .sha1sum, $(tarballs)) + + +all: $(tarballs) $(signatures) $(sha1s) + +.PHONY: downloads_clean + +$(tarballs): + @echo -e "\n======= Downloading source tarballs =======\n" + @for version in $(versions) ; do \ + v=`echo $${version} | rev | sed 's,^\([0-9]*\)\.,\1-,' | rev` ; \ + wget -N $(url)/$(tarname)-$${v}.$(suffix) ; \ + tar xJf $(tarname)-$${v}.$(suffix) ; \ + mv $(tarname)-$${v} $(pkgname)-$${version} ; \ + tar cJf $(pkgname)-$${version}.$(suffix) $(pkgname)-$${version} ; \ + rm -rf $(pkgname)-$${version} $(tarname)-$${v}.$(suffix) ; \ + 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/x/php-imagick/Makefile b/packages/x/php-imagick/Makefile new file mode 100644 index 0000000..a16e0ed --- /dev/null +++ b/packages/x/php-imagick/Makefile @@ -0,0 +1,63 @@ +# +# Project Home: +# ============ +# https://github.com/imagick/imagick +# +# GitHub: +# ====== +# https://github.com/Imagick/imagick +# +# Clone: +# ===== +# git clone https://github.com/Imagick/imagick.git +# + +url = https://github.com/Imagick + +repo_name = imagick +pkg_name = php-imagick +suffix = tar.xz + +versions = 3.7.0 + +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=`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) |