mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 19:50:05 +02:00
libcdr: add recipe for version 0.1.0
This commit is contained in:
99
media-libs/libcdr/libcdr-0.1.0.recipe
Normal file
99
media-libs/libcdr/libcdr-0.1.0.recipe
Normal file
@@ -0,0 +1,99 @@
|
||||
SUMMARY="Corel Draw import library"
|
||||
DESCRIPTION="
|
||||
libcdr is a library that parses the file format of CorelDRAW documents of all \
|
||||
versions.
|
||||
"
|
||||
HOMEPAGE="http://wiki.documentfoundation.org/DLP/Libraries/libcdr"
|
||||
SRC_URI="http://dev-www.libreoffice.org/src/libcdr/libcdr-$portVersion.tar.bz2"
|
||||
LICENSE="
|
||||
MPL v2.0
|
||||
"
|
||||
COPYRIGHT="
|
||||
Fridrich Strba <fridrich.strba@bluewin.ch>
|
||||
David Tardon <dtardon@redhat.com>
|
||||
"
|
||||
REVISION="1"
|
||||
CHECKSUM_SHA256="ef6c180db88e7024f91a949dd41aeafde0e074008c259ba4c1f8c3eefda48fd0"
|
||||
|
||||
ARCHITECTURES="x86 ?x86_64"
|
||||
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
|
||||
# x86_gcc2 is fine as primary target architecture as long as we're building
|
||||
# for a different secondary architecture.
|
||||
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
|
||||
fi
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
PROVIDES="
|
||||
libcdr$secondaryArchSuffix = $portVersion
|
||||
cmd:cdr2xhtml$secondaryArchSuffix
|
||||
cmd:cmx2xhtml$secondaryArchSuffix
|
||||
cmd:cdr2raw$secondaryArchSuffix
|
||||
cmd:cmx2raw$secondaryArchSuffix
|
||||
cmd:cdr2text$secondaryArchSuffix
|
||||
cmd:cmx2text$secondaryArchSuffix
|
||||
lib:libcdr_0.1$secondaryArchSuffix = 1.0.0 compat >= 1
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix >= $haikuVersion
|
||||
lib:libboost_system$secondaryArchSuffix
|
||||
lib:libicudata$secondaryArchSuffix
|
||||
lib:libicui18n$secondaryArchSuffix
|
||||
lib:libicuuc$secondaryArchSuffix
|
||||
lib:liblcms2$secondaryArchSuffix
|
||||
lib:librevenge_0.0$secondaryArchSuffix
|
||||
lib:librevenge_generators_0.0$secondaryArchSuffix
|
||||
lib:librevenge_stream_0.0$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
devel:libboost_system$secondaryArchSuffix
|
||||
devel:libicudata$secondaryArchSuffix
|
||||
devel:libicui18n$secondaryArchSuffix
|
||||
devel:libicuuc$secondaryArchSuffix
|
||||
devel:liblcms2$secondaryArchSuffix
|
||||
devel:librevenge_0.0$secondaryArchSuffix
|
||||
devel:librevenge_generators_0.0$secondaryArchSuffix
|
||||
devel:librevenge_stream_0.0$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||||
cmd:aclocal
|
||||
cmd:libtoolize
|
||||
cmd:autoconf
|
||||
cmd:automake
|
||||
cmd:autoheader
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
libtoolize --force --copy --install
|
||||
aclocal
|
||||
autoheader
|
||||
automake -a -c --foreign
|
||||
autoconf
|
||||
runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
prepareInstalledDevelLibs libcdr-0.1
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel $developDir
|
||||
}
|
||||
|
||||
PROVIDES_devel="
|
||||
libcdr${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libcdr_0.1$secondaryArchSuffix = 1.0.0 compat >= 1
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libcdr$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
Reference in New Issue
Block a user