mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
unibilium recipe (#835)
This commit is contained in:
74
dev-libs/unibilium/unibilium-1.2.0.recipe
Normal file
74
dev-libs/unibilium/unibilium-1.2.0.recipe
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user