mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 14:16:31 +00:00
package/ghostscript: add optional dependency to openjpeg
Remove openjpeg source files included in upstream tarball as well. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
b3c1e64a23
commit
d97c2b3c5e
@ -28,7 +28,8 @@ GHOSTSCRIPT_DEPENDENCIES = \
|
|||||||
# http://www.linuxfromscratch.org/blfs/view/svn/pst/gs.html
|
# http://www.linuxfromscratch.org/blfs/view/svn/pst/gs.html
|
||||||
define GHOSTSCRIPT_REMOVE_LIBS
|
define GHOSTSCRIPT_REMOVE_LIBS
|
||||||
rm -rf $(@D)/freetype $(@D)/ijs $(@D)/jbig2dec $(@D)/jpeg \
|
rm -rf $(@D)/freetype $(@D)/ijs $(@D)/jbig2dec $(@D)/jpeg \
|
||||||
$(@D)/lcms2mt $(@D)/libpng $(@D)/tiff $(@D)/zlib
|
$(@D)/lcms2mt $(@D)/libpng $(@D)/openjpeg $(@D)/tiff \
|
||||||
|
$(@D)/zlib
|
||||||
endef
|
endef
|
||||||
GHOSTSCRIPT_POST_PATCH_HOOKS += GHOSTSCRIPT_REMOVE_LIBS
|
GHOSTSCRIPT_POST_PATCH_HOOKS += GHOSTSCRIPT_REMOVE_LIBS
|
||||||
|
|
||||||
@ -60,6 +61,13 @@ else
|
|||||||
GHOSTSCRIPT_CONF_OPTS += --without-libidn
|
GHOSTSCRIPT_CONF_OPTS += --without-libidn
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_OPENJPEG),y)
|
||||||
|
GHOSTSCRIPT_DEPENDENCIES += openjpeg
|
||||||
|
GHOSTSCRIPT_CONF_OPTS += --enable-openjpeg
|
||||||
|
else
|
||||||
|
GHOSTSCRIPT_CONF_OPTS += --disable-openjpeg
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y)
|
ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y)
|
||||||
GHOSTSCRIPT_DEPENDENCIES += xlib_libX11
|
GHOSTSCRIPT_DEPENDENCIES += xlib_libX11
|
||||||
GHOSTSCRIPT_CONF_OPTS += --with-x
|
GHOSTSCRIPT_CONF_OPTS += --with-x
|
||||||
|
Loading…
x
Reference in New Issue
Block a user