#10202: Make freetype have ${SAGE_LOCAL} as its prefix in the pkgconfig file
---------------------------+------------------------------------------------
Reporter: jason | Owner: leif
Type: enhancement | Status: new
Priority: critical | Milestone: sage-4.6.1
Component: packages | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
---------------------------+------------------------------------------------
Old description:
> Following up on the comments at the end of #9221, let's see if we can do
> the following:
>
> "At least for freetype, it should be possible to simply set prefix to
> $SAGE_LOCAL (unexpanded) rather than a hard-coded absolute path. (Done
> once, e.g. in its spkg-install.) "
>
> This would a lot of hassle in the sage-location script if this works.
> I'm not sure if these needs to be done as part of setting the prefix
> option on the command line when compiling, or if it needs to be done
> after freetype is installed (i.e., manually fix up the pkgconfig file)
New description:
Following up on the comments at the end of #9221, let's see if we can do
the following:
"At least for freetype, it should be possible to simply set prefix to
$SAGE_LOCAL (unexpanded) rather than a hard-coded absolute path. (Done
once, e.g. in its spkg-install.) "
This would a lot of hassle in the sage-location script if this works. I'm
not sure if these needs to be done as part of setting the prefix option on
the command line when compiling, or if it needs to be done after freetype
is installed (i.e., manually fix up the pkgconfig file)
In short, this ticket is to modify the spkg-install file in the freetype
spkg so that after installation, the freetype2.pc file would be something
like:
{{{
prefix=${SAGE_LOCAL}
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: FreeType 2
Description: A free, high-quality, and portable font engine.
Version: 9.16.3
Requires:
Libs: -L${libdir} -lfreetype -lz
Cflags: -I${includedir}/freetype2 -I${includedir}
}}}
--
Comment(by jason):
This ticket is getting confusing. When I opened it, the goal was to
modify the spkg-install file in the freetype spkg so that after
installation, the freetype2.pc file would be something like:
{{{
prefix=${SAGE_LOCAL}
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: FreeType 2
Description: A free, high-quality, and portable font engine.
Version: 9.16.3
Requires:
Libs: -L${libdir} -lfreetype -lz
Cflags: -I${includedir}/freetype2 -I${includedir}
}}}
I envision as the first of several spkgs that are updated to have similar
changes, so that sage-location (eventually) does not have to update the
pkgconfig files.
This ticket may necessitate changes in the sage-location script, as the
script no longer needs to update the pkgconfig file. However, I don't
think any harm is done in sage-location updating the pkgconfig file
either.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10202#comment:10>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.