xref: /OK3568_Linux_fs/buildroot/package/fbv/fbv.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# fbv
4#
5################################################################################
6
7FBV_VERSION = 1.0b
8FBV_SITE = http://s-tech.elsat.net.pl/fbv
9
10FBV_LICENSE = GPL-2.0
11FBV_LICENSE_FILES = COPYING
12
13### image format dependencies and configure options
14FBV_DEPENDENCIES = # empty
15FBV_CONFIGURE_OPTS = # empty
16ifeq ($(BR2_PACKAGE_FBV_PNG),y)
17FBV_DEPENDENCIES += libpng
18
19# libpng in turn depends on other libraries
20ifeq ($(BR2_STATIC_LIBS),y)
21FBV_CONFIGURE_OPTS += "--libs=`$(PKG_CONFIG_HOST_BINARY) --libs libpng`"
22endif
23
24else
25FBV_CONFIGURE_OPTS += --without-libpng
26endif
27ifeq ($(BR2_PACKAGE_FBV_JPEG),y)
28FBV_DEPENDENCIES += jpeg
29else
30FBV_CONFIGURE_OPTS += --without-libjpeg
31endif
32ifeq ($(BR2_PACKAGE_FBV_GIF),y)
33FBV_DEPENDENCIES += giflib
34else
35FBV_CONFIGURE_OPTS += --without-libungif
36endif
37
38#fbv doesn't support cross-compilation
39define FBV_CONFIGURE_CMDS
40	(cd $(FBV_DIR); rm -f config.cache; \
41		$(TARGET_CONFIGURE_OPTS) \
42		$(TARGET_CONFIGURE_ARGS) \
43		./configure \
44		--prefix=/usr \
45		$(FBV_CONFIGURE_OPTS) \
46	)
47endef
48
49define FBV_BUILD_CMDS
50	$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
51endef
52
53define FBV_INSTALL_TARGET_CMDS
54	$(INSTALL) -D $(@D)/fbv $(TARGET_DIR)/usr/bin/fbv
55endef
56
57$(eval $(autotools-package))
58