mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-30 05:40:06 +00:00
Add heimdall 1.4.2, tool suite used to flash firmware onto Samsung
mobile devices.
This commit is contained in:
parent
2cab66bb35
commit
27e3f25af1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=467027
@ -892,6 +892,7 @@
|
||||
SUBDIR += hadoop2
|
||||
SUBDIR += hapy
|
||||
SUBDIR += hcs12mem
|
||||
SUBDIR += heimdall
|
||||
SUBDIR += hexcompare
|
||||
SUBDIR += hexd
|
||||
SUBDIR += hg-git
|
||||
|
47
devel/heimdall/Makefile
Normal file
47
devel/heimdall/Makefile
Normal file
@ -0,0 +1,47 @@
|
||||
# Created by: Emanuel Haupt <ehaupt@FreeBSD.org>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= heimdall
|
||||
PORTVERSION= 1.4.2
|
||||
DISTVERSIONPREFIX= v
|
||||
CATEGORIES= devel
|
||||
|
||||
MAINTAINER= ehaupt@FreeBSD.org
|
||||
COMMENT= Tool suite used to flash firmware onto Samsung mobile devices
|
||||
|
||||
LICENSE= MIT
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
USES= cmake
|
||||
USE_GITHUB= yes
|
||||
|
||||
OPTIONS_DEFINE= DOCS GUI
|
||||
OPTIONS_DEFAULT=GUI
|
||||
OPTIONS_SUB= yes
|
||||
|
||||
GUI_USE= QT5=buildtools_build,core,gui,qmake_build,widgets
|
||||
GUI_CMAKE_OFF= -DDISABLE_FRONTEND=YES
|
||||
|
||||
GH_ACCOUNT= Benjamin-Dobell
|
||||
GH_PROJECT= Heimdall
|
||||
|
||||
PORTDOCS= README
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
# does not compile with clang 6.0.0
|
||||
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1101513
|
||||
USE_GCC= yes
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/bin/heimdall ${STAGEDIR}${PREFIX}/bin
|
||||
|
||||
do-install-GUI-on:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/bin/heimdall-frontend ${STAGEDIR}${PREFIX}/bin
|
||||
|
||||
do-install-DOCS-on:
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/Linux/README ${STAGEDIR}${DOCSDIR}
|
||||
|
||||
.include <bsd.port.post.mk>
|
3
devel/heimdall/distinfo
Normal file
3
devel/heimdall/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1523305221
|
||||
SHA256 (Benjamin-Dobell-Heimdall-v1.4.2_GH0.tar.gz) = 589bef88f2597c8a84fe6fafbe928ddc9687438b5b54edd917d7df48c7e3eff8
|
||||
SIZE (Benjamin-Dobell-Heimdall-v1.4.2_GH0.tar.gz) = 5486693
|
20
devel/heimdall/files/patch-cmake_Findlibusb.cmake
Normal file
20
devel/heimdall/files/patch-cmake_Findlibusb.cmake
Normal file
@ -0,0 +1,20 @@
|
||||
--- cmake/Findlibusb.cmake.orig 2017-05-11 18:34:25 UTC
|
||||
+++ cmake/Findlibusb.cmake
|
||||
@@ -6,7 +6,7 @@ find_path(LIBUSB_INCLUDE_DIR
|
||||
/opt/local/include
|
||||
/usr/include
|
||||
PATH_SUFFIXES
|
||||
- libusb-1.0
|
||||
+ libusb
|
||||
)
|
||||
|
||||
if (libusb_USE_STATIC_LIBS AND NOT MSVC)
|
||||
@@ -19,7 +19,7 @@ endif (libusb_USE_STATIC_LIBS AND NOT MS
|
||||
|
||||
find_library(LIBUSB_LIBRARY
|
||||
NAMES
|
||||
- ${LIBUSB_LIB_PREFIX}usb-1.0${LIBUSB_LIB_SUFFIX} ${LIBUSB_LIB_PREFIX}usb${LIBUSB_LIB_SUFFIX}
|
||||
+ ${LIBUSB_LIB_PREFIX}usb${LIBUSB_LIB_SUFFIX} ${LIBUSB_LIB_PREFIX}usb${LIBUSB_LIB_SUFFIX}
|
||||
PATHS
|
||||
/usr/local/lib
|
||||
/opt/local/lib
|
8
devel/heimdall/files/patch-heimdall_CMakeLists.txt
Normal file
8
devel/heimdall/files/patch-heimdall_CMakeLists.txt
Normal file
@ -0,0 +1,8 @@
|
||||
--- heimdall/CMakeLists.txt.orig 2017-05-11 18:34:25 UTC
|
||||
+++ heimdall/CMakeLists.txt
|
||||
@@ -45,4 +45,4 @@ use_large_files(heimdall YES)
|
||||
add_executable(heimdall ${HEIMDALL_SOURCE_FILES})
|
||||
|
||||
target_link_libraries(heimdall PRIVATE pit)
|
||||
-target_link_libraries(heimdall PRIVATE usb-1.0)
|
||||
+target_link_libraries(heimdall PRIVATE usb)
|
7
devel/heimdall/pkg-descr
Normal file
7
devel/heimdall/pkg-descr
Normal file
@ -0,0 +1,7 @@
|
||||
Tool suite used to flash firmware (aka ROMs) onto Samsung mobile devices.
|
||||
|
||||
Heimdall connects to a mobile device over USB and interact with software running
|
||||
on device known as Loke. Loke and Heimdall communicate via the custom
|
||||
Samsung-developed protocol sometimes referred to as the 'Odin protocol'.
|
||||
|
||||
WWW: https://glassechidna.com.au/heimdall/
|
2
devel/heimdall/pkg-plist
Normal file
2
devel/heimdall/pkg-plist
Normal file
@ -0,0 +1,2 @@
|
||||
%%GUI%%bin/heimdall-frontend
|
||||
bin/heimdall
|
Loading…
Reference in New Issue
Block a user