1SUMMARY="An implementation of multicast DNS" 2DESCRIPTION="Some of QMdnsEngine's features include: 3 4* Supports Windows, macOS, Linux, and most other platforms supported by Qt 5* Requires only QtCore and QtNetwork - no other dependencies 6* Includes an exhaustive set of unit tests" 7HOMEPAGE="https://github.com/nitroshare/qmdnsengine/" 8COPYRIGHT="2017 Nathan Osman" 9LICENSE="MIT" 10REVISION="2" 11SOURCE_URI="$HOMEPAGE/archive/$portVersion.tar.gz" 12CHECKSUM_SHA256="27416ca7b8b8a8588df4318de57127ef97e1205269fa506f00f21b09d30d3ac2" 13SOURCE_FILENAME="qmdnsengine-$portVersion.tar.gz" 14 15ARCHITECTURES="all !x86_gcc2" 16SECONDARY_ARCHITECTURES="x86" 17 18libVersion="$portVersion" 19libVersionCompat="$libVersion compat >= ${libVersion%%.*}" 20 21PROVIDES=" 22 qmdnsengine$secondaryArchSuffix = $portVersion 23 lib:libqmdnsengine$secondaryArchSuffix = $libVersionCompat 24 " 25REQUIRES=" 26 haiku$secondaryArchSuffix 27 lib:libQt5Core$secondaryArchSuffix 28 lib:libQt5Gui$secondaryArchSuffix 29 " 30 31PROVIDES_devel=" 32 qmdnsengine${secondaryArchSuffix}_devel = $portVersion 33 devel:libqmdnsengine$secondaryArchSuffix = $libVersionCompat 34 " 35REQUIRES_devel=" 36 qmdnsengine$secondaryArchSuffix == $portVersion base 37 " 38 39BUILD_REQUIRES=" 40 haiku${secondaryArchSuffix}_devel 41 devel:libQt5Core$secondaryArchSuffix 42 devel:libQt5Gui$secondaryArchSuffix 43 devel:libQt5Test$secondaryArchSuffix 44 " 45BUILD_PREREQUIRES=" 46 cmd:cmake 47 cmd:g++$secondaryArchSuffix 48 cmd:ld$secondaryArchSuffix 49 cmd:make 50 " 51 52defineDebugInfoPackage qmdnsengine$secondaryArchSuffix \ 53 "$libDir"/libqmdnsengine.so.$libVersion 54 55BUILD() 56{ 57 cmake -Bbuild -S. -DCMAKE_BUILD_TYPE=Release \ 58 -DBIN_INSTALL_DIR=$prefix \ 59 -DLIB_INSTALL_DIR=$libDir \ 60 -DINCLUDE_INSTALL_DIR=$includeDir \ 61 -DBUILD_TESTS=ON 62 make -C build $jobArgs 63} 64 65INSTALL() 66{ 67 make -C build install 68 69 # prepare develop/lib 70 prepareInstalledDevelLibs libqmdnsengine 71 fixPkgconfig 72 73 # devel package 74 packageEntries devel \ 75 $developDir \ 76 $libDir/cmake 77} 78 79TEST() 80{ 81 make tests 82} 83