mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
Initial patch and bep for building bsdbuild, may not be working yet, haven't tested it.
This commit is contained in:
39
dev-util/bsdbuild/bsdbuild-2.9.bep
Normal file
39
dev-util/bsdbuild/bsdbuild-2.9.bep
Normal file
@@ -0,0 +1,39 @@
|
||||
DESCRIPTION="a simple, self-contained and portable build system"
|
||||
HOMEPAGE="http://hypertriton.com/bsdbuild/"
|
||||
SRC_URI="http://stable.hypertriton.com/bsdbuild/bsdbuild-2.9.tar.gz"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="broken"
|
||||
DEPEND="dev-lang/perl >= 5.10
|
||||
dev-lang/lua >= 5.1"
|
||||
CHECKSUM_MD5="fd0d4a754024a39d9cf1f5e42f8075b5"
|
||||
BUILD {
|
||||
cd bsdbuild-2.9
|
||||
cp mkconfigure.pl mkconfigure
|
||||
# cp gen-dotdepend.pl gen-dotdepend-tmp.pl
|
||||
sed -i 's#/usr/bin/perl#/boot/common/bin/perl#' mkconfigure
|
||||
sed -i 's#$INSTALLDIR/gen-dotdepend.pl#./gen-dotdepend.pl#' mkconfigure
|
||||
cat configure.in | mkconfigure > configure
|
||||
rm mkconfigure
|
||||
./configure --prefix=/boot/common \
|
||||
--mandir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/man \
|
||||
--datadir=`finddir B_COMMON_DATA_DIRECTORY` \
|
||||
--infodir=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`/info \
|
||||
--localedir=`finddir B_COMMON_DATA_DIRECTORY`/locale \
|
||||
--sbindir=`finddir B_COMMON_BIN_DIRECTORY` \
|
||||
--sharedir=`finddir B_COMMON_DATA_DIRECTORY`
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL {
|
||||
cd bsdbuild-2.9
|
||||
make install
|
||||
}
|
||||
|
||||
TEST {
|
||||
cd bsdbuild-2.9
|
||||
# make test
|
||||
# make check
|
||||
}
|
||||
|
||||
LICENSE="BSD (2-clause)"
|
||||
COPYRIGHT="2002-2011 Hypertrition, Inc."
|
||||
27
dev-util/bsdbuild/patches/bsdbuild-2.9.patch
Normal file
27
dev-util/bsdbuild/patches/bsdbuild-2.9.patch
Normal file
@@ -0,0 +1,27 @@
|
||||
diff -urN bsdbuild-2.9/configure.in bsdbuild-2.9-haiku/configure.in
|
||||
--- bsdbuild-2.9/configure.in 2011-06-20 12:46:10.031719424 +0000
|
||||
+++ bsdbuild-2.9-haiku/configure.in 2011-08-11 21:05:19.596377600 +0000
|
||||
@@ -4,7 +4,7 @@
|
||||
VERSION("2.9")
|
||||
RELEASE("Blast of Ancient Atmospheres")
|
||||
|
||||
-MDEFINE(SHAREDIR, "$PREFIX/share/bsdbuild")
|
||||
+MDEFINE(SHAREDIR, "$SHAREDIR/bsdbuild")
|
||||
|
||||
echo "*"
|
||||
echo "* Configuration successful."
|
||||
diff -urN bsdbuild-2.9/mkconfigure.pl bsdbuild-2.9-haiku/mkconfigure.pl
|
||||
--- bsdbuild-2.9/mkconfigure.pl 2011-05-17 08:06:19.033554432 +0000
|
||||
+++ bsdbuild-2.9-haiku/mkconfigure.pl 2011-08-11 22:05:40.015728640 +0000
|
||||
@@ -865,7 +865,10 @@
|
||||
datadir=$optarg
|
||||
;;
|
||||
--sharedir=*)
|
||||
- datadir=$optarg
|
||||
+ sharedir=$optarg
|
||||
+ ;;
|
||||
+ --sbindir=*)
|
||||
+ sbindir=$optarg
|
||||
;;
|
||||
--localedir=*)
|
||||
localedir=$optarg
|
||||
Reference in New Issue
Block a user