38 lines
1.1 KiB
Bash
38 lines
1.1 KiB
Bash
# Template file for 'bitkeeper'
|
|
pkgname=bk
|
|
version=7.2.1ce
|
|
revision=1
|
|
build_wrksrc="src"
|
|
hostmakedepends="gperf groff perl bison pkg-config"
|
|
makedepends="libXft-devel"
|
|
# bundles: tcl tk pcre libtommath
|
|
short_desc="BitKeeper Distributed Source Control System"
|
|
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
|
license="Apache-2.0"
|
|
homepage="https://www.bitkeeper.org/"
|
|
distfiles="https://www.bitkeeper.org/downloads/${version}/${pkgname}-${version}.src.tar.gz"
|
|
checksum=f04f88064d67f170bf936cb547ecb9568d7e28a43094e555f2a649df25e76fcd
|
|
|
|
# Needs reworking of the build system.
|
|
nopie=yes
|
|
nocross=yes
|
|
|
|
post_extract() {
|
|
# For musl:
|
|
sed -i '1i#define __DEFINED_FILE' src/libc/stdio_remap.h
|
|
sed -i 's/__linux__/__GLIBC__/' src/libc/utils/stackdump.c
|
|
}
|
|
do_build() {
|
|
make ${makejobs} \
|
|
CC="$CC" CXX="$CXX" LD="$CC" RANLIB="$RANLIB" \
|
|
CPP="$CPP" AS="$AS" OBJDUMP="$OBJDUMP" CFLAGS="$CFLAGS" \
|
|
LDFLAGS="$LDFLAGS" Q=
|
|
}
|
|
do_install() {
|
|
# Upstream recommended site-wide location.
|
|
make install BINDIR=${DESTDIR}/usr/libexec/bitkeeper
|
|
|
|
vmkdir usr/bin
|
|
ln -sf /usr/libexec/bitkeeper/bk ${DESTDIR}/usr/bin/bk
|
|
}
|