1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= Web Browser-like beautiful Gemini Client
8 HOMEPAGE= https://github.com/skyjake/lagrange
9 CONTACT= Michael_Reim[kraileth@elderlinux.org]
12 SITES[main]= https://github.com/skyjake/lagrange/releases/download/v1.15.0/
13 DISTFILE[1]= lagrange-1.15.0.tar.gz:main
15 SPKGS[standard]= single
17 OPTIONS_AVAILABLE= none
18 OPTIONS_STANDARD= none
20 BUILD_DEPENDS= zip:single:standard
21 BUILDRUN_DEPENDS= curl:primary:standard
22 fribidi:single:standard
23 harfbuzz:primary:standard
24 libunistring:primary:standard
25 mpg123:library:standard
28 USES= cmake ncurses pcre pkgconfig zlib ssl:openssl11
32 LICENSE= BSD2CLAUSE:single
33 LICENSE_FILE= BSD2CLAUSE:{{WRKSRC}}/LICENSE.md
36 FPC_EQUIVALENT= www/lagrange
38 CMAKE_ARGS= -DENABLE_FRIBIDI:BOOL=ON
39 -DENABLE_FRIBIDI_BUILD:BOOL=OFF
40 -DENABLE_HARFBUZZ:BOOL=ON
41 -DENABLE_HARFBUZZ_MINIMAL:BOOL=OFF
42 -DENABLE_MPG123:BOOL=ON
46 ${INSTALL_PROGRAM} ${WRKSRC}/build-tui/clagrange ${STAGEDIR}${PREFIX}/bin/
47 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/clagrange
48 ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/lagrange
51 (cd ${WRKSRC} && ./build-tui.sh)
54 ${REINPLACE_CMD} -i'' -e "s|__PREFIX__|${PREFIX}|g" \
55 -e "s|__STAGEDIR__|${STAGEDIR}|" ${WRKSRC}/build-tui.sh
56 # unclear why SDL_HINT_WINDOWS_DPI_AWARENESS is not defined; it's in SDL_hints.h
57 # it's for windows only anywhy, just cut it out
58 ${REINPLACE_CMD} -e '/SDL_HINT_WINDOWS_DPI_AWARENESS/d' ${WRKSRC}/src/main.c
60 [FILE:776:descriptions/desc.single]
61 Lagrange is a desktop GUI client for browsing Geminispace. It offers
62 modern conveniences familiar from web browsers, such as smooth scrolling,
63 inline image viewing, multiple tabs, visual themes, Unicode fonts,
64 bookmarks, history, and page outlines.
67 * Ability to optionally view images inside the gemtext document
68 * Beautiful typography using Unicode fonts
69 * Autogenerated page style and Unicode icon for each Gemini domain
70 * Smart URL field suggestions: Search bookmarks, history, identities
71 * Sidebar for page outline, managing bookmarks and identities as well as
74 * Identity management: Create and use TLS client certificates
75 * Audio playback: MP3, Ogg Vorbis, WAV
76 * And more! Open about:help in the app, or see help.gmi
80 72dc249a2393dbfe531f0e472de979a5a26b24b9d4da1d845415d7a165fb231b 9922324 lagrange-1.15.0.tar.gz
83 [FILE:235:manifests/plist.single]
87 share/applications/fi.skyjake.Lagrange.desktop
88 share/icons/hicolor/256x256/apps/fi.skyjake.Lagrange.png
89 share/lagrange/resources.lgr
90 share/man/man1/lagrange.1.gz
91 share/metainfo/fi.skyjake.Lagrange.appdata.xml
94 [FILE:2293:patches/patch-build-tui.sh]
95 --- build-tui.sh.orig 2023-01-21 11:08:14 UTC
99 # You can customize the install directory prefix here and build type here:
101 -INSTALL_PREFIX="/usr/local"
102 +INSTALL_PREFIX="__PREFIX__"
103 CMAKE_BUILD_TYPE="Release"
104 +export PKG_CONFIG_PATH=/__PREFIX__/openssl11/lib/pkgconfig
105 +export LDFLAGS="-L/__PREFIX__/openssl11/lib -Wl,-rpath,/__PREFIX__/openssl11/lib"
107 echo "\nThis script will build and optionally install clagrange with"
108 echo "statically linked the_Foundation and SEALCurses. First, let's configure"
111 -echo "Build type? [${CMAKE_BUILD_TYPE}]"
113 -if [ "${INPUT}." != "." ]; then
114 - CMAKE_BUILD_TYPE=${INPUT}
117 -echo "Install prefix? [${INSTALL_PREFIX}]"
119 -if [ "${INPUT}." != "." ]; then
120 - INSTALL_PREFIX=${INPUT}
123 if [ ! -d lib/sealcurses ]; then
124 echo "'lib/sealcurses' not found. Clone with Git? [Yn]"
126 @@ -67,6 +57,7 @@ cmake ../../lib/the_Foundation -DCMAKE_B
127 -DTFDN_STATIC_LIBRARY=YES \
128 -DTFDN_ENABLE_WEBREQUEST=NO \
129 -DTFDN_ENABLE_TESTS=NO \
130 + -DCMAKE_INSTALL_LIBDIR:STRING="lib" \
131 -DCMAKE_INSTALL_PREFIX="${BUILD_DIR}" $*
132 cmake --build . || exit 1
134 @@ -79,13 +70,13 @@ cmake ../../lib/sealcurses -DCMAKE_BUILD
135 -DCMAKE_C_FLAGS_RELEASE=-O1 \
137 -Dthe_Foundation_DIR="${BUILD_DIR}/lib/cmake/the_Foundation" \
138 + -DCMAKE_INSTALL_LIBDIR:STRING="lib" \
139 -DCMAKE_INSTALL_PREFIX="${BUILD_DIR}" $*
140 cmake --build . || exit 1
144 export PKG_CONFIG_PATH="${BUILD_DIR}/lib/pkgconfig":${PKG_CONFIG_PATH}
145 -LDFLAGS="`pkg-config --static --libs the_Foundation`"
147 -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} \
148 -DCMAKE_EXE_LINKER_FLAGS="${LDFLAGS}" \
149 @@ -97,15 +88,11 @@ cmake .. \
150 -DENABLE_HARFBUZZ=NO \
151 -DENABLE_POPUP_MENUS=NO \
152 -DENABLE_IDLE_SLEEP=NO \
153 + -DCMAKE_SKIP_RPATH:BOOL=TRUE \
154 -Dthe_Foundation_DIR="${BUILD_DIR}/lib/cmake/the_Foundation" \
156 cmake --build . || exit 1
159 echo "clagrange and resources.lgr can be found in 'build-tui'."
160 -echo "Do you want to install them to ${INSTALL_PREFIX}? (sudo) [yN]"
162 -if [ "${CONFIRMED}" = "y" ]; then
163 - sudo cmake --install .
169 [FILE:480:patches/patch-src_app.c]
170 --- src/app.c.orig 2023-01-21 11:08:14 UTC
172 @@ -729,7 +729,7 @@ static iBool loadState_App_(iApp *d) {
173 // printf("[State] '%.4s' split:%d state:%x\n", magic, splitMode, winState);
174 #if defined (iPlatformTerminal)
175 /* Terminal only supports one window. */
177 + win = as_MainWindow(d->window);
180 win = as_MainWindow(d->window);
183 [FILE:341:patches/patch-src_ui_text__terminal.c]
184 --- src/ui/text_terminal.c.orig 2023-01-21 11:08:14 UTC
185 +++ src/ui/text_terminal.c
186 @@ -206,6 +206,6 @@ static float nextTabStop_Font_(const iFo
188 #include "text_simple.c"
190 -iRect run_Font(iBaseFont *font, const iRunArgs *args) {
191 +void run_Font(iBaseFont *font, const iRunArgs *args) {
192 return runSimple_Font_((iFont *) font, args);