Re: Questions about creating a development package

"Isak Savo" <[email protected]>
Newsgroups gmane.comp.autopackage.devel
Message-ID <[email protected]>
2007/10/16, Jan Niklas Hasse <[email protected]>:
>
> >
> > > Because I want to see more programs using it, I am trying to let my own
> > > programs use it. The first one i tried is a static library, the package
> > > installs the development version (.a, .hpp, .pc).
> > > I got 2 questions:
> > > - How can i require the dev versions of packages? E.g. i have to require
> > > libpng-dev.
> > You have to think in different terms. You don't *really* depend on
> > something named libpng-dev, you depend on header files and some libs,
> > right? You should check for these.
>
> My pkg-config file contains:
>
> Libs: -ljngl -lGL
> Requires: libpng glib-2.0 xxf86vm
>
> So i need to check if libpng, glib-2.0 and xxf86vm are available for
> pkg-config. Is there a command to do this?

No I don't think so, but it should be fairly straightforward.
DIRS_TO_CHECK="/usr/share/pkg-config:$PKG_CONFIG_PATH"
IFS=:
for dir in $DIRS_TO_CHECK; do
  if [ -f "$dir/the-file.pc" ]; then
     #Whohoo, it exists
etc.

-Isak

---------------------------------------------------------------------
To unsubscribe, e-mail: autopackage-dev-unsubscribe-OfajU3CKLf1/[email protected]
For additional commands, e-mail: autopackage-dev-help-OfajU3CKLf1/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.