Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3bbe0b5
commit 3796483
Showing
3 changed files
with
49 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- a/hobbits-0.53.1/cmake/FindPFFFT.cmake | ||
+++ b/hobbits-0.53.1/cmake/FindPFFFT.cmake | ||
@@ -8,6 +8,7 @@ | ||
/usr/local | ||
PATH_SUFFIXES | ||
${CMAKE_INSTALL_INCLUDEDIR} | ||
+ NO_CMAKE_FIND_ROOT_PATH | ||
) | ||
find_library( | ||
PFFFT_LIBRARIES NAMES pffft | ||
@@ -19,6 +20,7 @@ | ||
/usr/local | ||
PATH_SUFFIXES | ||
${CMAKE_INSTALL_LIBDIR} | ||
+ NO_CMAKE_FIND_ROOT_PATH | ||
) | ||
|
||
include( FindPackageHandleStandardArgs ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
--- a/CMakeLists.txt 2021-10-07 11:31:22.000000000 -0400 | ||
+++ b/CMakeLists.txt 2021-10-25 21:16:59.429406408 -0400 | ||
--- a/hobbits-0.53.1/CMakeLists.txt 2021-10-07 11:31:22.000000000 -0400 | ||
+++ b/hobbits-0.53.1/CMakeLists.txt 2021-10-25 21:16:59.429406408 -0400 | ||
@@ -124,7 +124,7 @@ | ||
set ( Python3_ROOT_DIR "${MANUAL_PYTHON_PATH}" ) | ||
endif() | ||
|
||
-find_package (Python3 3.9 EXACT COMPONENTS Interpreter Development REQUIRED) | ||
+find_package (Python3 3.9 COMPONENTS Interpreter Development REQUIRED) | ||
+find_package (Python3 3.10 COMPONENTS Interpreter Development REQUIRED) | ||
message("Python3 Libs: ${Python3_LIBRARIES}") | ||
|
||
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,51 @@ | ||
# Template file for 'hobbits' | ||
pkgname=hobbits | ||
version=0.52.0 | ||
version=0.53.1 | ||
revision=1 | ||
_pffft_commit=233c26659185ff55958e96e4c25f3fcafe249a65 | ||
_pffft_dir="jpommier-pffft-${_pffft_commit:0:12}" | ||
create_wrksrc=yes | ||
build_wrksrc="hobbits-${version}" | ||
build_style=cmake | ||
configure_args="-DPFFFT_ROOT=../${_pffft_dir}" | ||
hostmakedepends="pkg-config qt5-host-tools qt5-qmake python3" | ||
makedepends="fftw-devel libusb-devel libpcap-devel python3-devel qt5-devel" | ||
makedepends="libusb-devel libpcap-devel python3-devel qt5-devel" | ||
short_desc="Multi-platform GUI for bit-based analysis, processing and visualization" | ||
maintainer="classabbyamp <void@placeviolette.net>" | ||
license="MIT, GPL-2.0-or-later" | ||
license="MIT, custom:FFTPACK" | ||
homepage="https://mahlet-inc.github.io" | ||
changelog="https://raw.githubusercontent.com/Mahlet-Inc/hobbits/master/CHANGELOG.md" | ||
distfiles="https://github.com/Mahlet-Inc/hobbits/archive/refs/tags/v${version}.tar.gz" | ||
checksum=3332e02380ab46649f0ec2066b63b6e0fb04b55cdca973d28880f1607ebbf27e | ||
distfiles="https://github.com/Mahlet-Inc/hobbits/archive/refs/tags/v${version}.tar.gz | ||
https://bitbucket.org/jpommier/pffft/get/${_pffft_commit}.tar.gz" | ||
checksum="e63c51228c3f00f56a2ebf79fec1975544b1c6c986d58dff69643da46148316b | ||
@c1df1ae9d807f2e0fc2391bd8e714ac5bfc76a54b20ef3de3d82acb026c79f74" | ||
|
||
case "$XBPS_TARGET_MACHINE" in | ||
arm*|aarch64*|ppc*) CXXFLAGS+=" -fsigned-char" | ||
esac | ||
|
||
case "$XBPS_TARGET_MACHINE" in | ||
aarch64*) PFFFT_CFLAGS="" ;; | ||
ppc*) PFFFT_CFLAGS="-maltivec -mabi=altivec" ;; | ||
x86_64*|i686*) PFFFT_CFLAGS="-msse -mfpmath=sse" ;; | ||
# don't use SIMD on unsupported platforms | ||
*) PFFFT_CFLAGS="-DPFFFT_SIMD_DISABLE" ;; | ||
esac | ||
|
||
pre_configure() { | ||
# upstream provides no way to set the version through configure_args | ||
echo "${version}" > .version | ||
|
||
msg_normal "pffft-${_pffft_commit:0:12}: building ...\n" | ||
cd "../$_pffft_dir" | ||
${CC} ${CFLAGS} ${PFFFT_CFLAGS} -lm -O3 -Wall -c pffft.c -o pffft.o | ||
${AR} rcs libpffft.a pffft.o | ||
sed -e '/\*\//,$d; 1s/\/\* //; s/^ //' pffft.c > LICENSE.pffft | ||
msg_normal "pffft-${_pffft_commit:0:12}: finished\n" | ||
} | ||
|
||
post_install() { | ||
vinstall src/hobbits-gui/images/icons/HobbitsRingSmall.png 644 usr/share/pixmaps | ||
vlicense LICENSE.txt | ||
vlicense ../${_pffft_dir}/LICENSE.pffft | ||
} |