source: trunk/dports/devel/dylibbundler/Portfile

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

dylibbundler: fix off-by-one error in computing the filename from the "otool" output which resulted in an extra space at the end of every filename; also use rfind instead of find to properly handle files whose names contain the search string " ("

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 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 136949 2015-05-31 04:17:42Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                dylibbundler
7version             0.4.4
8revision            2
9categories          devel
10platforms           darwin
11maintainers         strasweb.fr:rudloff openmaintainer
12license             GPL-2+
13
14description         terminal utility for Mac OS X that eases bundling dynamic \
15                    libraries (.dylib) inside app bundles
16
17long_description    ${name} is a small command-line programs that aims to \
18                    make bundling .dylibs as easy as possible. It \
19                    automatically determines which dylibs are needed by your \
20                    program, copies these libraries inside the app bundle, \
21                    and fixes both them and the executable to be ready for \
22                    distribution, all this with a single command. It will \
23                    also work if your program uses plug-ins that have \
24                    dependencies too.
25
26homepage            http://macdylibbundler.sourceforge.net/
27master_sites        sourceforge:project/macdylibbundler/macdylibbundler/${version}
28use_zip             yes
29
30checksums           rmd160  e6c4f4d6f7ba340775e5af3942f0d5740b3a7152 \
31                    sha256  65d050327df99d12d96ae31a693bace447f4115e6874648f1b3960a014362200
32
33pre-fetch {
34    if {${os.platform} ne "darwin"} {
35        ui_error "${name} is designed for use on Darwin or OS X only."
36        return -code error "incompatible platform"
37    }
38}
39
40patchfiles          patch-makefile.diff \
41                    patch-src-DylibBundler.cpp.diff \
42                    patch-src-main.cpp.diff
43
44post-patch {
45    reinplace "s|@VERSION@|${version}|g" ${worksrcpath}/src/main.cpp
46}
47
48use_configure       no
49
50variant universal {}
51
52build.args          CXX="${configure.cxx} [get_canonical_archflags cxx]"
53
54destroot.args       PREFIX=${prefix}
55
56post-destroot {
57    set docdir ${prefix}/share/doc/${subport}
58    xinstall -d ${destroot}${docdir}
59    xinstall -m 644 -W ${worksrcpath} dylibbundler.png index.html maclib.jpg ${destroot}${docdir}
60}
Note: See TracBrowser for help on using the repository browser.