mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
Added recipe for Scribus
This commit is contained in:
89
app-office/scribus/scribus-1.4.4.recipe
Normal file
89
app-office/scribus/scribus-1.4.4.recipe
Normal file
@@ -0,0 +1,89 @@
|
||||
SUMMARY="A powerful desktop publishing application"
|
||||
DESCRIPTION="Scribus is an Open Source program that brings professional page \
|
||||
layout to Linux, BSD UNIX, Solaris, OpenIndiana, GNU/Hurd, Mac OS X, OS/2 \
|
||||
Warp 4, eComStation, Haiku and Windows desktops with a combination of \
|
||||
press-ready output and new approaches to page design. Underneath a modern and \
|
||||
user-friendly interface, Scribus supports professional publishing features, \
|
||||
such as color separations, CMYK and spot colors, ICC color management, and \
|
||||
versatile PDF creation."
|
||||
HOMEPAGE="http://www.scribus.net"
|
||||
COPYRIGHT="2014 Scribus Team"
|
||||
LICENSE="GNU GPL v2"
|
||||
SRC_URI="http://downloadsurceforge.net/project/scribus/scribus/1.4.4/scribus-1.4.4.tar.xz"
|
||||
SOURCE_DIR="scribus-1.4.4"
|
||||
CKECKSUM_MD5=""
|
||||
REVISION="1"
|
||||
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"
|
||||
else
|
||||
ARCHITECTURES="$ARCHITECTURES !x86_gcc2"
|
||||
fi
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
PATCHES="
|
||||
scribus-1.4.4.patchset
|
||||
"
|
||||
PROVIDES="
|
||||
scribus$secondaryArchSuffix = $portVersion
|
||||
app:Scribus
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
libqt4$secondaryArchSuffix
|
||||
lib:libfreetype$secondaryArchSuffix
|
||||
lib:libfontconfig$secondaryArchSuffix
|
||||
lib:libtiff$secondaryArchSuffix
|
||||
lib:libjpeg$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
lib:liblcms2$secondaryArchSuffix
|
||||
lib:libgcc_s$secondaryArchSuffix
|
||||
lib:libxml2$secondaryArchSuffix
|
||||
"
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
libqt4${secondaryArchSuffix}_devel
|
||||
devel:libz$secondaryArchSuffix
|
||||
devel:libpng16$secondaryArchSuffix
|
||||
devel:libjpeg$secondaryArchSuffix
|
||||
devel:libtiff$secondaryArchSuffix
|
||||
devel:libpython2.7
|
||||
devel:libfreetype$secondaryArchSuffix
|
||||
devel:libxml2$secondaryArchSuffix
|
||||
devel:liblcms2$secondaryArchSuffix
|
||||
devel:libfontconfig$secondaryArchSuffix
|
||||
boost${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:make
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
BUILD()
|
||||
{
|
||||
cmake . -DCMAKE_INSTALL_PREFIX=$prefix \
|
||||
-DEXECUTABLE_OUTPUT_PATH=$appsDir \
|
||||
-DCMAKE_INSTALL_DATAROOTDIR=$dataDir \
|
||||
-DSHAREDIR=$dataDir \
|
||||
-DDATA_DIR=$relativeDataDir \
|
||||
-DAPPLICATION_DATA_DIR=$dataDir \
|
||||
-DWANT_CAIRO=false
|
||||
make $jobArgs
|
||||
}
|
||||
INSTALL()
|
||||
{
|
||||
make install
|
||||
rm -f $binDir/scribus
|
||||
rm -f $prefix/scribus
|
||||
rm -f $prefix/bin/scribus
|
||||
mv $appsDir/scribus $appsDir/Scribus
|
||||
addAppDeskbarSymlink $appsDir/Scribus Scribus
|
||||
mkdir -p $includeDir
|
||||
mv $prefix/include/* $includeDir
|
||||
rm -rf $prefix/include
|
||||
rm -rf $prefix/lib
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user