[134734] trunk/dports/graphics/netpbm/Portfile
ryandesign at macports.org
ryandesign at macports.org
Sun Apr 5 16:39:36 PDT 2015
Revision: 134734
https://trac.macports.org/changeset/134734
Author: ryandesign at macports.org
Date: 2015-04-05 16:39:36 -0700 (Sun, 05 Apr 2015)
Log Message:
-----------
netpbm: update to 10.70.00; install netpbm-config and netpbm.pc pkg-config file; install documentation files
Modified Paths:
--------------
trunk/dports/graphics/netpbm/Portfile
Modified: trunk/dports/graphics/netpbm/Portfile
===================================================================
--- trunk/dports/graphics/netpbm/Portfile 2015-04-05 23:19:26 UTC (rev 134733)
+++ trunk/dports/graphics/netpbm/Portfile 2015-04-05 23:39:36 UTC (rev 134734)
@@ -5,8 +5,8 @@
PortGroup conflicts_build 1.0
name netpbm
-version 10.69.07
-svn.revision 2436
+version 10.70.00
+svn.revision 2442
categories graphics
platforms darwin freebsd linux
maintainers ryandesign openmaintainer
@@ -117,20 +117,47 @@
destroot.destdir pkgdir=${destroot}${prefix}
pre-destroot {
+ # "make package" complains if this directory already exists.
delete ${destroot}${prefix}
}
post-destroot {
- xinstall -m 755 -d ${destroot}${prefix}/share/netpbm
- eval move ${destroot}${prefix}/bin/doc.url [glob ${destroot}${prefix}/misc/*] ${destroot}${prefix}/share/netpbm
+ xinstall -d ${destroot}${prefix}/share/${name}/
+ move ${destroot}${prefix}/bin/doc.url {*}[glob ${destroot}${prefix}/misc/*] ${destroot}${prefix}/share/${name}/
+ move ${destroot}${prefix}/link/libnetpbm.a ${destroot}${prefix}/lib/
move ${destroot}${prefix}/man ${destroot}${prefix}/share/
- move ${destroot}${prefix}/link/libnetpbm.a ${destroot}${prefix}/lib
- eval delete [glob -type f -directory ${destroot}${prefix} *]
+ reinplace -W ${destroot}${prefix} "/^@/d" config_template pkgconfig_template
+ reinplace -W ${destroot}${prefix} "s|@BINDIR@|${prefix}/bin|g" config_template pkgconfig_template
+ reinplace -W ${destroot}${prefix} "s|@DATADIR@|${prefix}/share/${name}|g" config_template pkgconfig_template
+ reinplace -W ${destroot}${prefix} "s|@INCLUDEDIR@|${prefix}/include|g" config_template pkgconfig_template
+ reinplace -W ${destroot}${prefix} "s|@LIBDIR@|${prefix}/lib|g" config_template pkgconfig_template
+ reinplace -W ${destroot}${prefix} "s|@LINKDIR@|${prefix}/lib|g" config_template pkgconfig_template
+ reinplace -W ${destroot}${prefix} "s|@MANDIR@|${prefix}/share/man|g" config_template pkgconfig_template
+ reinplace -W ${destroot}${prefix} "s|@VERSION@|${version}|g" config_template pkgconfig_template
+ xinstall -d ${destroot}${prefix}/lib/pkgconfig/
+ xinstall ${destroot}${prefix}/config_template ${destroot}${prefix}/bin/netpbm-config
+ move ${destroot}${prefix}/pkgconfig_template ${destroot}${prefix}/lib/pkgconfig/netpbm.pc
+ delete {*}[glob -type f -directory ${destroot}${prefix} *]
+
foreach old_library {pbm pgm pnm ppm} {
ln -s libnetpbm.dylib ${destroot}${prefix}/lib/lib${old_library}.dylib
}
+
+ set docdir ${prefix}/share/doc/${subport}
+ xinstall -d ${destroot}${docdir}
+ xinstall -m 644 -W ${worksrcpath} \
+ README \
+ doc/COPYRIGHT.PATENT \
+ doc/GPL_LICENSE.txt \
+ doc/HISTORY \
+ doc/Netpbm.programming \
+ doc/USERDOC \
+ doc/copyright_summary \
+ doc/lgpl_v21.txt \
+ doc/patent_summary \
+ ${destroot}${docdir}
}
# work around bug in Apple's gcc build 4061
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150405/4f744f4a/attachment-0001.html>
More information about the macports-changes
mailing list