gst1-plugins-base: bump version to 1.6.0
[buildroot-gz.git] / package / qwt / qwt.mk
blob8a46c2548cdd3700fd145e8d359bd664da980b05
1 ################################################################################
3 # qwt
5 ################################################################################
7 QWT_VERSION = 6.1.2
8 QWT_SOURCE = qwt-$(QWT_VERSION).tar.bz2
9 QWT_SITE = http://downloads.sourceforge.net/project/qwt/qwt/$(QWT_VERSION)
10 QWT_INSTALL_STAGING = YES
11 QWT_DEPENDENCIES = qt
13 QWT_LICENSE = LGPLv2.1 with exceptions
14 QWT_LICENSE_FILES = COPYING
16 QWT_CONFIG = 's%QWT_INSTALL_PREFIX.*/usr/local/.*%QWT_INSTALL_PREFIX = /usr%'
17 QWT_CONFIG += -e 's/^.*QWT_CONFIG.*QwtDesigner.*$$/\# QWT_CONFIG += QwtDesigner/'
18 QWT_CONFIG += -e 's%/features%/mkspecs/features%'
20 ifeq ($(BR2_PACKAGE_QWT_SVG),y)
21 QWT_CONFIG += -e 's/^.*QWT_CONFIG.*QwtSvg.*$$/QWT_CONFIG += QwtSvg/'
22 else
23 QWT_CONFIG += -e 's/^.*QWT_CONFIG.*QwtSvg.*$$/\# QWT_CONFIG += QwtSvg/'
24 endif
26 ifeq ($(BR2_PACKAGE_QWT_MATHML),y)
27 QWT_CONFIG += -e 's/^.*QWT_CONFIG.*QwtMathML.*$$/QWT_CONFIG += QwtMathML/'
28 else
29 QWT_CONFIG += -e 's/^.*QWT_CONFIG.*QwtMathML.*$$/\# QWT_CONFIG += QwtMathML/'
30 endif
32 ifeq ($(BR2_PACKAGE_QWT_OPENGL),y)
33 QWT_CONFIG += -e 's/^.*QWT_CONFIG.*QwtOpenGL.*$$/QWT_CONFIG += QwtOpenGL/'
34 else
35 QWT_CONFIG += -e 's/^.*QWT_CONFIG.*QwtOpenGL.*$$/\# QWT_CONFIG += QwtOpenGL/'
36 endif
38 define QWT_CONFIGURE_CMDS
39 $(SED) $(QWT_CONFIG) $(@D)/qwtconfig.pri
40 (cd $(@D); $(TARGET_MAKE_ENV) $(QT_QMAKE))
41 endef
43 define QWT_BUILD_CMDS
44 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
45 endef
47 # After installation, we fixup the INSTALL_PREFIX in qwtconfig.pri so
48 # that when building with qmake, -L$(STAGING_DIR)/usr/lib is used and
49 # not -L/usr/lib.
50 define QWT_INSTALL_STAGING_CMDS
51 $(MAKE) -C $(@D) install INSTALL_ROOT=$(STAGING_DIR)
52 $(SED) "s%QWT_INSTALL_PREFIX = .*%QWT_INSTALL_PREFIX = $(STAGING_DIR)/usr%" \
53 $(STAGING_DIR)/usr/mkspecs/features/qwtconfig.pri
54 endef
56 define QWT_INSTALL_TARGET_CMDS
57 $(MAKE) -C $(@D) install INSTALL_ROOT=$(TARGET_DIR)
58 rm -Rf $(TARGET_DIR)/usr/mkspecs
59 endef
61 $(eval $(generic-package))