# -*- 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
name dmg2img
version 1.6.7
revision 0
categories sysutils
maintainers puredarwin.org:probono openmaintainer
license GPL-2
description Converts Apple DMG files to standard HFS+ images
long_description DMG2IMG is a tool to convert Apple's compressed dmg \
files to standard (hfsplus) disk images. It is derived \
from dmg2iso v0.2c by vu1tur.
homepage http://vu1tur.eu.org/tools/
master_sites ${homepage}
platforms darwin
checksums rmd160 4b3dfa6b02f39cbe1020605e3c32c06936df6852 \
sha256 02aea6d05c5b810074913b954296ddffaa43497ed720ac0a671da4791ec4d018 \
size 23238
depends_lib port:openssl10 \
port:zlib \
port:bzip2
patchfiles patch-Makefile
use_configure no
variant universal {}
configure.cflags-prepend -I${prefix}/include/openssl-1.0
configure.ldflags-prepend -L${prefix}/lib/openssl-1.0
build.env CC=${configure.cc}
build.args CFLAGS+="${configure.cflags} [get_canonical_archflags cc]" \
LDFLAGS+="${configure.ldflags} [get_canonical_archflags ld]"
destroot {
xinstall -W ${worksrcpath} dmg2img vfdecrypt ${destroot}${prefix}/bin
xinstall -m 644 -W ${worksrcpath} vfdecrypt.1 ${destroot}${prefix}/share/man/man1
set docdir ${destroot}${prefix}/share/doc/${name}
xinstall -d ${docdir}
xinstall -m 644 -W ${worksrcpath} README COPYING ${docdir}
}
livecheck.type regex
livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}