mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-08 21:00:05 +02:00
111 lines
2.8 KiB
Bash
111 lines
2.8 KiB
Bash
SUMMARY="A graphics and text mode web browser"
|
|
DESCRIPTION="Links is a multi-platform web browser you can run in Terminal."
|
|
HOMEPAGE="http://links.twibright.com/"
|
|
COPYRIGHT="1999-2021 Mikulas Patocka
|
|
2000-2021 Petr Kulhavy, Karel Kulhavy, Martin Pergel"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="http://links.twibright.com/download/links-$portVersion.tar.bz2"
|
|
CHECKSUM_SHA256="c4631c6b5a11527cdc3cb7872fc23b7f2b25c2b021d596be410dadb40315f166"
|
|
|
|
PATCHES="links-$portVersion.patchset"
|
|
ADDITIONAL_FILES="links.rdef.in"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
commandSuffix=$secondaryArchSuffix
|
|
commandBinDir=$binDir
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
USER_SETTINGS_FILES="
|
|
settings/links directory
|
|
"
|
|
|
|
PROVIDES="
|
|
links$secondaryArchSuffix = $portVersion
|
|
cmd:links$commandSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libbrotlicommon$secondaryArchSuffix
|
|
lib:libbz2$secondaryArchSuffix
|
|
lib:libcrypto$secondaryArchSuffix
|
|
lib:libevent_2.1$secondaryArchSuffix
|
|
lib:libfontconfig$secondaryArchSuffix
|
|
lib:libfreetype$secondaryArchSuffix
|
|
lib:libgomp$secondaryArchSuffix
|
|
lib:libjpeg$secondaryArchSuffix
|
|
lib:liblzma$secondaryArchSuffix
|
|
lib:libpng16$secondaryArchSuffix
|
|
lib:libssl$secondaryArchSuffix
|
|
lib:libtiff$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libbrotlicommon$secondaryArchSuffix
|
|
devel:libbz2$secondaryArchSuffix
|
|
devel:libcrypto$secondaryArchSuffix >= 3
|
|
devel:libevent_2.1$secondaryArchSuffix
|
|
devel:libfontconfig$secondaryArchSuffix
|
|
devel:libfreetype$secondaryArchSuffix
|
|
devel:libglu$secondaryArchSuffix
|
|
devel:libjpeg$secondaryArchSuffix
|
|
devel:liblzma$secondaryArchSuffix
|
|
devel:libpng16$secondaryArchSuffix
|
|
devel:libssl$secondaryArchSuffix >= 3
|
|
devel:libtiff$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoreconf
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
defineDebugInfoPackage links$secondaryArchSuffix \
|
|
"$commandBinDir"/links
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -vfi
|
|
|
|
if [ $effectiveTargetArchitecture == 'x86' ]; then
|
|
export CFLAGS="-DTIFF_DISABLE_DEPRECATED -g -O2 -fopenmp"
|
|
fi
|
|
|
|
runConfigure --omit-dirs binDir ./configure \
|
|
--bindir="$commandBinDir" \
|
|
--without-x \
|
|
--with-haiku \
|
|
--with-ssl \
|
|
--enable-graphics
|
|
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
local MAJOR="`echo "$portVersion" | cut -d. -f1`"
|
|
local MIDDLE="`echo "$portVersion" | cut -d. -f2`"
|
|
local MINOR="0"
|
|
sed \
|
|
-e "s|@MAJOR@|$MAJOR|" \
|
|
-e "s|@MIDDLE@|$MIDDLE|" \
|
|
-e "s|@MINOR@|$MINOR|" \
|
|
$portDir/additional-files/links.rdef.in > links.rdef
|
|
|
|
addResourcesToBinaries links.rdef $commandBinDir/links
|
|
addAppDeskbarSymlink $commandBinDir/links Links
|
|
}
|