Skip to content

jxrlib: Submission; ImageMagick, ImageMagick7: Add runtime dependencies #28100

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion graphics/ImageMagick/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ depends_lib port:bzip2 \
# Magick-config etc. use pkg-config
depends_lib-append path:bin/pkg-config:pkgconfig

depends_run port:urw-fonts
# see ${prefix}/local/etc/ImageMagick-6/delegates.xml
depends_run port:jxrlib \
port:libbpg \
port:urw-fonts \
port:xdg-utils

configure.ccache no

Expand Down
6 changes: 5 additions & 1 deletion graphics/ImageMagick7/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ depends_lib port:bzip2 \
# Magick-config etc. use pkg-config
depends_lib-append path:bin/pkg-config:pkgconfig

depends_run port:urw-fonts
# see ${prefix}/lib/ImageMagick7/etc/ImageMagick-7/delegates.xml
depends_run port:jxrlib \
port:libbpg \
port:urw-fonts \
port:xdg-utils

# error: wrong number of arguments specified for 'deprecated' attribute
compiler.blacklist-append \
Expand Down
56 changes: 56 additions & 0 deletions graphics/jxrlib/Portfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem 1.0
PortGroup cmake 1.1

name jxrlib
set version_name 1.2~git20170615.f752187
# version looks like `1.2_git20170615-f752187`
regsub {^((?:\d+\.?)+)~git((?:\d+\.?)+)\.([A-Fa-f\d]+)} \
$version_name \
{\1_git\2-\3} \
version
revision 0
categories graphics
license BSD
maintainers nomaintainer

description Microsoft JPEG XR Image Codec reference implementation library

long_description {*}${description}

homepage https://tracker.debian.org/pkg/${name}

use_xz yes

master_sites https://deb.debian.org/debian/pool/main/j/${name}:deb \
https://raw.githubusercontent.com/Gcenx/macports-wine/1b310a17497f9a49cc82789cc5afa2d22bb67c0c/graphics/jxrlib/files:github

distfiles ${name}_${version_name}.orig${extract.suffix}:deb

patchfiles 0001-Add-ability-to-build-using-cmake.patch:github

checksums [lindex [split [lindex ${distfiles} 0] :] 0] \
rmd160 69e482bf74adf2ae93833d8259b537d7fb6bd3d4 \
sha256 3e3c9d3752b0bbf018ed9ce01b43dcd4be866521dc2370dc9221520b5bd440d4 \
size 201236

checksums-append [lindex [split [lindex ${patchfiles} 0] :] 0] \
rmd160 b26417c2fc5adbbb8c91aca194826d0d09957ed4 \
sha256 beebe13d40bc5b0ce645db26b3c8f8409952d88495bbab8bc3bebc954bdecffe \
size 6857

worksrcdir ${name}-${version_name}

patch.pre_args-replace \
-p0 \
-p1

post-patch {
reinplace s|@VERSION@|${version}|g \
${worksrcpath}/CMakeLists.txt
}

livecheck.url https://deb.debian.org/debian/pool/main/j/${name}
livecheck.version ${version_name}
livecheck.regex "${name}_(\[^\"\]+).orig${extract.suffix}"