forked from haikuports/haikuports
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lagrange-1.15.7.recipe
88 lines (81 loc) · 2.49 KB
/
lagrange-1.15.7.recipe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
SUMMARY="A Beautiful Gemini Client"
DESCRIPTION="Lagrange is a desktop GUI client for browsing Geminispace. \
It offers modern conveniences familiar from web browsers, \
such as smooth scrolling, inline image viewing, multiple tabs, \
visual themes, Unicode fonts, bookmarks, history, and page outlines."
HOMEPAGE="https://gmi.skyjake.fi/lagrange/"
COPYRIGHT="2020-2023 Jaakko Keränen"
LICENSE="BSD (2-clause)"
REVISION="2"
SOURCE_URI="https://github.com/skyjake/lagrange/releases/download/v$portVersion/lagrange-$portVersion.tar.gz"
CHECKSUM_SHA256="d556b0c596f706239ea52a8988b601d9ca06fd1f412a04d70acb5f47e7e8c097"
SOURCE_DIR="lagrange-$portVersion"
ADDITIONAL_FILES="lagrange.rdef.in"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
lagrange$secondaryArchSuffix = $portVersion
app:lagrange = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libfribidi$secondaryArchSuffix
lib:libharfbuzz$secondaryArchSuffix
lib:libmpg123$secondaryArchSuffix
lib:libpcre2_8$secondaryArchSuffix
lib:libSDL2_2.0$secondaryArchSuffix
lib:libssl$secondaryArchSuffix
lib:libunistring$secondaryArchSuffix
lib:libwebp$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libfribidi$secondaryArchSuffix
devel:libharfbuzz$secondaryArchSuffix
devel:libmpg123$secondaryArchSuffix
devel:libpcre2_8$secondaryArchSuffix
devel:libSDL2_2.0$secondaryArchSuffix
devel:libssl$secondaryArchSuffix
devel:libunistring$secondaryArchSuffix
devel:libwebp$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
cmd:zip
"
BUILD()
{
mkdir -p build
cd build
cmake .. \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=$appsDir/Lagrange \
-DENABLE_POPUP_MENUS=NO \
-DTFDN_ENABLE_SSE41=NO
make $jobArgs
}
INSTALL()
{
cd build
make install
local APP_SIGNATURE="application/x-vnd.lagrange"
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
local MINOR="`echo "$portVersion" | cut -d. -f3`"
local LONG_INFO="$SUMMARY"
sed \
-e "s|@APP_SIGNATURE@|$APP_SIGNATURE|" \
-e "s|@MAJOR@|$MAJOR|" \
-e "s|@MIDDLE@|$MIDDLE|" \
-e "s|@MINOR@|$MINOR|" \
-e "s|@LONG_INFO@|$LONG_INFO|" \
$portDir/additional-files/lagrange.rdef.in > lagrange.rdef
addResourcesToBinaries lagrange.rdef $appsDir/Lagrange/lagrange
addAppDeskbarSymlink $appsDir/Lagrange/lagrange Lagrange
}