[73522] trunk/dports/graphics/argyll/Portfile
michaelld at macports.org
michaelld at macports.org
Tue Nov 16 08:35:17 PST 2010
Revision: 73522
http://trac.macports.org/changeset/73522
Author: michaelld at macports.org
Date: 2010-11-16 08:35:12 -0800 (Tue, 16 Nov 2010)
Log Message:
-----------
argyll: install all headers, not just those pre-select by Jam.
Modified Paths:
--------------
trunk/dports/graphics/argyll/Portfile
Modified: trunk/dports/graphics/argyll/Portfile
===================================================================
--- trunk/dports/graphics/argyll/Portfile 2010-11-16 13:44:38 UTC (rev 73521)
+++ trunk/dports/graphics/argyll/Portfile 2010-11-16 16:35:12 UTC (rev 73522)
@@ -5,6 +5,7 @@
name argyll
version 1.3.2
+revision 1
categories graphics
platforms darwin
maintainers nomaintainer
@@ -37,6 +38,10 @@
patchfiles patch-jamfiles.diff \
patch-spectro_usbio.c.diff
+# parts of Argyll (plot and spectra) use 32-bit Carbon;
+# restrict build arches
+supported_archs i386 ppc
+
post-patch {
# hard-wire libusb-compat info for now
reinplace "s, at LIBUSBLIBDIR@,${prefix}/lib,g" \
@@ -46,16 +51,13 @@
reinplace "s, at LIBUSBNAME@,libusb,g" \
${worksrcpath}/Jamtop
- # fix IOKit header include: G -> g
+ # fix IOKit header include: G -> g, for case sensitive file systems
reinplace "/include/s,IOKit/Graphics/IOGraphicsLib,IOKit/graphics/IOGraphicsLib,g" ${worksrcpath}/spectro/dispwin.h
- # set to install headers and libraries
+ # set to install all libraries
foreach fixfile [exec find ${worksrcpath} -name Jamfile] {
reinplace "s,#InstallLib,InstallLib,g" ${fixfile}
}
- foreach fixfile [exec find ${worksrcpath} -name Jamfile] {
- reinplace "s,#InstallFile,InstallFile,g" ${fixfile}
- }
}
configure {
@@ -68,9 +70,6 @@
${worksrcpath}/Jambase
}
-# uses Carbon 32-bit, so restrict
-supported_archs i386 ppc
-
# 'destroot' actually just installed files locally to
# the worksrcpath
@@ -78,9 +77,11 @@
# Install documentation.
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 -W ${worksrcpath} \
- License.txt License2.txt License3.txt \
notes.txt Readme.txt ttbd.txt \
${destroot}${prefix}/share/doc/${name}
+ system "cp -r ${worksrcpath}/doc/* \
+ ${destroot}${prefix}/share/doc/${name} && \
+ chmod 0644 ${destroot}${prefix}/share/doc/${name}/*"
# Install binaries
delete ${worksrcpath}/bin/License.txt
@@ -90,8 +91,17 @@
# Install headers
xinstall -m 755 -d ${destroot}${prefix}/include/${name}
- eval xinstall -m 644 [glob ${worksrcpath}/h/*.h] \
- ${destroot}${prefix}/include/${name}
+ foreach thisdir {cgats gamut h icc imdi jcnf numlib plot \
+ render rspl scanin spectro target \
+ ucmm xicc} {
+ eval xinstall -m 644 [glob ${worksrcpath}/${thisdir}/*.h] \
+ ${destroot}${prefix}/include/${name}
+ }
+ # correct some headers: #include <../Y/X> -> <X>
+ foreach header {scanrd_.h gam.h refi.h gamut.h} {
+ reinplace "s,\.\./\[^ /\]*/,,g" \
+ ${destroot}/${prefix}/include/${name}/${header}
+ }
# Install libraries
xinstall -m 755 -d ${destroot}${prefix}/lib
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101116/4a1a7666/attachment.html>
More information about the macports-changes
mailing list