diff --git a/srcpkgs/bk/template b/srcpkgs/bk/template new file mode 100644 index 00000000000..55703f7d860 --- /dev/null +++ b/srcpkgs/bk/template @@ -0,0 +1,37 @@ +# 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 " +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 +} diff --git a/srcpkgs/bk/update b/srcpkgs/bk/update new file mode 100644 index 00000000000..e839b4336d4 --- /dev/null +++ b/srcpkgs/bk/update @@ -0,0 +1 @@ +site='https://www.bitkeeper.org/downloads/latest/'