Skip to content

Commit

Permalink
qwt: add recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
threedeyes committed May 12, 2022
1 parent 67d6cec commit f347cf0
Showing 1 changed file with 92 additions and 0 deletions.
92 changes: 92 additions & 0 deletions x11-libs/qwt/qwt-6.2.0.recipe
@@ -0,0 +1,92 @@
SUMMARY="2D plotting library for Qt5"
DESCRIPTION="The Qwt library contains widgets and components which are \
primarily useful for technical and scientifical purposes. \
It includes a 2-D plotting widget, different kinds of sliders, \
and much more."
HOMEPAGE="https://qwt.sourceforge.io/"
COPYRIGHT="Josef Wilgen, Uwe Rathmann"
LICENSE="GNU LGPL v2.1"
REVISION="1"
SOURCE_URI="https://sourceforge.net/projects/qwt/files/qwt/6.2.0/qwt-6.2.0.tar.bz2"
CHECKSUM_SHA256="9194f6513955d0fd7300f67158175064460197abab1a92fa127a67a4b0b71530"
SOURCE_DIR="qwt-$portVersion"

ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"

PROVIDES="
qwt$secondaryArchSuffix = $portVersion
lib:libqwt$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libGL$secondaryArchSuffix
lib:libQt5Core$secondaryArchSuffix
"

PROVIDES_devel="
qwt${secondaryArchSuffix}_devel = $portVersion
devel:libqwt$secondaryArchSuffix = $portVersion
"
REQUIRES_devel="
qwt$secondaryArchSuffix == $portVersion base
"

BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libGL$secondaryArchSuffix
devel:libQt5Core$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:doxygen
cmd:g++$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
cmd:qmake$secondaryArchSuffix >= 5
"

BUILD()
{
cat > qwtconfig.pri <<-EOF
QWT_INSTALL_LIBS = $libDir
QWT_INSTALL_HEADERS = $includeDir/qwt6
QWT_INSTALL_DOCS = $docDir
QWT_CONFIG += QwtPlot QwtWidgets QwtPkgConfig QwtOpenGL QwtSvg QwtDesigner QwtDll
VER_MAJ = `echo "$portVersion" | cut -d. -f1`
VER_MIN = `echo "$portVersion" | cut -d. -f2`
VER_PAT = `echo "$portVersion" | cut -d. -f3`
VERSION = $portVersion
QWT_VER_MAJ = `echo "$portVersion" | cut -d. -f1`
QWT_VER_MIN = `echo "$portVersion" | cut -d. -f2`
QWT_VER_PAT = `echo "$portVersion" | cut -d. -f3`
QWT_VERSION = $portVersion
EOF

cat > qwtbuild.pri <<-EOF
QWT_CONFIG += qt warn_on thread release no_keywords
DEFINES += QWT_MOC_INCLUDE=1
EOF

cat >> qwtconfig.pri <<-EOF
QWT_INSTALL_PLUGINS = $addOnsDir/Qt5/designer
QWT_INSTALL_FEATURES = $dataDir/Qt5/mkspecs/features
EOF

qmake
make $jobArgs
}

INSTALL()
{
make install

# prepare develop/lib
prepareInstalledDevelLibs libqwt
fixPkgconfig

# devel package
packageEntries devel \
$developDir \
$dataDir
}

0 comments on commit f347cf0

Please sign in to comment.