[31806] trunk/dports/security/afflib/Portfile

Ryan Schmidt ryandesign at macports.org
Fri Dec 7 22:48:09 PST 2007


On Dec 7, 2007, at 23:41, ricci at macports.org wrote:

> Revision: 31806
>           http://trac.macosforge.org/projects/macports/changeset/31806
> Author:   ricci at macports.org
> Date:     2007-12-07 21:41:46 -0800 (Fri, 07 Dec 2007)
>
> Log Message:
> -----------
> add a pre-destroot step to copy over the lib and include files

If this changes the complement of files that get installed by the  
port, you should increment the revision so anyone who had the  
previous complement of files gets informed of the update.

> Modified Paths:
> --------------
>     trunk/dports/security/afflib/Portfile
>
> Modified: trunk/dports/security/afflib/Portfile
> ===================================================================
> --- trunk/dports/security/afflib/Portfile	2007-12-08 04:25:07 UTC  
> (rev 31805)
> +++ trunk/dports/security/afflib/Portfile	2007-12-08 05:41:46 UTC  
> (rev 31806)
> @@ -33,7 +33,19 @@
>  		--with-ssl=${prefix}	\
>  		--with-zlib=${prefix}
>
> +pre-destroot {
> +	## install things that don't get automatically installed (say,  
> libs, headers...)
> +	## really the auto* stuff needs to be reworked, below is a band-aid
> +	xinstall -d ${destroot}/${prefix}/lib
> +	xinstall -m 0644 ${worksrcpath}/lib/.libs/libafflib.a ${destroot}/ 
> ${prefix}/lib/
> +	xinstall -d ${destroot}/${prefix}/include/${name}/lib
> +	foreach header [glob ${worksrcpath}/lib/*.h] {
> +		xinstall -m 0644 $header ${destroot}${prefix}/include/${name}/lib
> +	}
> +	xinstall -m 0644 ${worksrcpath}/config.h ${destroot}${prefix}/ 
> include/${name}/
> +}

There shouldn't be a slash between ${destroot} and ${prefix}. ($ 
{prefix} already begins with a slash.)



More information about the macports-dev mailing list