mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 21:56:31 +00:00
fbv: Allow selection of supported image formats.
This removes fbv's compulsory dependency on either libpng and/or libjpeg and/or libungif. The user can choose which compressed image format's fbv should support. By default PNG, JPEG and GIF are selected. Note that BMP format support will still always be included. [Peter: Drop (unneeded) png specific libs] Signed-off-by: Arn R <arnerro@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
This commit is contained in:
parent
b5addce818
commit
0e41f5628b
@ -1,11 +1,33 @@
|
|||||||
config BR2_PACKAGE_FBV
|
config BR2_PACKAGE_FBV
|
||||||
bool "fbv"
|
bool "fbv"
|
||||||
select BR2_PACKAGE_LIBPNG
|
|
||||||
select BR2_PACKAGE_JPEG
|
|
||||||
select BR2_PACKAGE_LIBUNGIF
|
|
||||||
help
|
help
|
||||||
fbv is a very simple graphic file viewer for the framebuffer console,
|
fbv is a very simple graphic file viewer for the framebuffer console,
|
||||||
capable of displaying GIF, JPEG, PNG and BMP files using libungif,
|
capable of displaying GIF, JPEG, PNG and BMP files using libungif,
|
||||||
libjpeg and libpng.
|
libjpeg and libpng.
|
||||||
|
|
||||||
http://freshmeat.net/projects/fbv/
|
http://freshmeat.net/projects/fbv/
|
||||||
|
|
||||||
|
if BR2_PACKAGE_FBV
|
||||||
|
|
||||||
|
config BR2_PACKAGE_FBV_PNG
|
||||||
|
bool "PNG support"
|
||||||
|
default y
|
||||||
|
select BR2_PACKAGE_LIBPNG
|
||||||
|
help
|
||||||
|
Enable support for PNG using libpng.
|
||||||
|
|
||||||
|
config BR2_PACKAGE_FBV_JPEG
|
||||||
|
bool "JPEG support"
|
||||||
|
default y
|
||||||
|
select BR2_PACKAGE_JPEG
|
||||||
|
help
|
||||||
|
Enable support for JPEG using IJG's libjpeg.
|
||||||
|
|
||||||
|
config BR2_PACKAGE_FBV_GIF
|
||||||
|
bool "GIF support"
|
||||||
|
default y
|
||||||
|
select BR2_PACKAGE_LIBUNGIF
|
||||||
|
help
|
||||||
|
Enable support for GIF using libungif.
|
||||||
|
|
||||||
|
endif # BR2_PACKAGE_FBV
|
||||||
|
@ -7,7 +7,24 @@ FBV_VERSION:=1.0b
|
|||||||
FBV_SOURCE:=fbv-$(FBV_VERSION).tar.gz
|
FBV_SOURCE:=fbv-$(FBV_VERSION).tar.gz
|
||||||
FBV_SITE:=http://s-tech.elsat.net.pl/fbv
|
FBV_SITE:=http://s-tech.elsat.net.pl/fbv
|
||||||
|
|
||||||
FBV_DEPENDENCIES = libpng jpeg libungif
|
### image format dependencies and configure options
|
||||||
|
FBV_DEPENDENCIES = # empty
|
||||||
|
FBV_CONFIGURE_OPTS = # empty
|
||||||
|
ifeq ($(BR2_PACKAGE_FBV_PNG),y)
|
||||||
|
FBV_DEPENDENCIES += libpng
|
||||||
|
else
|
||||||
|
FBV_CONFIGURE_OPTS += --without-libpng
|
||||||
|
endif
|
||||||
|
ifeq ($(BR2_PACKAGE_FBV_JPEG),y)
|
||||||
|
FBV_DEPENDENCIES += jpeg
|
||||||
|
else
|
||||||
|
FBV_CONFIGURE_OPTS += --without-libjpeg
|
||||||
|
endif
|
||||||
|
ifeq ($(BR2_PACKAGE_FBV_GIF),y)
|
||||||
|
FBV_DEPENDENCIES += libungif
|
||||||
|
else
|
||||||
|
FBV_CONFIGURE_OPTS += --without-libungif
|
||||||
|
endif
|
||||||
|
|
||||||
#fbv donesn't support cross-compilation
|
#fbv donesn't support cross-compilation
|
||||||
define FBV_CONFIGURE_CMDS
|
define FBV_CONFIGURE_CMDS
|
||||||
@ -16,7 +33,7 @@ define FBV_CONFIGURE_CMDS
|
|||||||
$(TARGET_CONFIGURE_ARGS) \
|
$(TARGET_CONFIGURE_ARGS) \
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--libs="-lz -lm" \
|
$(FBV_CONFIGURE_OPTS) \
|
||||||
)
|
)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user