The PDCurses 3.9 package on SLackBuilds.org now creates a pkg-config file
for use in building the Hessling editor 3.3RC8.

https://slackbuilds.org/repository/15.0/libraries/PDCurses/

Here is the x86_64 version of the file,
/usr/lib64/pkgconfig/libpdcurses-x11.pc

---cut here--------------------------------------------------------------
prefix=/usr
exec_prefix=${prefix}
libdir=${prefix}/lib64
includedir=${prefix}/include/xcurses
version=3.9

Name: PDCurses
Description: PDCurses ${version} X11 library
Version: ${version}
URL: https://pdcurses.org
Requires.private:
Libs:  -l:libXCurses.a  -lXaw -lXmu -lXt -lX11 -lXpm -lSM -lICE -lXext
Libs.private:
Cflags:  -DXCURSES -I${includedir} -I/usr/include/X11
---cut here--------------------------------------------------------------

Ideally this file would be named the same as the library:

/usr/lib64/pkgconfig/LibXCurses.pc

And also it would have Libs: for dynamic loading and and Libs.private:
for static loading.

Libs: -lXCurses
Libs.private: -l:libXCurses.a  -lXaw -lXmu -lXt -lX11 -lXpm -lSM -lICE
-lXext

More information on creating these files is here:

https://www.freedesktop.org/wiki/Software/pkg-config/

Regards,
Richard Narron

Reply via email to