1SUMMARY="A library that implements epoll on top of kqueue" 2DESCRIPTION="It has been successfully used to port libinput, libevdev, \ 3Wayland and more software to FreeBSD. \ 4It may be useful for porting other software that uses epoll as well. \ 5Sadly, this library contains some very ugly hacks and workarounds.." 6HOMEPAGE="http://github.com/jiixyj/epoll-shim/" 7COPYRIGHT="2016 Jan Kokem��ller" 8LICENSE="MIT" 9REVISION="1" 10SOURCE_URI="http://github.com/jiixyj/epoll-shim/archive/v$portVersion.tar.gz" 11CHECKSUM_SHA256="2e8b8f9eac1205c1dd5319af9f6eb85ae889ed18fba7472ced50e17ab3664197" 12SOURCE_FILENAME="epoll-shim-$portVersion.tar.gz" 13SOURCE_DIR="epoll-shim-$portVersion" 14PATCHES="epoll_shim-$portVersion.patchset" 15 16ARCHITECTURES="?all !x86_gcc2" 17SECONDARY_ARCHITECTURES="?x86" 18 19PROVIDES=" 20 epoll_shim$secondaryArchSuffix = $portVersion 21 lib:libepoll_shim_interpose$secondaryArchSuffix 22 lib:libepoll_shim$secondaryArchSuffix 23 " 24REQUIRES=" 25 haiku$secondaryArchSuffix 26 " 27 28PROVIDES_devel=" 29 epoll_shim${secondaryArchSuffix}_devel = $portVersion 30 devel:libepoll_shim_interpose$secondaryArchSuffix 31 devel:libepoll_shim$secondaryArchSuffix 32 " 33REQUIRES_devel=" 34 epoll_shim$secondaryArchSuffix == $portVersion base 35 " 36 37BUILD_REQUIRES=" 38 haiku${secondaryArchSuffix}_devel 39 " 40BUILD_PREREQUIRES=" 41 cmd:cmake 42 cmd:gcc$secondaryArchSuffix 43 cmd:make 44 " 45 46BUILD() 47{ 48 export CFLAGS="-DEVFILT_TIMER=0 -DEVFILT_SIGNAL=0 -DEV_RECEIPT=0" 49 cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo \ 50 $cmakeDirArgs 51 cmake --build build $jobArgs 52} 53 54INSTALL() 55{ 56 cmake --install build 57 58 mv $prefix/libdata/* $libDir 59 rmdir $prefix/libdata 60 prepareInstalledDevelLibs libepoll-shim libepoll-shim-interpose 61 fixPkgconfig 62 63 packageEntries devel \ 64 "$developDir" \ 65 $libDir/cmake 66} 67 68TEST() 69{ 70 cd build 71 ctest --output-on-failure 72} 73