[trunk] add libopenjpeg-jpwl.pc.in. fix output when --disable-shared or --disable-static is passed to configure. Minor clean up of configure.ac.

This commit is contained in:
Vincent Torri 2011-10-10 06:51:08 +00:00
parent cee4505172
commit 81b9e78565
7 changed files with 51 additions and 15 deletions

View File

@ -7,6 +7,8 @@ What's New for OpenJPEG
October 10, 2011
* [vincent] fix 'distcheck' rule
+ [vincent] add libopenjpeg-jpwl.pc
* [vincent] fix output when --disable-shared or --disable-static is passed to configure. Minor clean up of configure.ac.
October 07, 2011
* [mickael] WIP: correct mistake in text output inside set_decoded_area function (credit to Winfried)

View File

@ -7,6 +7,11 @@ SUBDIRS = libopenjpeg applications doc
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libopenjpeg1.pc
if WANT_JPWL
pkgconfig_DATA += libopenjpeg-jpwl.pc
endif
MAINTAINERCLEANFILES = \
Makefile.in \
@ -39,6 +44,7 @@ THANKS \
bootstrap.sh \
libopenjpeg1.pc.cmake \
libopenjpeg1.pc.in \
libopenjpeg-jpwl.pc.in \
opj_config.h.cmake.in \
m4/opj_check_lib.m4 \
m4/opj_doxygen.m4 \

View File

@ -66,11 +66,19 @@ libopenjpip_local_la_SOURCES = $(JPIP_SRC)
install-data-hook:
@echo -e " (LA)\t$(libdir)/libopenjpip_server.la" >> $(top_builddir)/report.txt
if BUILD_SHARED
@( $(call solist_s) ) >> $(top_builddir)/report.txt
endif
if BUILD_STATIC
@echo -e " (A)\t$(base_s)/$(a_s)" >> $(top_builddir)/report.txt
endif
@echo -e " (LA)\t$(libdir)/libopenjpip_local.la" >> $(top_builddir)/report.txt
if BUILD_SHARED
@( $(call solist_c) ) >> $(top_builddir)/report.txt
endif
if BUILD_STATIC
@echo -e " (A)\t$(base_c)/$(a_c)" >> $(top_builddir)/report.txt
endif
solist_s = $(foreach f, $(dll_s) $(so_s), echo -e ' $(SO_PREFIX)\t$(base_s)/$(f)' ;)
get_tok_s = $(shell grep -E "^$(1)=" libopenjpip_server.la | cut -d "'" -f 2)

View File

@ -183,13 +183,13 @@ AC_MSG_RESULT([${want_png}])
if test "x${want_png}" = "xyes" ; then
PKG_CHECK_MODULES([PNG], [libpng14],
PKG_CHECK_MODULES([PNG], [libpng15],
[have_libpng="yes"],
[
PKG_CHECK_MODULES([PNG], [libpng12],
PKG_CHECK_MODULES([PNG], [libpng14],
[have_libpng="yes"],
[
PKG_CHECK_MODULES([PNG], [libpng10],
PKG_CHECK_MODULES([PNG], [libpng12],
[have_libpng="yes"],
[
PKG_CHECK_MODULES([PNG], [libpng],
@ -284,10 +284,7 @@ AC_MSG_RESULT([${want_lcms2}])
if test "x${want_lcms2}" = "xyes" ; then
PKG_CHECK_MODULES([LCMS2], [lcms2],
[
have_lcms2="yes"
requirements="lcms2"
],
[have_lcms2="yes"],
[have_lcms2="no"])
fi
@ -319,15 +316,9 @@ if test "x${have_lcms2}" = "xno" ; then
if test "x${want_lcms1}" = "xyes" ; then
PKG_CHECK_MODULES([LCMS1], [lcms1],
[
have_lcms1="yes"
requirements="lcms1"
],
[have_lcms1="yes"],
[PKG_CHECK_MODULES([LCMS1], [lcms],
[
have_lcms1="yes"
requirements="lcms"
],
[have_lcms1="yes"],
[have_lcms1="no"])])
fi
@ -402,9 +393,17 @@ fi
### Checks for library functions
### Post configuration
AM_CONDITIONAL([BUILD_SHARED], [test "x${enable_shared}" = "xyes"])
AM_CONDITIONAL([BUILD_STATIC], [test "x${enable_static}" = "xyes"])
AC_CONFIG_FILES([
Makefile
libopenjpeg1.pc
libopenjpeg-jpwl.pc
libopenjpeg/Makefile
libopenjpeg/jpwl/Makefile
applications/Makefile

13
libopenjpeg-jpwl.pc.in Normal file
View File

@ -0,0 +1,13 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: openjpeg
Description: JPEG2000 Wireless (Part 11 - JPWL) library
URL: http://www.openjpeg.org/
Version: @VERSION@
@pkgconfig_requires_private@: @requirements@
Libs: -L${libdir} -lopenjpeg_JPWL
Libs.private: -lm
Cflags: -I${includedir}

View File

@ -81,8 +81,12 @@ install-data-hook:
openjpeg.h
@rm -rf $(top_builddir)/report.txt
@echo -e " (LA)\t$(libdir)/libopenjpeg.la" >> $(top_builddir)/report.txt
if BUILD_SHARED
@( $(call solist) ) >> $(top_builddir)/report.txt
endif
if BUILD_STATIC
@echo -e " (A)\t$(base)/$(a)" >> $(top_builddir)/report.txt
endif
@echo -e " (H)\t$(includedir)/openjpeg-$(MAJOR_NR).$(MINOR_NR)/openjpeg.h" >> $(top_builddir)/report.txt
@echo -e " (LN)\t$(includedir)/openjpeg.h" >> $(top_builddir)/report.txt

View File

@ -51,8 +51,12 @@ rs.h
install-data-hook:
@echo -e " (LA)\t$(libdir)/libopenjpeg_JPWL.la" >> $(top_builddir)/report.txt
if BUILD_SHARED
@( $(call solist) ) >> $(top_builddir)/report.txt
endif
if BUILD_STATIC
@echo -e " (A)\t$(base)/$(a)" >> $(top_builddir)/report.txt
endif
solist = $(foreach f, $(dll) $(so), echo -e ' $(SO_PREFIX)\t$(base)/$(f)' ;)
get_tok = $(shell grep -E "^$(1)=" $(lib_LTLIBRARIES) | cut -d "'" -f 2)