mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
x86_64 is used as a baseline: the "x86_64" entry, whatever status it has, is transformed into "all", and then the other entries in ARCHITECTURES either dropped or rearranged appropriately.
68 lines
1.5 KiB
Bash
68 lines
1.5 KiB
Bash
SUMMARY="Library to access to storage media device"
|
|
DESCRIPTION="libsmdev is a library to access to storage media devices."
|
|
HOMEPAGE="https://github.com/libyal/libsmdev"
|
|
COPYRIGHT="2010-2017 Joachim Metz"
|
|
LICENSE="GNU LGPL v3"
|
|
REVISION="1"
|
|
SOURCE_URI="https://github.com/libyal/libsmdev/releases/download/20170225/libsmdev-alpha-20170225.tar.gz"
|
|
CHECKSUM_SHA256="aa5d1cac3c23b46adc9c69e8bcc9b3782cfbf6cb0c2ab7fbd2c5a39b299fcc04"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
libsmdev${secondaryArchSuffix} = $portVersion
|
|
cmd:smdevinfo${secondaryArchSuffix}
|
|
lib:libsmdev${secondaryArchSuffix} = 1.0.0 compat >= 1
|
|
"
|
|
REQUIRES="
|
|
haiku${secondaryArchSuffix}
|
|
lib:libiconv$secondaryArchSuffix
|
|
lib:libintl$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libsmdev${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libsmdev$secondaryArchSuffix = 1.0.0 compat >= 1
|
|
"
|
|
REQUIRES_devel="
|
|
libsmdev$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libiconv$secondaryArchSuffix
|
|
devel:libintl$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:awk
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -vfi
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
#remove libtool file
|
|
rm $libDir/*.la
|
|
|
|
prepareInstalledDevelLib libsmdev
|
|
fixPkgconfig
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|