Merge branch 'package-management'

Conflicts:
	app-arch/p7zip/p7zip-9.04.bep
	app-arch/p7zip/p7zip-9.13.bep
	app-arch/tar/tar-1.22.bep
	app-arch/tar/tar-1.23.bep
	app-arch/tar/tar-1.25.bep
	app-arch/xz-utils/xz-utils-4.999.9.bep
	app-cdr/bchunk/bchunk-1.2.0.bep
	app-cdr/cdrtools/cdrtools-2.01.01a66.bep
	app-cdr/cdrtools/cdrtools-3.01a01.bep
	app-crypt/gnupg/gnupg-1.4.11.bep
	app-doc/doxygen/doxygen-1.6.3.bep
	app-editors/nano/nano-2.2.6.bep
	app-editors/vim/vim-7.3.bep
	app-text/antiword/antiword-0.37.bep
	app-text/libpaper/libpaper-1.1.23.bep
	app-text/libpaper/libpaper-1.1.24.bep
	app-text/rman/rman-3.2.bep
	dev-db/sqlite/sqlite-3.6.22.bep
	dev-db/sqlite/sqlite-3.6.23.bep
	dev-db/sqlite/sqlite-3.7.2.bep
	dev-db/sqlite/sqlite-3.7.3.bep
	dev-db/sqlite/sqlite-3.7.4.bep
	dev-db/sqlite/sqlite-3.7.5.bep
	dev-lang/lua/lua-5.1.4.bep
	dev-lang/nasm/nasm-2.08.01.bep
	dev-lang/perl/patches/perl-5.10.0.patch
	dev-lang/python/python-2.5.4.bep
	dev-lang/python/python-2.6.4.bep
	dev-lang/python/python-2.6.5.bep
	dev-lang/python/python-2.6.6.bep
	dev-lang/python/python-2.6.7.bep
	dev-lang/python/python-2.6.8.bep
	dev-lang/python/python-3.2.bep
	dev-lang/python/python-3.2.recipe
	dev-lang/python/python-3.2a4.bep
	dev-lang/yasm/yasm-1.1.0.bep
	dev-libs/apr-util/apr-util-1.3.10.bep
	dev-libs/apr-util/apr-util-1.3.9.bep
	dev-libs/apr/apr-1.3.8.bep
	dev-libs/apr/apr-1.3.9.bep
	dev-libs/apr/apr-1.4.2.bep
	dev-libs/apr/patches/apr-1.4.2.patch
	dev-libs/expat/expat-2.0.1.bep
	dev-libs/fribidi/fribidi-0.19.2.bep
	dev-libs/icu/icu-4.4.1.bep
	dev-libs/libedit/libedit-20090923.bep
	dev-libs/libedit/libedit-20100424.bep
	dev-libs/libevent/libevent-1.4.11.bep
	dev-libs/libevent/libevent-1.4.13.bep
	dev-libs/libevent/libevent-1.4.14b.bep
	dev-libs/libevent/libevent-2.0.10.bep
	dev-libs/libiconv/libiconv-1.12.bep
	dev-libs/libiconv/libiconv-1.13.1.bep
	dev-libs/libpcre/libpcre-8.00.bep
	dev-libs/libpcre/libpcre-8.02.bep
	dev-libs/libpcre/libpcre-8.12.bep
	dev-libs/libxml2/libxml2-2.7.3.bep
	dev-libs/libxml2/libxml2-2.7.6.bep
	dev-libs/libxml2/libxml2-2.7.7.bep
	dev-libs/libxml2/libxml2-2.7.8.bep
	dev-libs/openssl/openssl-0.9.8l.bep
	dev-libs/openssl/openssl-0.9.8m.bep
	dev-libs/openssl/openssl-1.0.0.bep
	dev-libs/openssl/openssl-1.0.0a.bep
	dev-libs/openssl/openssl-1.0.0c.bep
	dev-qt/qtcore/qtcore-4.8.x-git.bep
	dev-qt/qtcore/qtcore-4.8.x.recipe
	dev-util/ccache/ccache-3.0.1.bep
	dev-util/cmake/cmake-2.6.4.bep
	dev-util/cmake/cmake-2.8.0.bep
	dev-util/cmake/cmake-2.8.1.bep
	dev-util/cmake/cmake-2.8.2.bep
	dev-util/cmake/cmake-2.8.3.bep
	dev-util/cmake/cmake-2.8.4.bep
	dev-util/ctags/ctags-5.8.bep
	dev-util/fastdep/fastdep-0.16.bep
	dev-util/gperf/gperf-3.0.4.bep
	dev-util/pkgconfig/pkgconfig-0.23.bep
	dev-util/pkgconfig/pkgconfig-0.25.bep
	dev-vcs/cvs/cvs-1.12.13.1.bep
	dev-vcs/cvs/cvs-1.12.13.bep
	dev-vcs/subversion/subversion-1.6.11.bep
	dev-vcs/subversion/subversion-1.6.12.bep
	dev-vcs/subversion/subversion-1.6.13.bep
	dev-vcs/subversion/subversion-1.6.15.bep
	dev-vcs/subversion/subversion-1.6.6.bep
	dev-vcs/subversion/subversion-1.6.9.bep
	dev-vcs/subversion/subversion-1.7.xx-svn.bep
	haiku-apps/bepdf/bepdf-1.1.1b4.bep
	haiku-apps/libwalter/libwalter-97.bep
	haiku-apps/paladin/paladin-1.3-hg.bep
	haiku-apps/pe/pe-2.4.3-600.bep
	haiku-apps/vision/patches/vision-908-gcc4.patch
	haiku-apps/vision/vision-0.9.7.bep
	haiku-libs/libwalter/libwalter-97.bep
	haiku-libs/libwalter/libwalter-97.recipe
	media-gfx/graphviz/graphviz-2.24.bep
	media-gfx/graphviz/graphviz-2.26.3.bep
	media-libs/flac/flac-1.2.1.bep
	media-libs/freetype/freetype-2.3.11.bep
	media-libs/freetype/freetype-2.4.2.bep
	media-libs/freetype/freetype-2.4.4.bep
	media-libs/ftgl/ftgl-2.1-svn.bep
	media-libs/guilib/guilib-1.2.1.bep
	media-libs/jpeg/jpeg-7.bep
	media-libs/jpeg/jpeg-8b.bep
	media-libs/jpeg/jpeg-8c.bep
	media-libs/libao/libao-1.0.0.bep
	media-libs/libmad/libmad-0.15.1b.bep
	media-libs/libmng/libmng-1.0.10.bep
	media-libs/libogg/libogg-1.1.4.bep
	media-libs/libogg/libogg-1.2.0.bep
	media-libs/libogg/libogg-1.2.2.bep
	media-libs/libpng/libpng-1.2.29.bep
	media-libs/libpng/libpng-1.2.30.bep
	media-libs/libpng/libpng-1.2.40.bep
	media-libs/libpng/libpng-1.2.41.bep
	media-libs/libpng/libpng-1.2.43.bep
	media-libs/libpng/libpng-1.2.44.bep
	media-libs/libpng/libpng-1.4.1.bep
	media-libs/libpng/libpng-1.4.2.bep
	media-libs/libpng/libpng-1.4.3.bep
	media-libs/libpng/libpng-1.4.4.bep
	media-libs/libpng/libpng-1.5.0.bep
	media-libs/libsdl/patches/libsdl-1.2-hg.patch
	media-libs/libtheora/libtheora-1.1.1.bep
	media-libs/libvorbis/libvorbis-1.2.3.bep
	media-libs/libvorbis/libvorbis-1.3.1.bep
	media-libs/libvorbis/libvorbis-1.3.2.bep
	media-libs/libvpx/libvpx-0.9.2-git.bep
	media-libs/smpeg/smpeg-0.4.5.bep
	media-libs/speex/speex-1.2-git.bep
	media-libs/speex/speex-1.2rc1.bep
	media-sound/lame/lame-3.98.4.bep
	media-sound/lame/lame-398-2.bep
	media-sound/vorbis-tools/vorbis-tools-1.2.0.bep
	media-sound/vorbis-tools/vorbis-tools-1.4.0.bep
	media-video/ffmpeg/ffmpeg-0.5.bep
	media-video/ffmpeg/ffmpeg-0.6.bep
	net-misc/curl/curl-7.18.2.bep
	net-misc/curl/curl-7.19.1.bep
	net-misc/curl/curl-7.19.2.bep
	net-misc/curl/curl-7.19.5.bep
	net-misc/curl/curl-7.19.7.bep
	net-misc/curl/curl-7.20.0.bep
	net-misc/curl/curl-7.20.1.bep
	net-misc/curl/curl-7.21.1.bep
	net-misc/curl/curl-7.21.2.bep
	net-misc/curl/curl-7.21.3.bep
	net-misc/openssh/openssh-5.4p1.bep
	net-misc/openssh/openssh-5.5p1.bep
	net-misc/openssh/openssh-5.6p1.bep
	net-misc/openssh/openssh-5.7p1.bep
	net-misc/openssh/openssh-5.8p1.bep
	net-wireless/b43-fwcutter/b43-fwcutter-012.bep
	sci-libs/gsl/gsl-1.14.bep
	sys-apps/ed/ed-1.4.bep
	sys-apps/gawk/gawk-3.1.8.bep
	sys-apps/grep/grep-2.5.4.bep
	sys-apps/grep/grep-2.7.bep
	sys-apps/groff/groff-1.20.1.bep
	sys-apps/man/man-1.6f.bep
	sys-apps/sed/sed-4.2.1.bep
	sys-apps/texinfo/texinfo-4.13a.bep
	sys-devel/autoconf/autoconf-2.68.bep
	sys-devel/automake/automake-1.11.1.bep
	sys-devel/bison/bison-2.4.1.bep
	sys-devel/bison/bison-2.4.bep
	sys-devel/flex/flex-2.5.35.bep
	sys-devel/gettext/gettext-0.18.1.1-dev.bep
	sys-devel/gettext/gettext-0.18.1.1.bep
	sys-devel/jam/jam-2.5.bep
	sys-devel/m4/m4-1.4.14.bep
	sys-libs/ncurses/ncurses-5.6.bep
	sys-libs/ncurses/ncurses-5.7.bep
	sys-libs/readline/readline-5.2.bep
	sys-libs/readline/readline-6.0.bep
	sys-libs/readline/readline-6.1.bep
	sys-libs/zlib/zlib-1.2.3.bep
	sys-libs/zlib/zlib-1.2.5.bep
	x11-libs/qt/qt-4.8.x-git.bep
This commit is contained in:
Oliver Tappe
2013-10-15 22:48:02 +02:00
1452 changed files with 31199 additions and 33804 deletions

View File

@@ -0,0 +1,67 @@
SUMMARY="OpenGL Utility Library"
DESCRIPTION="OpenGL Utility Library"
HOMEPAGE="http://freedesktop.org"
COPYRIGHT="Copyright (C) 1999-2012 Brian Paul and others. All Rights Reserved."
LICENSE="MIT"
SRC_URI="ftp://freedesktop.org/pub/mesa/glu/glu-9.0.0.tar.gz"
CHECKSUM_MD5="bbc57d4fe3bd3fb095bdbef6fcb977c4"
REVISION="2"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
glu$secondaryArchSuffix = $portVersion
lib:libGLU$secondaryArchSuffix = 1.3.1 compat >= 1
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
"
BUILD_REQUIRES="
devel:libglapi$secondaryArchSuffix
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:sed
"
BUILD()
{
# The Haiku build system builds libGL.so from libglapi and libglu. Since the
# glu build system requires libGL.so (since the shared libglu.so is linked
# against it), we build a dummy libGL.so from libglapi.a.
gcc -o libGL.so -shared -Xlinker --whole-archive -lglapi
libglLinkFlags="-L$(pwd)"
LDFLAGS="$libglLinkFlags" \
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs libGLU
fixPkgconfig
# Remove the additional LDFLAGS from libGLU.la
sed -i "s,^dependency_libs=.*,dependency_libs=' -lGL'," \
$developLibDir/libGLU.la
# devel package
packageEntries devel \
$developDir
}
# ----- devel package -------------------------------------------------------
PROVIDES_devel="
glu${secondaryArchSuffix}_devel = $portVersion
devel:libGLU$secondaryArchSuffix = 1.3.1 compat >= 1
"
REQUIRES_devel="
glu$secondaryArchSuffix == $portVersion base
"

View File

@@ -1,23 +0,0 @@
DESCRIPTION="glu"
HOMEPAGE="http://freedesktop.org"
SRC_URI="ftp://freedesktop.org/pub/mesa/glu/glu-9.0.0.tar.gz"
CHECKSUM_MD5="bbc57d4fe3bd3fb095bdbef6fcb977c4"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd glu-9.0.0
./configure --prefix=`finddir B_SYSTEM_DIRECTORY` \
--datadir=`finddir B_COMMON_DATA_DIRECTORY`/ \
--includedir=`finddir B_SYSTEM_HEADERS_DIRECTORY`/os/opengl \
--mandir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man
make
}
INSTALL {
cd glu-9.0.0
make install DESTDIR="${DESTDIR}"
}
LICENSE="MIT"
COPYRIGHT="Copyright (C) 1999-2012 Brian Paul and others. All Rights Reserved."

View File

@@ -1,25 +0,0 @@
###############################################################
# THIS IS NOT FOR GENERAL USE!
# This builds a buildpackage for the Haiku build system to link
# the OpenGL kit!!
###############################################################
DESCRIPTION="Mesa3D is a multi-platform GL implementation"
HOMEPAGE="http://www.freedesktop.org/"
SRC_URI="ftp://freedesktop.org/pub/mesa/7.8.2/MesaLib-7.8.2.tar.bz2"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
CHECKSUM_MD5="6be2d343a0089bfd395ce02aaf8adb57"
MESSAGE="This port only builds with gcc2. Not for general use."
BUILD {
export DEBUG=0
cd Mesa-7.8.2
make haiku
cd ..
sh $(haikuporter -t)/sys-libs/mesa/buildpackage.sh 7.8.2 ./Mesa-7.8.2
echo "There should be a Mesa OptionalBuild package in your home if everything went well!"
}
LICENSE="MIT"
COPYRIGHT="1999-2012 Brian Paul All Rights Reserved."

View File

@@ -0,0 +1,87 @@
# NOTE: This recipe doesn't generate packages for general use:
# * mesa_devel: Is a service package for the Haiku build system. It contains the
# Mesa libraries and headers, which are built into the Haiku system package.
# * mesa: Is an empty package which we keep as a dependency for the Haiku system
# package, mainly to keep the copyright info.
SUMMARY="Multi-platform GL implementation"
DESCRIPTION="Mesa is an open-source implementation of the OpenGL specification - a system for rendering interactive 3D graphics.
A variety of device drivers allows Mesa to be used in many different environments ranging from software emulation to complete hardware acceleration for modern GPUs.
Mesa ties into several other open-source projects: the Direct Rendering Infrastructure and X.org to provide OpenGL support to users of X on Linux, FreeBSD and other operating systems."
HOMEPAGE="http://www.mesa3d.org/"
COPYRIGHT="1999-2012 Brian Paul All Rights Reserved."
LICENSE="MIT"
SRC_URI="ftp://freedesktop.org/pub/mesa/older-versions/7.x/7.8.2/MesaLib-7.8.2.tar.bz2"
CHECKSUM_MD5="6be2d343a0089bfd395ce02aaf8adb57"
REVISION="3"
ARCHITECTURES="x86_gcc2"
if [ $effectiveTargetArchitecture = x86_gcc2 -a $targetArchitecture = x86 ]
then
ARCHITECTURES="$ARCHITECTURES x86"
fi
SECONDARY_ARCHITECTURES="x86_gcc2"
PATCHES="mesa-7.8.2.patch"
PROVIDES="
mesa$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
"
BUILD_REQUIRES="
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
cmd:find
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:sed
"
SOURCE_DIR="Mesa-$portVersion"
BUILD()
{
DEBUG=0 make $jobArgs haiku
}
INSTALL()
{
# "make install" seems to be broken, so we copy the headers and libraries
# manually.
mkdir -p $includeDir
cp -r include/* $includeDir
mkdir -p $developLibDir
cp lib/libglu.a src/mesa/*.a src/glsl/*/*.a $developLibDir
mesaPrivateHeaders=$includeDir/mesa_private
for header in $(find src -name '*\.h' | sed "s,^src/,,"); do
mkdir -p $mesaPrivateHeaders/$(dirname $header)
cp src/$header $mesaPrivateHeaders/$header
done
# devel package
packageEntries devel \
$developDir
}
# ----- devel package -------------------------------------------------------
PROVIDES_devel="
mesa${secondaryArchSuffix}_devel = $portVersion
devel:libglapi$secondaryArchSuffix = $portVersion
devel:libglslcl$secondaryArchSuffix = $portVersion
devel:libglslpp$secondaryArchSuffix = $portVersion
devel:libglu$secondaryArchSuffix = $portVersion
devel:libmesa$secondaryArchSuffix = $portVersion
devel:libmesagallium$secondaryArchSuffix = $portVersion
"
REQUIRES_devel="
mesa$secondaryArchSuffix == $portVersion base
"

View File

@@ -1,25 +0,0 @@
###############################################################
# THIS IS NOT FOR GENERAL USE!
# This builds a buildpackage for the Haiku build system to link
# the OpenGL kit!!
###############################################################
DESCRIPTION="Mesa3D is a multi-platform GL implementation"
HOMEPAGE="http://www.freedesktop.org/"
SRC_URI="ftp://freedesktop.org/pub/mesa/9.0.1/MesaLib-9.0.1.tar.bz2"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND="scons"
CHECKSUM_MD5="97d6554c05ea7449398afe3a0ede7018"
MESSAGE="This port only builds with gcc4. Not for general use."
BUILD {
export DEBUG=0
cd Mesa-9.0.1
scons debug=$DEBUG
cd ..
sh $(haikuporter -t)/sys-libs/mesa/buildpackage.sh 9.0.1 ./Mesa-9.0.1
echo "There should be a Mesa OptionalBuild package in your home if everything went well!"
}
LICENSE="MIT"
COPYRIGHT="Copyright (C) 1999-2012 Brian Paul All Rights Reserved."

View File

@@ -1,28 +0,0 @@
###############################################################
# THIS IS NOT FOR GENERAL USE!
# This builds a buildpackage for the Haiku build system to link
# the OpenGL kit!!
###############################################################
DESCRIPTION="Mesa3D is a multi-platform GL implementation"
HOMEPAGE="http://www.freedesktop.org/"
SRC_URI="ftp://freedesktop.org/pub/mesa/9.0.2/MesaLib-9.0.2.tar.bz2"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND="scons, llvm >= 3.2"
CHECKSUM_MD5="dc45d1192203e418163e0017640e1cfc"
MESSAGE="This port only builds with gcc4. Not for general use."
BUILD {
export DEBUG=0
echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
echo "This generates a Mesa3D build package for Haiku... not for general use"
echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
cd Mesa-9.0.2
scons debug=$DEBUG
cd ..
sh $(haikuporter -t)/sys-libs/mesa/buildpackage.sh 9.0.2 ./Mesa-9.0.2
echo "There should be a Mesa OptionalBuild package in your home if everything went well!"
}
LICENSE="MIT"
COPYRIGHT="1999-2012 Brian Paul All Rights Reserved."

View File

@@ -1,25 +0,0 @@
###############################################################
# THIS IS NOT FOR GENERAL USE!
# This builds a buildpackage for the Haiku build system to link
# the OpenGL kit!!
###############################################################
DESCRIPTION="Mesa3D is a multi-platform GL implementation"
HOMEPAGE="http://www.freedesktop.org/"
SRC_URI="ftp://freedesktop.org/pub/mesa/9.0/MesaLib-9.0.tar.bz2"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND="scons"
CHECKSUM_MD5="60e557ce407be3732711da484ab3db6c"
MESSAGE="This port only builds with gcc4. Not for general use."
BUILD {
export DEBUG=0
cd Mesa-9.0
scons debug=$DEBUG
cd ..
sh $(haikuporter -t)/sys-libs/mesa/buildpackage.sh 9.0 ./Mesa-9.0
echo "There should be a Mesa OptionalBuild package in your home if everything went well!"
}
LICENSE="MIT"
COPYRIGHT="Copyright (C) 1999-2012 Brian Paul All Rights Reserved."

View File

@@ -1,28 +0,0 @@
###############################################################
# THIS IS NOT FOR GENERAL USE!
# This builds a buildpackage for the Haiku build system to link
# the OpenGL kit!!
###############################################################
DESCRIPTION="Mesa3D is a multi-platform GL implementation"
HOMEPAGE="http://www.freedesktop.org/"
SRC_URI="ftp://freedesktop.org/pub/mesa/9.1/MesaLib-9.1.tar.bz2"
REVISION="1"
STATUS_HAIKU="unstable"
DEPEND="scons, llvm >= 3.2"
CHECKSUM_MD5="d3891e02215422e120271d976ff1947e"
MESSAGE="This port only builds with gcc4. Not for general use."
BUILD {
export DEBUG=0
echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
echo "This generates a Mesa3D build package for Haiku... not for general use"
echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
cd Mesa-9.1
scons debug=$DEBUG
cd ..
sh $(haikuporter -t)/sys-libs/mesa/buildpackage.sh 9.1.0 ./Mesa-9.1
echo "There should be a Mesa OptionalBuild package in your home if everything went well!"
}
LICENSE="MIT"
COPYRIGHT="1999-2012 Brian Paul All Rights Reserved."

View File

@@ -1,28 +0,0 @@
###############################################################
# THIS IS NOT FOR GENERAL USE!
# This builds a buildpackage for the Haiku build system to link
# the OpenGL kit!!
###############################################################
DESCRIPTION="Mesa3D is a multi-platform GL implementation"
HOMEPAGE="http://www.freedesktop.org/"
SRC_URI="ftp://freedesktop.org/pub/mesa/9.1.1/MesaLib-9.1.1.tar.bz2"
REVISION="1"
STATUS_HAIKU="unstable"
DEPEND="scons, llvm >= 3.2"
CHECKSUM_MD5="6ea2bdc3b7ecfb4257b39814b4182580"
MESSAGE="This port only builds with gcc4. Not for general use."
BUILD {
export DEBUG=0
echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
echo "This generates a Mesa3D build package for Haiku... not for general use"
echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
cd Mesa-9.1.1
scons debug=$DEBUG
cd ..
sh $(haikuporter -t)/sys-libs/mesa/buildpackage.sh 9.1.1 ./Mesa-9.1.1
echo "There should be a Mesa OptionalBuild package in your home if everything went well!"
}
LICENSE="MIT"
COPYRIGHT="1999-2012 Brian Paul All Rights Reserved."

View File

@@ -0,0 +1,105 @@
# NOTE: This recipe doesn't generate packages for general use:
# * mesa_devel: Is a service package for the Haiku build system. It contains the
# Mesa libraries and headers, which are built into the Haiku system package.
# * mesa: Is an empty package which we keep as a dependency for the Haiku system
# package, mainly to keep the copyright info.
SUMMARY="Multi-platform GL implementation"
DESCRIPTION="Mesa is an open-source implementation of the OpenGL specification - a system for rendering interactive 3D graphics.
A variety of device drivers allows Mesa to be used in many different environments ranging from software emulation to complete hardware acceleration for modern GPUs.
Mesa ties into several other open-source projects: the Direct Rendering Infrastructure and X.org to provide OpenGL support to users of X on Linux, FreeBSD and other operating systems."
HOMEPAGE="http://www.mesa3d.org/"
COPYRIGHT="1999-2012 Brian Paul All Rights Reserved."
LICENSE="MIT"
SRC_URI="ftp://freedesktop.org/pub/mesa/9.1.1/MesaLib-9.1.1.tar.bz2"
CHECKSUM_MD5="6ea2bdc3b7ecfb4257b39814b4182580"
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"
fi
SECONDARY_ARCHITECTURES="x86"
PATCHES="mesa-9.1.1.patch"
PROVIDES="
mesa$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
"
BUILD_REQUIRES="
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
libxml2_python
cmd:bison
cmd:find
cmd:flex
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:scons
cmd:sed
"
# TODO: Add LLVM, so llvmpipe can be built!
SOURCE_DIR="Mesa-$portVersion"
BUILD()
{
if [ -n "$secondaryArchSuffix" ]; then
export HAIKU_SECONDARY_ARCH="$effectiveTargetArchitecture"
fi
scons $jobArgs build=release
}
INSTALL()
{
mesaBuildDir=build/haiku-$effectiveTargetArchitecture
mkdir -p $includeDir
cp -r include/* $includeDir
mkdir -p $developLibDir
cp $(find $mesaBuildDir -name '*\.a') $developLibDir
strip --strip-debug $developLibDir/*
mesaPrivateHeaders=$includeDir/mesa_private
for header in $(find src -name '*\.h' | sed "s,^src/,,"); do
mkdir -p $mesaPrivateHeaders/$(dirname $header)
cp src/$header $mesaPrivateHeaders/$header
done
# devel package
packageEntries devel \
$developDir
}
# ----- devel package -------------------------------------------------------
PROVIDES_devel="
mesa${secondaryArchSuffix}_devel = $portVersion
devel:libgalahad$secondaryArchSuffix = $portVersion
devel:libgallium$secondaryArchSuffix = $portVersion
devel:libglapi$secondaryArchSuffix = $portVersion
devel:libglsl$secondaryArchSuffix = $portVersion
devel:libi915$secondaryArchSuffix = $portVersion
devel:libi915sw$secondaryArchSuffix = $portVersion
devel:libidentity$secondaryArchSuffix = $portVersion
devel:libmesa$secondaryArchSuffix = $portVersion
devel:librbug$secondaryArchSuffix = $portVersion
devel:libsoftpipe$secondaryArchSuffix = $portVersion
devel:libst_vega$secondaryArchSuffix = $portVersion
devel:libsvga$secondaryArchSuffix = $portVersion
devel:libtrace$secondaryArchSuffix = $portVersion
devel:libws_null$secondaryArchSuffix = $portVersion
devel:libws_wrapper$secondaryArchSuffix = $portVersion
"
REQUIRES_devel="
mesa$secondaryArchSuffix == $portVersion base
"

View File

@@ -0,0 +1,96 @@
SUMMARY="Multi-platform GL implementation"
DESCRIPTION="Mesa is an open-source implementation of the OpenGL specification - a system for rendering interactive 3D graphics.
Mesa fills the role of the Haiku OpenGL kit.
"
HOMEPAGE="http://www.mesa3d.org/"
COPYRIGHT="1999-2013 Brian Paul All Rights Reserved."
LICENSE="MIT"
SRC_URI="git://anongit.freedesktop.org/mesa/mesa"
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"
fi
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
mesa$secondaryArchSuffix = $portVersion compat >= 9.3
lib:libGL$secondaryArchSuffix = $portVersion compat >= 9.3
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
"
BUILD_REQUIRES="
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
libxml2_python
llvm >= 3.2
cmd:bison
cmd:find
cmd:flex
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:scons
cmd:sed
"
SOURCE_DIR="Mesa-$portVersion"
BUILD()
{
if [ -n "$secondaryArchSuffix" ]; then
export HAIKU_SECONDARY_ARCH="$effectiveTargetArchitecture"
fi
scons $jobArgs build=release
#scons $jobArgs build=debug
}
INSTALL()
{
mesaBuildDir=build/haiku-$effectiveTargetArchitecture
mkdir -p $includeDir/GL
cp include/GL/gl.h $includeDir/GL/
cp include/GL/gl_mangle.h $includeDir/GL/
cp include/GL/glext.h $includeDir/GL/
# libGL.so makes up the core of our OpenGL kit
mkdir -p $libDir
cp $(find $mesaBuildDir -name 'libGL.so') $libDir
# Our rendering add-ons
mkdir -p $addOnsDir/opengl
cp $(find $mesaBuildDir -name 'libswpipe.so') $addOnsDir/opengl/Softpipe
# devel package
packageEntries devel \
$developDir
# swpipe renderer package
packageEntries swpipe \
$addOnsDir
}
# ----- devel package -------------------------------------------------------
PROVIDES_devel="
mesa${secondaryArchSuffix}_devel = $portVersion
"
REQUIRES_devel="
mesa$secondaryArchSuffix == $portVersion base
"
# ----- swpipe package -------------------------------------------------------
PROVIDES_swpipe="
mesa${secondaryArchSuffix}_swpipe = $portVersion
"
REQUIRED_swpipe="
mesa$secondaryArchSuffix == $portVersion base
"

View File

@@ -1,19 +0,0 @@
DESCRIPTION="ncurses"
HOMEPAGE="http://www.gnu.org/software/ncurses/ncurses.html"
SRC_URI="http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.6.tar.gz"
CHECKSUM_MD5="b6593abe1089d6aab1551c105c9300e3"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd ncurses-5.6
./configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}
INSTALL {
cd ncurses-5.6
make install
}
LICENSE="MIT"
COPYRIGHT="1998-2008 Free Software Foundation, Inc."

View File

@@ -1,19 +0,0 @@
DESCRIPTION="ncurses"
HOMEPAGE="http://www.gnu.org/software/ncurses/ncurses.html"
SRC_URI="http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.7.tar.gz"
CHECKSUM_MD5="cce05daf61a64501ef6cd8da1f727ec6"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd ncurses-5.7
./configure --prefix=`finddir B_COMMON_DIRECTORY` --with-libtool
make
}
INSTALL {
cd ncurses-5.7
./misc/shlib make install DESTDIR="${DESTDIR}"
}
LICENSE="MIT"
COPYRIGHT="1998-2008 Free Software Foundation, Inc."

View File

@@ -1,23 +0,0 @@
DESCRIPTION="ncurses"
HOMEPAGE="http://www.gnu.org/software/ncurses/ncurses.html"
SRC_URI="http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.8.tar.gz"
CHECKSUM_MD5="20ed3fa7599937f0ca268d9088837a64"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd ncurses-5.8
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--datadir=`finddir B_COMMON_DATA_DIRECTORY`/ \
--mandir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man \
--with-libtool
make
}
INSTALL {
cd ncurses-5.8
./misc/shlib make install DESTDIR="${DESTDIR}"
}
LICENSE="MIT"
COPYRIGHT="1998-2011 Free Software Foundation, Inc."

View File

@@ -1,24 +0,0 @@
DESCRIPTION="ncurses"
HOMEPAGE="http://www.gnu.org/software/ncurses/ncurses.html"
SRC_URI="http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz"
CHECKSUM_MD5="8cb9c412e5f2d96bc6f459aa8c6282a1"
REVISION="2"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd ncurses-5.9
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--datadir=`finddir B_COMMON_DATA_DIRECTORY` \
--mandir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man \
--with-libtool \
--enable-termcap
make
}
INSTALL {
cd ncurses-5.9
./misc/shlib make install DESTDIR="${DESTDIR}"
}
LICENSE="MIT"
COPYRIGHT="1998-2011 Free Software Foundation, Inc."

View File

@@ -0,0 +1,194 @@
SUMMARY="New curses library"
HOMEPAGE="http://www.gnu.org/software/ncurses/ncurses.html"
SRC_URI="http://ftp.gnu.org/pub/gnu/ncurses/ncurses-5.9.tar.gz"
CHECKSUM_MD5="8cb9c412e5f2d96bc6f459aa8c6282a1"
LICENSE="MIT"
COPYRIGHT="1998-2011 Free Software Foundation, Inc."
REVISION="10"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PATCHES="ncurses-5.9.patchset"
PROVIDES="
ncurses$secondaryArchSuffix = $portVersion compat >= 5
lib:libform$secondaryArchSuffix = $portVersion compat >= 5
lib:libformw$secondaryArchSuffix = $portVersion compat >= 5
lib:libmenu$secondaryArchSuffix = $portVersion compat >= 5
lib:libmenuw$secondaryArchSuffix = $portVersion compat >= 5
lib:libncurses$secondaryArchSuffix = $portVersion compat >= 5
lib:libncursesw$secondaryArchSuffix = $portVersion compat >= 5
lib:libncurses++$secondaryArchSuffix = $portVersion compat >= 5
lib:libncurses++w$secondaryArchSuffix = $portVersion compat >= 5
lib:libpanel$secondaryArchSuffix = $portVersion compat >= 5
lib:libpanelw$secondaryArchSuffix = $portVersion compat >= 5
"
if [ -z "$secondaryArchSuffix" ]; then
PROVIDES="$PROVIDES
cmd:captoinfo = $portVersion compat >= 5
cmd:clear = $portVersion compat >= 5
cmd:infocmp = $portVersion compat >= 5
cmd:infotocap = $portVersion compat >= 5
cmd:reset = $portVersion compat >= 5
cmd:tabs = $portVersion compat >= 5
cmd:tic = $portVersion compat >= 5
cmd:toe = $portVersion compat >= 5
cmd:tput = $portVersion compat >= 5
cmd:tset = $portVersion compat >= 5
"
fi
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
"
if [ -n "$secondaryArchSuffix" ]; then
REQUIRES="$REQUIRES
ncurses == $portVersion base
"
fi
BUILD_REQUIRES="
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
cmd:gcc$secondaryArchSuffix
cmd:grep
cmd:ld$secondaryArchSuffix
cmd:libtool
cmd:make
cmd:sed
"
doBuild()
{
if [ $# -lt 1 ]; then
echo >&2 "Usage: doBuild <targetDir> [ <configureFlags> ... ]"
exit 1
fi
targetDir=$(pwd)/$1
shift 1
# Parse additional arguments. "--libs-only" means we only want the
# libraries, nothing else. "--without-progs" means no programs and no
# terminfo DB (requires tic).
local noData
local libsOnly
local configureArgs
local arg
for arg in $@; do
case "$arg" in
--libs-only)
noData=1
libsOnly=1
arg="--without-progs"
;;
--without-progs)
noData=1
;;
esac
configureArgs="$configureArgs $arg"
done
rm -rf $targetDir
mkdir $targetDir
runConfigure \
--omit-dirs "dataRootDir docDir" ./configure \
--with-libtool \
--enable-termcap \
--enable-hard-tabs \
$configureArgs
make $jobArgs
if [ -z "$noData" ]; then
# We need LIBRARY_PATH to include the library installation directory,
# since the installation process for the terminfo database will run tic
# and the built-in rpath doesn't consider the DESTDIR we're using.
LIBRARY_PATH="$targetDir/$prefix/lib:$LIBRARY_PATH" \
make install DESTDIR=$targetDir
else
make install.libs DESTDIR=$targetDir
if [ -z "$libsOnly" ]; then
make install.includes DESTDIR=$targetDir
make install.man DESTDIR=$targetDir
fi
fi
# clean up for the next build
make clean
}
BUILD()
{
# Unfortunately building only works in the source directory. So we build
# two times -- once without and once with wide-char support -- installing in
# temporary directories from which we copy to the actual installation
# directory in INSTALL().
# For the secondary architecture we don't want the programs nor the
# terminfo DB. The main package will depend on the primary package which
# provides all this.
local withoutProgramArgs
if [ -n "$secondaryArchSuffix" ]; then
withoutProgramArgs="--without-progs"
fi
doBuild build-nowidec $withoutProgramArgs
doBuild build-widec --enable-widec --libs-only
}
INSTALL()
{
cp -ra build-nowidec/$prefix/. $prefix
cp -ra build-widec/$prefix/. $prefix
# prepare develop/lib
prepareInstalledDevelLibs \
libform libmenu libncurses libncurses++ libpanel \
libformw libmenuw libncursesw libncurses++w libpanelw
# fix ncurses[w]5-config
fixDevelopLibDirReferences $binDir/ncurses5-config $binDir/ncursesw5-config
# devel package
packageEntries devel \
$binDir/ncurses5-config \
$binDir/ncursesw5-config \
$developDir \
$manDir/man3
# For the secondary architecture package clean up stuff we don't need, since
# we make it depend on the primary architecture package.
if [ -n "$secondaryArchSuffix" ]; then
rm -rf $binDir
rm -rf $documentationDir
fi
}
DESCRIPTION="The Ncurses (new curses) library is a free software emulation of curses in System V Release 4.0, and more. It uses Terminfo format, supports pads and color and multiple highlights and forms characters and function-key mapping, and has all the other SYSV-curses enhancements over BSD Curses.
The ncurses code was developed under GNU/Linux. It has been in use for some time with OpenBSD as the system curses library, and on FreeBSD and NetBSD as an external package. It should port easily to any ANSI/POSIX-conforming UNIX. It has even been ported to OS/2 Warp!
The distribution includes the library and support utilities, including a terminfo compiler tic, a decompiler infocmp, clear, tput, tset, and a termcap conversion tool captoinfo. Full manual pages are provided for the library and tools."
# ----- devel package -------------------------------------------------------
PROVIDES_devel="
ncurses${secondaryArchSuffix}_devel = $portVersion compat >= 5
cmd:ncurses5_config${secondaryArchSuffix} = $portVersion compat >= 5
cmd:ncursesw5_config${secondaryArchSuffix} = $portVersion compat >= 5
devel:libform${secondaryArchSuffix} = $portVersion compat >= 5
devel:libformw${secondaryArchSuffix} = $portVersion compat >= 5
devel:libmenu${secondaryArchSuffix} = $portVersion compat >= 5
devel:libmenuw${secondaryArchSuffix} = $portVersion compat >= 5
devel:libncurses${secondaryArchSuffix} = $portVersion compat >= 5
devel:libncursesw${secondaryArchSuffix} = $portVersion compat >= 5
devel:libncurses++${secondaryArchSuffix} = $portVersion compat >= 5
devel:libncurses++w${secondaryArchSuffix} = $portVersion compat >= 5
devel:libpanel${secondaryArchSuffix} = $portVersion compat >= 5
devel:libpanelw${secondaryArchSuffix} = $portVersion compat >= 5
"
REQUIRES_devel="
ncurses${secondaryArchSuffix} == $portVersion base
"

View File

@@ -1,54 +0,0 @@
diff -ur ncurses-5.6/include/curses.h ncurses-5.6-haiku/include/curses.h
--- ncurses-5.6/include/curses.h 2008-06-04 05:57:46.000000000 -0700
+++ ncurses-5.6-haiku/include/curses.h 2008-06-14 18:12:44.000000000 -0700
@@ -450,7 +450,7 @@
*/
#if 1
#ifdef NCURSES_WGETCH_EVENTS
-#if !defined(__BEOS__) /* Fix _nc_timed_wait() on BEOS... */
+#if !defined(__BEOS__) || defined(__HAIKU__) /* Fix _nc_timed_wait() on BEOS... */
# define NCURSES_EVENT_VERSION 1
#endif /* !defined(__BEOS__) */
diff -ur ncurses-5.6/ncurses/tty/lib_twait.c ncurses-5.6-haiku/ncurses/tty/lib_twait.c
--- ncurses-5.6/ncurses/tty/lib_twait.c 2006-05-27 14:57:43.000000000 -0700
+++ ncurses-5.6-haiku/ncurses/tty/lib_twait.c 2008-06-14 18:26:31.000000000 -0700
@@ -42,6 +42,10 @@
#include <curses.priv.h>
+#if defined __HAIKU__ && defined __BEOS__
+#undef __BEOS__
+#endif
+
#ifdef __BEOS__
#undef false
#undef true
diff -ur ncurses-5.6/ncurses/tty/tty_update.c ncurses-5.6-haiku/ncurses/tty/tty_update.c
--- ncurses-5.6/ncurses/tty/tty_update.c 2006-11-25 14:33:21.000000000 -0800
+++ ncurses-5.6-haiku/ncurses/tty/tty_update.c 2008-06-14 18:27:03.000000000 -0700
@@ -44,6 +44,10 @@
#include <curses.priv.h>
+#if defined __HAIKU__ && defined __BEOS__
+#undef __BEOS__
+#endif
+
#ifdef __BEOS__
#undef false
#undef true
diff -ur ncurses-5.6/tack/sysdep.c ncurses-5.6-haiku/tack/sysdep.c
--- ncurses-5.6/tack/sysdep.c 2005-09-17 12:49:16.000000000 -0700
+++ ncurses-5.6-haiku/tack/sysdep.c 2008-06-14 18:26:03.000000000 -0700
@@ -34,6 +34,10 @@
#include <term.h>
#include <errno.h>
+#if defined __HAIKU__ && defined __BEOS__
+#undef __BEOS__
+#endif
+
#if defined(__BEOS__)
#undef false
#undef true

View File

@@ -0,0 +1,42 @@
From c10c7316b0be6ee2249ee2eeeeea6bbeb973d4cd Mon Sep 17 00:00:00 2001
From: Ingo Weinhold <ingo_weinhold@gmx.de>
Date: Mon, 8 Jul 2013 15:51:09 +0200
Subject: progs/Makefile.in: make sure the right programs are installed
The Makefile installed the libtool wrapper scripts which are only meant
to be used for the build.
diff --git a/progs/Makefile.in b/progs/Makefile.in
index bdb8a0f..f3170f1 100644
--- a/progs/Makefile.in
+++ b/progs/Makefile.in
@@ -188,19 +188,19 @@ transform.h :
echo "#endif /* __TRANSFORM_H */" >>$@
install.progs: $(AUTO_SRC) $(PROGS) $(DESTDIR)$(bindir)
-@MAKE_TERMINFO@ $(LIBTOOL_INSTALL) $(INSTALL_PROG) tic$x $(DESTDIR)$(bindir)/$(actual_tic)
-@MAKE_TERMINFO@ $(LIBTOOL_INSTALL) $(INSTALL_PROG) toe$x $(DESTDIR)$(bindir)/$(actual_toe)
+@MAKE_TERMINFO@ $(LIBTOOL_INSTALL) $(INSTALL_PROG) .libs/tic$x $(DESTDIR)$(bindir)/$(actual_tic)
+@MAKE_TERMINFO@ $(LIBTOOL_INSTALL) $(INSTALL_PROG) .libs/toe$x $(DESTDIR)$(bindir)/$(actual_toe)
@MAKE_TERMINFO@ @echo "linking $(actual_infotocap) to $(actual_tic)"
@MAKE_TERMINFO@ -@rm -f $(DESTDIR)$(bindir)/$(actual_infotocap)
@MAKE_TERMINFO@ (cd $(DESTDIR)$(bindir) && $(LN_S) $(actual_tic) $(actual_infotocap))
@MAKE_TERMINFO@ @echo "linking $(actual_captoinfo) to $(actual_tic)"
@MAKE_TERMINFO@ -@rm -f $(DESTDIR)$(bindir)/$(actual_captoinfo)
@MAKE_TERMINFO@ (cd $(DESTDIR)$(bindir) && $(LN_S) $(actual_tic) $(actual_captoinfo))
- $(LIBTOOL_INSTALL) $(INSTALL_PROG) infocmp$x $(DESTDIR)$(bindir)/$(actual_infocmp)
- $(LIBTOOL_INSTALL) $(INSTALL_PROG) clear$x $(DESTDIR)$(bindir)/$(actual_clear)
- $(LIBTOOL_INSTALL) $(INSTALL_PROG) tabs$x $(DESTDIR)$(bindir)/$(actual_tabs)
- $(LIBTOOL_INSTALL) $(INSTALL_PROG) tput$x $(DESTDIR)$(bindir)/$(actual_tput)
- $(LIBTOOL_INSTALL) $(INSTALL_PROG) tset$x $(DESTDIR)$(bindir)/$(actual_tset)
+ $(LIBTOOL_INSTALL) $(INSTALL_PROG) .libs/infocmp$x $(DESTDIR)$(bindir)/$(actual_infocmp)
+ $(LIBTOOL_INSTALL) $(INSTALL_PROG) .libs/clear$x $(DESTDIR)$(bindir)/$(actual_clear)
+ $(LIBTOOL_INSTALL) $(INSTALL_PROG) .libs/tabs$x $(DESTDIR)$(bindir)/$(actual_tabs)
+ $(LIBTOOL_INSTALL) $(INSTALL_PROG) .libs/tput$x $(DESTDIR)$(bindir)/$(actual_tput)
+ $(LIBTOOL_INSTALL) $(INSTALL_PROG) .libs/tset$x $(DESTDIR)$(bindir)/$(actual_tset)
@echo "linking $(actual_reset) to $(actual_tset)"
-@rm -f $(DESTDIR)$(bindir)/$(actual_reset)
(cd $(DESTDIR)$(bindir) && $(LN_S) $(actual_tset) $(actual_reset))
--
1.7.10.2

View File

@@ -1,37 +0,0 @@
diff -urN readline-5.2/configure.in readline-5.2-haiku/configure.in
--- readline-5.2/configure.in 2006-09-28 16:04:24.000000000 +0000
+++ readline-5.2-haiku/configure.in 2008-08-22 11:14:49.000000000 +0000
@@ -87,6 +87,9 @@
i[[3456]]86-*-beos*)
cross_cache=${srcdir}/cross-build/x86-beos.cache
;;
+ i[[3456]]86-*-haiku*)
+ cross_cache=${srcdir}/cross-build/x86-haiku.cache
+ ;;
*) echo "configure: cross-compiling for $host is not supported" >&2
;;
esac
diff -urN readline-5.2/histfile.c readline-5.2-haiku/histfile.c
--- readline-5.2/histfile.c 2006-03-31 20:48:43.000000000 +0000
+++ readline-5.2-haiku/histfile.c 2008-08-22 10:45:20.000000000 +0000
@@ -400,7 +400,7 @@
{
write (file, bp, chars_read - (bp - buffer));
-#if defined (__BEOS__)
+#if defined (__BEOS__) && !defined(__HAIKU__)
/* BeOS ignores O_TRUNC. */
ftruncate (file, chars_read - (bp - buffer));
#endif
diff -urN readline-5.2/input.c readline-5.2-haiku/input.c
--- readline-5.2/input.c 2006-08-16 19:15:16.000000000 +0000
+++ readline-5.2-haiku/input.c 2008-08-22 11:08:52.000000000 +0000
@@ -471,7 +471,7 @@
if (result == 0)
return (EOF);
-#if defined (__BEOS__)
+#if defined (__BEOS__) && !defined(__HAIKU__)
if (errno == EINTR)
continue;
#endif

View File

@@ -1,41 +0,0 @@
diff -urN readline-6.0/configure.in readline-6.0-haiku/configure.in
--- readline-6.0/configure.in 2009-06-29 10:44:13.000000000 +0000
+++ readline-6.0-haiku/configure.in 2009-06-29 10:39:19.000000000 +0000
@@ -85,6 +85,9 @@
i[[3456]]86-*-beos*)
cross_cache=${srcdir}/cross-build/x86-beos.cache
;;
+ i[[3456]]86-*-haiku*)
+ cross_cache=${srcdir}/cross-build/x86-haiku.cache
+ ;;
*) echo "configure: cross-compiling for $host is not supported" >&2
;;
esac
diff -urN readline-6.0/rltty.c readline-6.0-haiku/rltty.c
--- readline-6.0/rltty.c 2009-06-29 10:44:16.000000000 +0000
+++ readline-6.0-haiku/rltty.c 2009-06-29 11:21:11.000000000 +0000
@@ -238,7 +238,12 @@
TIOTYPE oldtio, *tiop;
{
_rl_echoing_p = (oldtio.sgttyb.sg_flags & ECHO);
+
+#if defined (ECHOCTL)
_rl_echoctl = (oldtio.sgttyb.sg_flags & ECHOCTL);
+#else
+ _rl_echoctl = (oldtio.sgttyb.sg_flags);
+#endif
/* Copy the original settings to the structure we're going to use for
our settings. */
@@ -517,7 +522,11 @@
TIOTYPE oldtio, *tiop;
{
_rl_echoing_p = (oldtio.c_lflag & ECHO);
+#if defined (ECHOCTL)
_rl_echoctl = (oldtio.c_lflag & ECHOCTL);
+#else
+ _rl_echoctl = (oldtio.c_lflag);
+#endif
tiop->c_lflag &= ~(ICANON | ECHO);

View File

@@ -1,27 +0,0 @@
diff -urN readline-6.1/configure.in readline-6.1-haiku/configure.in
--- readline-6.1/configure.in 2009-10-12 07:12:15.054788096 -0700
+++ readline-6.1-haiku/configure.in 2010-10-26 10:21:29.204210176 -0700
@@ -85,6 +85,9 @@
i[[3456]]86-*-beos*)
cross_cache=${srcdir}/cross-build/x86-beos.cache
;;
+ i[[3456]]86-*-haiku*)
+ cross_cache=${srcdir}/cross-build/x86-haiku.cache
+ ;;
*) echo "configure: cross-compiling for $host is not supported" >&2
;;
esac
diff -urN readline-6.1/rltty.c readline-6.1-haiku/rltty.c
--- readline-6.1/rltty.c 2009-11-19 06:42:02.059768832 -0800
+++ readline-6.1-haiku/rltty.c 2010-10-26 10:25:50.489160704 -0700
@@ -238,7 +238,10 @@
TIOTYPE oldtio, *tiop;
{
_rl_echoing_p = (oldtio.sgttyb.sg_flags & ECHO);
+
+#if defined (ECHOCTL)
_rl_echoctl = (oldtio.sgttyb.sg_flags & ECHOCTL);
+#endif
/* Copy the original settings to the structure we're going to use for
our settings. */

View File

@@ -0,0 +1,24 @@
diff -ur orig/readline-6.2/support/shlib-install readline-6.2/support/shlib-install
--- orig/readline-6.2/support/shlib-install 2009-10-28 14:30:18.057409536 +0100
+++ readline-6.2/support/shlib-install 2013-05-03 01:12:28.695468032 +0200
@@ -117,7 +117,7 @@
# Create symlinks to the installed library. This section is incomplete.
#
case "$host_os-$host_vendor" in
-*linux*|freebsd*-gentoo)
+*linux*|freebsd*-gentoo|haiku*)
# libname.so.M -> libname.so.M.N
${echo} ${RM} ${INSTALLDIR}/$LINK2
if [ -z "$uninstall" ]; then
diff -ur orig/readline-6.2/support/shobj-conf readline-6.2/support/shobj-conf
--- orig/readline-6.2/support/shobj-conf 2009-10-28 14:20:21.057147392 +0100
+++ readline-6.2/support/shobj-conf 2013-05-03 01:12:38.631242752 +0200
@@ -109,7 +109,7 @@
;;
# All versions of Linux (including Gentoo/FreeBSD) or the semi-mythical GNU Hurd.
-linux*-*|gnu*-*|k*bsd*-gnu-*|freebsd*-gentoo)
+linux*-*|gnu*-*|k*bsd*-gnu-*|freebsd*-gentoo|haiku*)
SHOBJ_CFLAGS=-fPIC
SHOBJ_LD='${CC}'
SHOBJ_LDFLAGS='-shared -Wl,-soname,$@'

View File

@@ -1,19 +0,0 @@
DESCRIPTION="readline"
HOMEPAGE="http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html"
SRC_URI="ftp://ftp.cwru.edu/pub/bash/readline-5.2.tar.gz"
CHECKSUM_MD5="e39331f32ad14009b9ff49cc10c5e751"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd readline-5.2
./configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}
INSTALL {
cd readline-5.2
make install
}
LICENSE="GNU GPL v3"
COPYRIGHT="1989-2009 Free Software Foundation, Inc."

View File

@@ -1,26 +0,0 @@
DESCRIPTION="readline"
HOMEPAGE="http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html"
SRC_URI="ftp://ftp.gnu.org/gnu/readline/readline-6.0.tar.gz"
CHECKSUM_MD5="b7f65a48add447693be6e86f04a63019"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd readline-6.0
libtoolize --force --copy --install
aclocal
autoconf
MANDIR=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man
LIBDIR=`finddir B_COMMON_LIB_DIRECTORY`
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--libdir=$LIBDIR \
--mandir=$MANDIR
make
}
INSTALL {
cd readline-6.0
make install DESTDIR="${DESTDIR}"
}
LICENSE="GNU GPL v3"
COPYRIGHT="1989-2009 Free Software Foundation, Inc."

View File

@@ -1,26 +0,0 @@
DESCRIPTION="readline"
HOMEPAGE="http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html"
SRC_URI="ftp://ftp.gnu.org/gnu/readline/readline-6.1.tar.gz"
CHECKSUM_MD5="fc2f7e714fe792db1ce6ddc4c9fb4ef3"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd readline-6.1
libtoolize --force --copy --install
aclocal
autoconf
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
# --datarootdir=`finddir B_COMMON_DATA_DIRECTORY` \
--infodir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/info \
--libdir=`finddir B_COMMON_LIB_DIRECTORY` \
--mandir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man
make
}
INSTALL {
cd readline-6.1
make install DESTDIR="${DESTDIR}"
}
LICENSE="GNU GPL v3"
COPYRIGHT="1989-2010 Free Software Foundation, Inc."

View File

@@ -1,27 +0,0 @@
DESCRIPTION="readline"
HOMEPAGE="http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html"
SRC_URI="ftp://ftp.gnu.org/gnu/readline/readline-6.2.tar.gz"
CHECKSUM_MD5="67948acb2ca081f23359d0256e9a271c"
REVISION="2"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd readline-6.2
libtoolize --force --copy --install
aclocal
autoconf
COMMON_DOCS=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
--datarootdir=`finddir B_COMMON_DATA_DIRECTORY` \
--infodir=$COMMON_DOCS/info \
--mandir=$COMMON_DOCS/man
make
}
INSTALL {
cd readline-6.2
make install DESTDIR="${DESTDIR}"
}
LICENSE="GNU GPL v3"
COPYRIGHT="1989-2011 Free Software Foundation, Inc."

View File

@@ -0,0 +1,72 @@
SUMMARY="The GNU Readline library"
DESCRIPTION="The GNU Readline library provides a set of functions for use by applications that allow users to edit command lines as they are typed in. Both Emacs and vi editing modes are available. The Readline library includes additional functions to maintain a list of previously-entered command lines, to recall and perhaps reedit those lines, and perform csh-like history expansion on previous commands.
The history facilites are also placed into a separate library, the History library, as part of the build process. The History library may be used without Readline in applications which desire its capabilities."
HOMEPAGE="http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html"
COPYRIGHT="1989-2011 Free Software Foundation, Inc."
LICENSE="GNU GPL v3"
SRC_URI="ftp://ftp.gnu.org/gnu/readline/readline-6.2.tar.gz"
CHECKSUM_MD5="67948acb2ca081f23359d0256e9a271c"
REVISION="3"
ARCHITECTURES="x86_gcc2 x86 x86_64"
PATCHES="readline-6.2.patch"
PROVIDES="
readline = $portVersion compat >= 6
lib:libhistory = $portVersion compat >= 6
lib:libreadline = $portVersion compat >= 6
"
REQUIRES="
haiku >= $haikuVersion
lib:libncurses
"
BUILD_REQUIRES="
devel:libncurses
"
BUILD_PREREQUIRES="
haiku_devel >= $haikuVersion
cmd:aclocal
cmd:autoconf
cmd:gcc
cmd:ld
cmd:libtoolize
cmd:make
"
SOURCE_DIR="$portVersionedName"
BUILD()
{
libtoolize --force --copy --install
aclocal
autoconf
runConfigure ./configure \
--with-curses
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs libhistory libreadline
rmdir $binDir
# devel package
packageEntries devel \
$dataDir \
$developDir \
$documentationDir
}
# ----- devel package -------------------------------------------------------
PROVIDES_devel="
readline_devel = $portVersion
devel:libhistory = $portVersion compat >= 6
devel:libreadline = $portVersion compat >= 6
"
REQUIRES_devel="
readline == $portVersion base
"

View File

@@ -5,7 +5,8 @@ REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
CHECKSUM_MD5="e7183d0acab9cc35fae12849f8b848e2"
BUILD {
BUILD()
{
cd slang-2.2.2/autoconf
libtoolize --force --copy --install
cp autoconf/config.guess config.guess
@@ -15,7 +16,8 @@ BUILD {
make
}
INSTALL {
INSTALL()
{
cd slang-2.2.2
make install DESTDIR="${DESTDIR}"
}

View File

@@ -1,19 +0,0 @@
DESCRIPTION="zlib"
HOMEPAGE="http://www.zlib.net/"
SRC_URI="http://www.zlib.net/zlib-1.2.3.tar.bz2"
CHECKSUM_MD5="dee233bf288ee795ac96a98cc2e369b6"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd zlib-1.2.3
./configure --prefix=`finddir B_COMMON_DIRECTORY`
make
}
INSTALL {
cd zlib-1.2.3
make install
}
LICENSE="Zlib"
COPYRIGHT="1995-2005 Jean-loup Gailly and Mark Adler"

View File

@@ -1,20 +0,0 @@
DESCRIPTION="zlib"
HOMEPAGE="http://www.zlib.net/"
SRC_URI="http://www.zlib.net/zlib-1.2.5.tar.bz2"
CHECKSUM_MD5="be1e89810e66150f5b0327984d8625a0"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd zlib-1.2.5
sed -i 's/share\/man/documentation\/man/' CMakeLists.txt
cmake .
make
}
INSTALL {
cd zlib-1.2.5
make install
}
LICENSE="Zlib"
COPYRIGHT="1995-2005 Jean-loup Gailly and Mark Adler"

View File

@@ -1,21 +0,0 @@
DESCRIPTION="zlib"
HOMEPAGE="http://www.zlib.net/"
SRC_URI="http://zlib.net/zlib-1.2.7.tar.gz"
CHECKSUM_MD5="60df6a37c56e7c1366cca812414f7b85"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD {
cd zlib-1.2.7
sed -i 's/share\/man/documentation\/man/' CMakeLists.txt
sed -i 's/share\/pkgconfig/lib\/pkgconfig/' CMakeLists.txt
cmake .
make
}
INSTALL {
cd zlib-1.2.7
make install
}
LICENSE="Zlib"
COPYRIGHT="1995-2005 Jean-loup Gailly and Mark Adler"

View File

@@ -0,0 +1,73 @@
SUMMARY="A Massively Spiffy Yet Delicately Unobtrusive Compression Library"
DESCRIPTION="zlib is designed to be a free, general-purpose, legally unencumbered -- that is, not covered by any patents -- lossless data-compression library for use on virtually any computer hardware and operating system. The zlib data format is itself portable across platforms. Unlike the LZW compression method used in Unix compress(1) and in the GIF image format, the compression method currently used in zlib essentially never expands the data. (LZW can double or triple the file size in extreme cases.) zlib's memory footprint is also independent of the input data and can be reduced, if necessary, at some cost in compression."
HOMEPAGE="http://www.zlib.net/"
COPYRIGHT="1995-2005 Jean-loup Gailly and Mark Adler"
LICENSE="Zlib"
SRC_URI="http://zlib.net/zlib-1.2.8.tar.gz"
CHECKSUM_MD5="44d667c142d7cda120332623eab69f40"
REVISION="4"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
PROVIDES="
zlib$secondaryArchSuffix = $portVersion compat >= 1
lib:libz$secondaryArchSuffix = $portVersion compat >= 1
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
"
BUILD_REQUIRES="
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
cmd:cmake
cmd:gcc$secondaryArchSuffix
cmd:grep
cmd:ld$secondaryArchSuffix
cmd:make
cmd:sed
"
PATCH()
{
sed -i 's,${CMAKE_INSTALL_PREFIX}/bin',$binDir, CMakeLists.txt
sed -i 's,${CMAKE_INSTALL_PREFIX}/include',$includeDir, CMakeLists.txt
sed -i 's,${CMAKE_INSTALL_PREFIX}/lib',$libDir, CMakeLists.txt
sed -i 's,${CMAKE_INSTALL_PREFIX}/share/man',$manDir, CMakeLists.txt
sed -i 's,${CMAKE_INSTALL_PREFIX}/share/pkgconfig',$developLibDir/pkgconfig, \
CMakeLists.txt
}
BUILD()
{
rm -rf build
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX:PATH=$prefix ..
make $jobArgs
}
INSTALL()
{
cd build
make install
prepareInstalledDevelLibs libz
# devel package
packageEntries devel \
$developDir \
$documentationDir
}
# ----- devel package -------------------------------------------------------
SUMMARY_devel="The zlib development files"
PROVIDES_devel="
zlib${secondaryArchSuffix}_devel = $portVersion compat >= 1
devel:libz${secondaryArchSuffix} = $portVersion compat >= 1
"
REQUIRES_devel="
zlib${secondaryArchSuffix} == $portVersion base
"

View File

@@ -7,13 +7,15 @@ STATUS_HAIKU="stable"
DEPEND=""
MESSAGE="This port only builds with gcc4. Use 'setgcc gcc4' before building."
BUILD {
BUILD()
{
cd zopfli-999
sed -i 's/\-lm//' makefile
make
}
INSTALL {
INSTALL()
{
cd zopfli-999
BINDIR=${DESTDIR}/`finddir B_COMMON_BIN_DIRECTORY`
mkdir -p ${BINDIR}