source: trunk/dports/archivers/libzzip/Portfile

Last change on this file was 137046, checked in by ryandesign@…, 2 years ago

libzzip: Don't create flat-namespace dylib on Yosemite

Quash the Libtool MACOSX_DEPLOYMENT_TARGET bug (comment:35:ticket:44596,
http://lists.gnu.org/archive/html/libtool-patches/2014-09/msg00000.html).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# -*- 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
2# $Id: Portfile 137046 2015-06-03 18:12:24Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name            libzzip
7set my_name     zziplib
8version         0.13.62
9revision        1
10set minor       [lindex [split ${version} .] 1]
11categories      archivers devel
12platforms       darwin
13license         LGPL
14maintainers     nomaintainer
15description     library providing read access on ZIP-archives
16
17long_description \
18    The ZZIPlib provides read access on ZIP-archives. The \
19    library uses only the patent-free compression-algorithms \
20    supported by Zlib. It provides functions that transparently \
21    access files being either real files or zipped files, \
22    both with the same filepath.
23
24homepage        http://zziplib.sourceforge.net/
25master_sites    sourceforge:project/zziplib/zziplib${minor}/${version}
26distname        ${my_name}-${version}
27use_bzip2       yes
28
29checksums       md5 5fe874946390f939ee8f4abe9624b96c \
30                sha1 cf8b642abd9db618324a1b98cc71492a007cd687 \
31                rmd160 f616e17d874175b628f3955c7bb9501490dd00aa
32
33depends_build   port:pkgconfig \
34                port:xmlto
35
36depends_lib     port:zlib
37
38patchfiles      patch-zzip_Makefile.in.diff \
39                yosemite-libtool.patch
40
41set docdir ${prefix}/share/doc/${name}
42
43configure.python    /usr/bin/python
44configure.env       ac_cv_path_PAX=":"
45
46post-configure {
47    set builddir [glob -dir ${worksrcpath} "Darwin*.d"]
48    reinplace -E {s|-arch [a-z0-9_]+||g} \
49        ${builddir}/zzip/zziplib-uninstalled.pc \
50        ${builddir}/zzip/zziplib.pc
51}
52
53post-destroot {
54    xinstall -d ${destroot}${docdir}/html
55
56    xinstall -m 0644 -W ${worksrcpath} COPYING.LIB ChangeLog README TODO \
57        ${destroot}${docdir}
58
59    eval xinstall -m 0644 [glob -directory ${worksrcpath}/docs "*.{css,htm}"] \
60        ${destroot}${docdir}/html
61
62    # We replace every soelim stub with a soft link, as ".so" groff directives
63    # don't work with gzip'd manpages.
64
65    foreach {f} [glob -directory ${destroot}${prefix}/share/man/man3 *.3] {
66        set channel [open ${f}]
67
68        if {[regexp {^\.so (.+)$} [read -nonewline ${channel}] _ target]} {
69            # This manpage is a soelim stub.
70            ln -sf [file tail ${target}] ${f}
71        }
72
73        close ${channel}
74    }
75}
76
77variant sdl description {Enable SDL support} {
78    depends_lib-append      port:libsdl
79
80    configure.args-append   --enable-sdl
81
82    post-destroot {
83        xinstall -m 0644 ${worksrcpath}/docs/README.SDL ${destroot}${docdir}
84    }
85}
86
87variant universal {
88    configure.env-append ac_cv_sizeof_long="(LONG_BIT/8)"
89}
90
91livecheck.type      regex
92livecheck.url       http://sourceforge.net/projects/${my_name}/files/${my_name}13/
93livecheck.regex     "${my_name}13\/(\\d+(?:\\.\\d+)*)"
Note: See TracBrowser for help on using the repository browser.