1 ################################################################################
5 ################################################################################
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
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/'
23 QWT_CONFIG
+= -e
's/^.*QWT_CONFIG.*QwtSvg.*$$/\# QWT_CONFIG += QwtSvg/'
26 ifeq ($(BR2_PACKAGE_QWT_MATHML
),y
)
27 QWT_CONFIG
+= -e
's/^.*QWT_CONFIG.*QwtMathML.*$$/QWT_CONFIG += QwtMathML/'
29 QWT_CONFIG
+= -e
's/^.*QWT_CONFIG.*QwtMathML.*$$/\# QWT_CONFIG += QwtMathML/'
32 ifeq ($(BR2_PACKAGE_QWT_OPENGL
),y
)
33 QWT_CONFIG
+= -e
's/^.*QWT_CONFIG.*QwtOpenGL.*$$/QWT_CONFIG += QwtOpenGL/'
35 QWT_CONFIG
+= -e
's/^.*QWT_CONFIG.*QwtOpenGL.*$$/\# QWT_CONFIG += QwtOpenGL/'
38 define QWT_CONFIGURE_CMDS
39 $(SED
) $(QWT_CONFIG
) $(@D
)/qwtconfig.pri
40 (cd
$(@D
); $(TARGET_MAKE_ENV
) $(QT_QMAKE
))
44 $(TARGET_MAKE_ENV
) $(MAKE
) -C
$(@D
)
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
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
56 define QWT_INSTALL_TARGET_CMDS
57 $(MAKE
) -C
$(@D
) install INSTALL_ROOT
=$(TARGET_DIR
)
58 rm -Rf
$(TARGET_DIR
)/usr
/mkspecs
61 $(eval
$(generic-package
))