janus-gateway: make echo test plugin optional
[buildroot-gz.git] / package / ocrad / ocrad.mk
blobd19e83ef4279d65e8b0cc21aaec2eb1f9082d3d7
1 ################################################################################
3 # ocrad
5 ################################################################################
7 OCRAD_VERSION = 0.25
8 OCRAD_SOURCE = ocrad-$(OCRAD_VERSION).tar.lz
9 OCRAD_SITE = $(BR2_GNU_MIRROR)/ocrad
10 OCRAD_LICENSE = GPLv3+
11 OCRAD_LICENSE_FILES = COPYING
12 OCRAD_INSTALL_STAGING = YES
13 OCRAD_DEPENDENCIES = host-lzip
15 define OCRAD_EXTRACT_CMDS
16 $(HOST_DIR)/usr/bin/lzip -d -c $(DL_DIR)/$(OCRAD_SOURCE) | \
17 tar --strip-components=1 -C $(@D) $(TAR_OPTIONS) -
18 endef
20 # This is not a true autotools package.
21 define OCRAD_CONFIGURE_CMDS
22 cd $(@D) && \
23 $(TARGET_MAKE_ENV) ./configure --prefix=/usr --sysconfdir=/etc $(TARGET_CONFIGURE_OPTS)
24 endef
26 define OCRAD_BUILD_CMDS
27 $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
28 endef
30 define OCRAD_INSTALL_STAGING_CMDS
31 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install
32 endef
34 define OCRAD_INSTALL_TARGET_CMDS
35 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
36 endef
38 $(eval $(generic-package))