source: trunk/dports/devel/libpub/Portfile

Last change on this file was 95328, checked in by jmr@…, 5 years ago

libpub: set license, update homepage

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1# $Id: Portfile 95328 2012-07-09 22:32:00Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    libpub
6version                 0.35
7revision                2
8categories              devel
9license                 BSD
10platforms               darwin
11maintainers             nomaintainer
12description             library of C functions for various purposes.
13long_description        ${description}
14
15homepage                http://code.google.com/p/publib/
16master_sites    http://liw.iki.fi/liw/download/
17distname                publib-${version}
18checksums               md5 843a8914a103d39a40219944f167c75b
19patchfiles              patch-cfg.c \
20                                patch-lsm_check_entry.c \
21                                patch-Makefile.in
22
23patch.dir               ${worksrcpath}
24worksrcdir              ${worksrcdir}/framework
25
26set pre /Library/OpenDarwin/Frameworks/${name}.framework/Versions/${version}
27
28build.args              libdir=${pre}/Libraries
29
30destroot.destdir        prefix=${destroot}${prefix} \
31                                mandir=${destroot}${prefix}/share/man \
32                                libdir=${destroot}${pre}/Libraries \
33                                incdir=${destroot}${pre}/Includes
34
35post-destroot {
36        system "find ${workpath} -name \\*.3 -exec install -m 644 {} \
37                ${destroot}${prefix}/share/man/man3 \\;"
38        file delete ${destroot}${prefix}/share/man/man3/hash.3
39        system "cd ${destroot}${pre}/.. && ln -s ${version} Current"
40        system "cd ${destroot}${pre}/../.. && \
41                ln -s Versions/Current/Headers && \
42                ln -s Versions/Current/Libraries"
43}
Note: See TracBrowser for help on using the repository browser.