From 0eda689c5e349bb396d959ac11f0838e28036cf1 Mon Sep 17 00:00:00 2001 From: newHeiko <35038740+newHeiko@users.noreply.github.com> Date: Fri, 27 Mar 2026 23:01:24 +0100 Subject: [PATCH] development/pcb2gcode: Updated for version 3.0.3. Includes switching from autotools to cmake. --- development/pcb2gcode/pcb2gcode.SlackBuild | 50 ++++++++++------------ development/pcb2gcode/pcb2gcode.info | 6 +-- 2 files changed, 26 insertions(+), 30 deletions(-) diff --git a/development/pcb2gcode/pcb2gcode.SlackBuild b/development/pcb2gcode/pcb2gcode.SlackBuild index 1f799019b78..1de8b13a746 100644 --- a/development/pcb2gcode/pcb2gcode.SlackBuild +++ b/development/pcb2gcode/pcb2gcode.SlackBuild @@ -3,7 +3,10 @@ # Slackware build script for pcb2gcode # Copyright 2024-2026 Heiko Rosemann, Germany -# All rights reserved. +# +# Re-write to use cmake instead of autotools +# Copyright 2026 Heiko Rosemann, Germany +# All rights reserved. # # Redistribution and use of this script, with or without modification, is # permitted provided that the following conditions are met: @@ -25,10 +28,10 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=pcb2gcode -VERSION=${VERSION:-2.5.0} -BUILD=${BUILD:-2} +VERSION=${VERSION:-3.0.3} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} -PKGTYPE=${PKGTYPE:-tgz} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -48,16 +51,16 @@ PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} if [ "$ARCH" = "i586" ]; then - SLKCFLAGS="-O2 -march=i586 -mtune=i686" + SLKCFLAGS="-O2 -march=i586 -mtune=i686 -pthread" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" + SLKCFLAGS="-O2 -march=i686 -mtune=i686 -pthread" LIBDIRSUFFIX="" elif [ "$ARCH" = "x86_64" ]; then - SLKCFLAGS="-O2 -fPIC" + SLKCFLAGS="-O2 -fPIC -pthread" LIBDIRSUFFIX="64" elif [ "$ARCH" = "aarch64" ]; then - SLKCFLAGS="-O2 -fPIC" + SLKCFLAGS="-O2 -fPIC -pthread" LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" @@ -79,25 +82,18 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# Fix to also build with boost>1.76 on -current -# See https://github.com/pcb2gcode/pcb2gcode/issues/587 -sed -i "s|isystem ,\$(BOOST|idirafter ,\$(BOOST|" configure.ac - -/usr/bin/autoreconf -fvi -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ -./configure \ - --prefix=/usr \ - --libdir=/usr/lib${LIBDIRSUFFIX} \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --mandir=/usr/man \ - --docdir=/usr/doc/$PRGNAM-$VERSION \ - --disable-static \ - --build=$ARCH-slackware-linux - -make -make install-strip DESTDIR=$PKG +mkdir -p build +cd build + cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_MANDIR=man \ + -DCMAKE_BUILD_TYPE=Release \ + -S .. -B . + cmake --build . -j$(nproc) + cmake --install . --strip --prefix $PKG/usr +cd .. find $PKG/usr/man -type f -exec gzip -9 {} \; for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done diff --git a/development/pcb2gcode/pcb2gcode.info b/development/pcb2gcode/pcb2gcode.info index 73379efe4aa..08444069e57 100644 --- a/development/pcb2gcode/pcb2gcode.info +++ b/development/pcb2gcode/pcb2gcode.info @@ -1,8 +1,8 @@ PRGNAM="pcb2gcode" -VERSION="2.5.0" +VERSION="3.0.3" HOMEPAGE="https://github.com/pcb2gcode/pcb2gcode" -DOWNLOAD="https://github.com/pcb2gcode/pcb2gcode/archive/v2.5.0/pcb2gcode-2.5.0.tar.gz" -MD5SUM="926c2841e490d9393d416ad185a3bedf" +DOWNLOAD="https://github.com/pcb2gcode/pcb2gcode/archive/v3.0.3/pcb2gcode-3.0.3.tar.gz" +MD5SUM="cb37f526107e1567350959f769da0712" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="gerbv"