Ticket #12768: cups-headers-1.1.23.diff
File cups-headers-1.1.23.diff, 2.8 KB (added by nox@…, 17 years ago) |
---|
-
files/README.cups-headers.txt
1 The cups-headers port is a placeholder port that is only really meaningful2 on Mac OS X 10.3.x (Jaguar).3 4 If you have ports on other versions of Mac OS X that break on bad cups headers5 or library files, then this port should be uninstalled.6 7 This port should only install this readme file on versions of Mac OS X other8 than Jaguar. -
Portfile
3 3 PortSystem 1.0 4 4 5 5 name cups-headers 6 version 1.1.15 7 revision 1 6 version 1.1.23 8 7 categories devel 9 8 platforms darwin 10 9 maintainers nomaintainer … … 13 12 long_description \ 14 13 ${description} 15 14 16 master_sites http://www.opensource.apple.com/projects/cups/ 17 distname cups 15 homepage http://www.cups.org/ 16 master_sites macports 17 use_bzip2 yes 18 19 checksums md5 349757b62a6602d4487c749e2b71b6c4 \ 20 sha1 51ec33d88843bd1fb0be1d83762b8025bbf19a52 \ 21 rmd160 e88c0e222850660cce8474babd817931b9cdf1f0 18 22 19 checksums md5 b2aed0b50372687a56f4e665fdd85bee 23 build {} 20 24 21 configure {} 25 platform darwin 7 { 26 configure { 27 copy /usr/bin/cups-config ${worksrcpath} 28 reinplace -E "/^includedir/s|/usr|${prefix}|" ${worksrcpath}/cups-config 29 } 22 30 23 build {} 31 destroot.target installhdrs 32 destroot.args PREFIX=${prefix} 24 33 25 destroot {26 file mkdir ${destroot}${prefix}/share/doc27 file copy ${filespath}/README.cups-headers.txt ${destroot}${prefix}/share/doc34 post-destroot { 35 xinstall ${worksrcpath}/cups-config ${destroot}${prefix}/bin 36 } 28 37 } 29 38 30 platform darwin 7 { 31 build { 32 system "perl -pi -e 's,includedir=/usr/include,includedir=${prefix}/include,' '${workpath}/${worksrcdir}/cups-config'" 33 } 39 platform darwin 8 { 40 use_configure no 34 41 35 destroot { 36 system "install -d -m 755 '${destroot}${prefix}/bin'" 37 system "install -c -m 755 '${workpath}/${worksrcdir}/cups-config' '${destroot}${prefix}/bin/'cups-config" 38 system "cd '${workpath}/${worksrcdir}' && make installhdrs INCLUDEDIR='${destroot}${prefix}/include'" 39 file mkdir ${destroot}${prefix}/share/doc/ 40 file copy ${filespath}/README.cups-headers.txt ${destroot}${prefix}/share/doc 42 destroot { 43 set docdir ${prefix}/share/doc/${name}-${version} 44 xinstall -d ${destroot}${docdir} 45 xinstall -m 0644 ${worksrcpath}/README.Not.Panther ${destroot}${docdir}/README 41 46 } 42 47 } 43 48 49 universal_variant no 50