Commit Graph

9 Commits

Author SHA1 Message Date
Thomas Bracht Laumann Jespersen 9d4f70cfe9 Handle CMAKE_INSTALL_xxx being absolute paths for .pc file generation
In some cases the CMAKE_INSTAL_{BIN,MAN,DOC,LIB,INCLUDE}DIR variables
may turn out to be absolute paths in which case prepending ${prefix} in
the pkg-config .pc files will result in incorrect values.

For .pc file generation, figure out if these variables are absolute and
omit the prefix in the configured file when so.

See: ab25e4b7ed
2022-07-15 06:19:53 +02:00
Andreas Sturmlechner bec97ed6a5 Replace OPENJPEG_INSTALL_DOC_DIR with CMAKE_INSTALL_DOCDIR
This changes the default doc installdir to DATAROOTDIR/doc/PROJECT_NAME
2022-05-24 19:51:02 +02:00
Andreas Sturmlechner 0892057d7f Replace OPENJPEG_INSTALL_MAN_DIR with CMAKE_INSTALL_MANDIR 2022-05-24 19:50:35 +02:00
Andreas Sturmlechner b74882f6e2 Replace OPENJPEG_INSTALL_INCLUDE_DIR with CMAKE_INSTALL_INCLUDEDIR
CMAKE_INSTALL_FULL_INCLUDEDIR contains absolute path with CMAKE_INSTALL_PREFIX
2022-05-24 19:50:17 +02:00
Andreas Sturmlechner 4227a859df Replace OPENJPEG_INSTALL_LIB_DIR with CMAKE_INSTALL_LIBDIR
CMAKE_INSTALL_FULL_LIBDIR contains absolute path with CMAKE_INSTALL_PREFIX
2022-05-24 19:46:54 +02:00
Andreas Sturmlechner 44f172de49 Replace OPENJPEG_INSTALL_BIN_DIR with CMAKE_INSTALL_BINDIR 2022-05-24 19:42:58 +02:00
Biswapriyo Nath 17d1bc7f1a pkgconfig: Define OPJ_STATIC for static linking with pkgconf
allows for the usage of $(pkgconf --static --cflags libopenjp2) to produce
the proper CFLAGS for static linking. Relies on pkgconf rather than pkg-config
2022-05-15 18:11:50 +05:30
Mathieu Malaterre d847e477f0 [trunk] add missing private lib. Update issue 223 2014-02-24 17:22:48 +00:00
Mickael Savinaud 87e09a09da [trunk]add the pkgconfig support for openjp2 (thanks Winfried) 2012-12-03 12:21:48 +00:00