Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP unibilium recipe #835

Merged
merged 5 commits into from Jun 17, 2017
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

@@ -0,0 +1,74 @@
SUMMARY="A very basic terminfo library"
DESCRIPTION="Unibilium doesn't depend on curses or any other library. It \
also doesn't use global variables, so it should be thread-safe."
HOMEPAGE="http://github.com/mauke/unibilium"
COPYRIGHT="2008-2015 Lukas Mai
2011-2015 unibilium Developers"
LICENSE="GNU LGPL v3"
REVISION="1"
SOURCE_URI="https://github.com/mauke/unibilium/archive/v$portVersion.tar.gz"
CHECKSUM_SHA256="623af1099515e673abfd3cae5f2fa808a09ca55dda1c65a7b5c9424eb304ead8"

ARCHITECTURES="?x86_gcc2 ?x86 x86_64"
SECONDARY_ARCHITECTURES="?x86"

PROVIDES="
unibilium$secondaryArchSuffix = $portVersion compat >= 0.3.0
lib:libunibilium$secondaryArchSuffix = $portVersion compat >= 0.3.0
"
REQUIRES="
haiku$secondaryArchSuffix
"

PROVIDES_devel="
unibilium${secondaryArchSuffix}_devel = $portVersion compat >= 0.3.0
devel:libunibilium$secondaryArchSuffix = $portVersion compat >= 0.3.0
"
REQUIRES_devel="
libunibilium$secondaryArchSuffix == $portVersion
"

BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
"
BUILD_PREREQUIRES="
cmd:autoconf
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize$secondaryArchSuffix
cmd:make
cmd:sed
cmd:pkg_config$secondaryArchSuffix
"

PATCH()
{
# Stack Protector fix
sed -i 's/-fstack-protector-all/-fno-stack-protector/g' maint.mk
# Sanitize build-fix
sed -i 's/-fsanitize=address -fsanitize=undefined//g' maint.mk
# Terminfo folder
sed -i 's/TERMINFO_DIRS=\"/TERMINFO_DIRS="`finddir B_SYSTEM_DATA_DIRECTORY`\/terminfo\:/g' Makefile
}

BUILD()
{
make PREFIX=$prefix LIBDIR=$libDir INCDIR=$includeDir MANDIR=$manDir $jobArgs
}

INSTALL()
{
make install PREFIX=$prefix LIBDIR=$libDir INCDIR=$includeDir MANDIR=$manDir $jobArgs

rm -rf $libDir/libunibilium.la

prepareInstalledDevelLib libunibilium
fixPkgconfig

packageEntries devel $developDir
}

TEST()
{
make test
}
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.