# $Id: Portfile 95328 2012-07-09 22:32:00Z jmr@macports.org $ PortSystem 1.0 name libpub version 0.35 revision 2 categories devel license BSD platforms darwin maintainers nomaintainer description library of C functions for various purposes. long_description ${description} homepage http://code.google.com/p/publib/ master_sites http://liw.iki.fi/liw/download/ distname publib-${version} checksums md5 843a8914a103d39a40219944f167c75b patchfiles patch-cfg.c \ patch-lsm_check_entry.c \ patch-Makefile.in patch.dir ${worksrcpath} worksrcdir ${worksrcdir}/framework set pre /Library/OpenDarwin/Frameworks/${name}.framework/Versions/${version} build.args libdir=${pre}/Libraries destroot.destdir prefix=${destroot}${prefix} \ mandir=${destroot}${prefix}/share/man \ libdir=${destroot}${pre}/Libraries \ incdir=${destroot}${pre}/Includes post-destroot { system "find ${workpath} -name \\*.3 -exec install -m 644 {} \ ${destroot}${prefix}/share/man/man3 \\;" file delete ${destroot}${prefix}/share/man/man3/hash.3 system "cd ${destroot}${pre}/.. && ln -s ${version} Current" system "cd ${destroot}${pre}/../.. && \ ln -s Versions/Current/Headers && \ ln -s Versions/Current/Libraries" }