mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
62 lines
1.6 KiB
Bash
62 lines
1.6 KiB
Bash
SUMMARY="Identify a file's format by scanning binary data for patterns"
|
|
DESCRIPTION="This is Release 5.x of Ian Darwin's (copyright but distributable) file(1) \
|
|
command, an implementation of the Unix File(1) command. It knows the 'magic \
|
|
number' of several thousands of file types. This version is the standard \
|
|
'file' command for Linux, *BSD, and other systems. (See 'patchlevel.h' for the \
|
|
exact release number)."
|
|
HOMEPAGE="ftp://ftp.astron.com/pub/file/"
|
|
COPYRIGHT="1986-1999 Ian F. Darwin
|
|
1994-2013 Christos Zoulas"
|
|
LICENSE="BSD (2-clause)"
|
|
REVISION="1"
|
|
SOURCE_URI="ftp://ftp.astron.com/pub/file/file-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="3735381563f69fb4239470b8c51b876a80425348b8285a7cded8b61d6b890eca"
|
|
PATCHES="file-5.25.patch"
|
|
|
|
ARCHITECTURES="x86 x86_gcc2 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
file$secondaryArchSuffix = $portVersion compat >= 5
|
|
cmd:file$secondaryArchSuffix = $portVersion compat >= 5
|
|
lib:libmagic$secondaryArchSuffix = 1.0.0 compat >= 0
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
file${secondaryArchSuffix}_devel = $portVersion compat >= 0
|
|
devel:libmagic$secondaryArchSuffix = $portVersion compat >= 0
|
|
"
|
|
REQUIRES_devel="
|
|
file$secondaryArchSuffix == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
cmd:autoreconf
|
|
cmd:aclocal
|
|
cmd:libtoolize
|
|
cmd:make
|
|
cmd:gcc$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
autoreconf -fvi
|
|
runConfigure ./configure
|
|
make
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
prepareInstalledDevelLibs libmagic
|
|
packageEntries devel $developDir
|
|
}
|