From c2b06168dbe732fde3101b6dae37d0f341c24c2f Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Thu, 31 Jul 2025 15:41:15 +0200 Subject: [PATCH] redo: update to 1.5. Ship custom makefile for cross compiling. >< --- srcpkgs/redo/files/Makefile | 13 +++++++++++++ srcpkgs/redo/template | 25 ++++++++----------------- 2 files changed, 21 insertions(+), 17 deletions(-) create mode 100644 srcpkgs/redo/files/Makefile diff --git a/srcpkgs/redo/files/Makefile b/srcpkgs/redo/files/Makefile new file mode 100644 index 00000000000..8d09c29e662 --- /dev/null +++ b/srcpkgs/redo/files/Makefile @@ -0,0 +1,13 @@ +LINK.o=$(LINK.cc) + +all: redo cubehash.1 redo-ifchange.1 redo-ifcreate.1 redo.1 + +redo: redo.o popt-bool-string.o popt-bool.o popt-compound-2arg.o popt-compound.o popt-integral.o popt-named.o popt-signed.o popt-simple.o popt-string-list.o popt-string-pair-list.o popt-string-pair.o popt-string.o popt-table.o popt-top-table.o popt-unsigned.o popt.o jobserver.o FileDescriptorOwner.o wait.o lockfile.o + +redo.cpp: version.h + +version.h: + printf '#define VERSION "'$(VERSION)'"\n' >$@ + +%.1: %.pod + pod2man --center "redo package" --release "v$(VERSION)" $< >$@ diff --git a/srcpkgs/redo/template b/srcpkgs/redo/template index b8af94ccc10..1194d4312ef 100644 --- a/srcpkgs/redo/template +++ b/srcpkgs/redo/template @@ -1,35 +1,26 @@ # Template file for 'redo' pkgname=redo version=1.5 -revision=3 -create_wrksrc=yes +revision=4 +build_wrksrc="source" hostmakedepends="perl" short_desc="Incremental build system (version of de Boyne Pollard)" maintainer="Leah Neukirchen " license="ISC" homepage="http://jdebp.info/Softwares/redo/" distfiles="http://jdebp.info/Repository/freebsd/redo-${version}.tar.gz" -checksum=5ff21779993418cf16f5632c593e30d9a2780bfc38cef9de9ab9427154736d36 - -do_configure() { - ./package/prepare - - echo "$CXX" >build/cxx - echo "$CPPFLAGS" >build/cppflags - echo "$CXXFLAGS" >build/cxxflags - echo "$LDFLAGS" >build/ldflags -} +checksum=534d39d645534fad0861547a01a27e8c532e0d3425b2ecbbcc15bd8726f3e27f do_build() { - ./package/make + make -j ${XBPS_MAKEJOBS} -f ${FILESDIR}/Makefile -e VERSION="$version" } do_install() { - vbin build/redo - vman build/redo.1 + vbin redo + vman redo.1 for cmd in redo-ifcreate redo-ifchange cubehash; do ln -sf redo ${DESTDIR}/usr/bin/${cmd} - vman build/${cmd}.1 + vman ${cmd}.1 done - vlicense source/COPYING + vlicense COPYING }