From 05c4874393aad5890b782830634f472bb352e204 Mon Sep 17 00:00:00 2001 From: Andreas Kempe Date: Sat, 5 Sep 2020 16:19:07 +0200 Subject: [PATCH 1/3] New package: librtprocess-0.11.0 --- common/shlibs | 1 + srcpkgs/librtprocess-devel | 1 + srcpkgs/librtprocess/template | 26 ++++++++++++++++++++++++++ 3 files changed, 28 insertions(+) create mode 120000 srcpkgs/librtprocess-devel create mode 100644 srcpkgs/librtprocess/template diff --git a/common/shlibs b/common/shlibs index d60e60a87534..3dfd2c96c0ba 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4142,3 +4142,4 @@ librz_util.so.0.3.4 rizin-0.3.4_1 librz_lang.so.0.3.4 rizin-0.3.4_1 librz_search.so.0.3.4 rizin-0.3.4_1 librz_bin.so.0.3.4 rizin-0.3.4_1 +librtprocess.so.0 librtprocess-0.11.0_1 diff --git a/srcpkgs/librtprocess-devel b/srcpkgs/librtprocess-devel new file mode 120000 index 000000000000..95794d1128ce --- /dev/null +++ b/srcpkgs/librtprocess-devel @@ -0,0 +1 @@ +librtprocess \ No newline at end of file diff --git a/srcpkgs/librtprocess/template b/srcpkgs/librtprocess/template new file mode 100644 index 000000000000..8ac7ce64066f --- /dev/null +++ b/srcpkgs/librtprocess/template @@ -0,0 +1,26 @@ +# Template file for 'librtprocess' +pkgname=librtprocess +version=0.11.0 +revision=1 +build_style=cmake +hostmakedepends="pkg-config" +makedepends="libgomp-devel" +short_desc="Image processing algorithms from RawTherapee" +maintainer="Andreas Kempe " +license="GPL-3.0-or-later" +homepage="https://github.com/CarVac/librtprocess" +distfiles="https://github.com/CarVac/${pkgname}/archive/${version}.tar.gz" +checksum=0a1691e6e90742644506a1123c716cdcfc28689adf461747843ab0440a837584 + +CXXFLAGS="-DNDEBUG" + +librtprocess-devel_package() { + short_desc+=" - development files" + depends="librtprocess>=${version}_${revision}" + pkg_install() { + vmove usr/lib/librtprocess.so + vmove usr/include + vmove usr/lib/cmake + vmove usr/lib/pkgconfig + } +} From a50725d32fe5c6b49bbea70b055c8f9880897ce2 Mon Sep 17 00:00:00 2001 From: Andreas Kempe Date: Sun, 14 Feb 2021 16:57:23 +0100 Subject: [PATCH 2/3] New package: wcslib-7.7 cross-compile-fix.patch replaces calls to AC_CHECK_FILE with using the test utility since it, by design, does not work when cross-compiling. --- common/shlibs | 1 + srcpkgs/wcslib-devel | 1 + .../wcslib/patches/cross-compile-fix.patch | 49 +++++++++++++++++++ srcpkgs/wcslib/template | 38 ++++++++++++++ 4 files changed, 89 insertions(+) create mode 120000 srcpkgs/wcslib-devel create mode 100644 srcpkgs/wcslib/patches/cross-compile-fix.patch create mode 100644 srcpkgs/wcslib/template diff --git a/common/shlibs b/common/shlibs index 3dfd2c96c0ba..b58ce3d9dd2d 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4143,3 +4143,4 @@ librz_lang.so.0.3.4 rizin-0.3.4_1 librz_search.so.0.3.4 rizin-0.3.4_1 librz_bin.so.0.3.4 rizin-0.3.4_1 librtprocess.so.0 librtprocess-0.11.0_1 +libwcs.so.7 wcslib-7.7_1 diff --git a/srcpkgs/wcslib-devel b/srcpkgs/wcslib-devel new file mode 120000 index 000000000000..f3b28efc6615 --- /dev/null +++ b/srcpkgs/wcslib-devel @@ -0,0 +1 @@ +wcslib \ No newline at end of file diff --git a/srcpkgs/wcslib/patches/cross-compile-fix.patch b/srcpkgs/wcslib/patches/cross-compile-fix.patch new file mode 100644 index 000000000000..f3e04413d652 --- /dev/null +++ b/srcpkgs/wcslib/patches/cross-compile-fix.patch @@ -0,0 +1,49 @@ +--- ./configure.ac 2022-02-10 02:11:35.306531939 +0100 ++++ ./configure.ac 2022-02-10 02:23:58.867114050 +0100 +@@ -428,7 +428,9 @@ + /sw/lib" + + for LIBDIR in $LIBDIRS ; do +- AC_CHECK_FILE([$LIBDIR], [LDFLAGS="$LDFLAGS -L$LIBDIR"], [continue]) ++ if test -d $LIBDIR; then ++ LDFLAGS="$LDFLAGS -L$LIBDIR" ++ fi + done + + # Generic include directories. +@@ -444,9 +446,14 @@ + if test "x$with_cfitsio" != xno ; then + # Search for CFITSIO. + for INCDIR in $CFITSIO_INCDIRS $INCDIRS ; do +- AC_CHECK_FILE([$INCDIR/cfitsio/fitsio.h], +- [CFITSIOINC="-I$INCDIR/cfitsio"; break]) +- AC_CHECK_FILE([$INCDIR/fitsio.h], [CFITSIOINC="-I$INCDIR"; break]) ++ if test -f $INCDIR/cfitsio/fitsio.h; then ++ CFITSIOINC="-I$INCDIR/cfitsio" ++ break ++ fi ++ if test -f $INCDIR/fitsio.h; then ++ CFITSIOINC="-I$INCDIR" ++ break ++ fi + done + + AC_CHECK_LIB([socket], [recv], [CFITSIOLIB="-lsocket"], [], [$LIBS]) +@@ -473,9 +480,14 @@ + if test "x$F77" != x -a "x$with_pgplot" != xno ; then + # Search for PGPLOT. + for INCDIR in $PGPLOT_INCDIRS $INCDIRS ; do +- AC_CHECK_FILE([$INCDIR/pgplot/cpgplot.h], +- [PGPLOTINC="-I$INCDIR/pgplot"; break]) +- AC_CHECK_FILE([$INCDIR/cpgplot.h], [PGPLOTINC="-I$INCDIR"; break]) ++ if test -f $INCDIR/pgplot/cpgplot.h; then ++ PGPLOTINC="-I$INCDIR/pgplot" ++ break ++ fi ++ if test -f $INCDIR/cpgplot.h; then ++ PGPLOTINC="-I$INCDIR" ++ break ++ fi + done + + # FLIBS (found above via AC_F77_LIBRARY_LDFLAGS) only helps if PGPLOT was diff --git a/srcpkgs/wcslib/template b/srcpkgs/wcslib/template new file mode 100644 index 000000000000..a9c18dcf104b --- /dev/null +++ b/srcpkgs/wcslib/template @@ -0,0 +1,38 @@ +# Template file for 'wcslib' +pkgname=wcslib +version=7.7 +revision=1 +build_style=gnu-configure +configure_args=" --without-pgplot " +makedepends="cfitsio-devel" +short_desc="Tools for WCS in FITS headers" +maintainer="Andreas Kempe " +license="GPL-3.0-or-later" +homepage="https://www.atnf.csiro.au/people/mcalabre/WCS/" +distfiles="ftp://ftp.atnf.csiro.au/pub/software/${pkgname}/${pkgname}-${version}.tar.bz2" +checksum=a708e6b4e90e2cd6427434715b591bb9c3d4005c99725ec494b8e0bed2de5355 + +if [ "$CROSS_BUILD" ]; then + hostmakedepends+="autoconf automake" +fi + +pre_configure() { + if [ "$CROSS_BUILD" ]; then + # The supplied configuration file does not work when cross + # compiling so generate a new configuration file. + autoreconf -f -i + fi +} + +wcslib-devel_package() { + short_desc+=" - development files" + depends="wcslib>=${version}_${revision}" + pkg_install() { + vmove usr/lib/libwcs.so + vmove usr/lib/libwcs.a + vmove usr/lib/libwcs-${version}.a + vmove usr/include + vmove usr/lib/pkgconfig + vmove usr/share/doc/wcslib-${version}/html + } +} From 475327f0ad728d696f85fca783cb0d002c3860ea Mon Sep 17 00:00:00 2001 From: Andreas Kempe Date: Sat, 5 Sep 2020 03:00:04 +0200 Subject: [PATCH 3/3] siril: update to 1.0.0. --- srcpkgs/siril/template | 38 +++++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/srcpkgs/siril/template b/srcpkgs/siril/template index a06f3352243d..3ea6a22d0b5d 100644 --- a/srcpkgs/siril/template +++ b/srcpkgs/siril/template @@ -1,31 +1,35 @@ # Template file for 'siril' pkgname=siril -version=0.9.12 -revision=5 -build_style=gnu-configure -hostmakedepends="pkg-config intltool autoconf automake gettext-devel" -makedepends="fftw-devel libconfig-devel libopencv-devel libffms2-devel - gsl-devel libraw-devel tiff-devel libpng-devel libcurl-devel - ffmpeg-devel gtk+3-devel cfitsio-devel gsl-devel libgomp-devel" +version=1.0.0 +revision=1 +wrksrc="${pkgname}" +build_style=meson +configure_args="-Drelocatable-bundle=no -Dopenmp=true -Denable-libcurl=yes" +meson_builddir="meson_build" +hostmakedepends="pkg-config intltool gettext-devel" +makedepends="glib-devel json-glib-devel exiv2-devel gtk+3-devel + cairo-devel fftw-devel gsl-devel cfitsio-devel libconfig-devel + libopencv4-devel librtprocess-devel libraw-devel tiff-devel + libjpeg-turbo-devel libpng-devel libheif-devel libffms2-devel + ffmpeg-devel libcurl-devel wcslib-devel libgomp-devel" depends="gnuplot" short_desc="Free astronomical image processing software" maintainer="Andreas Kempe " license="GPL-3.0-or-later" homepage="https://www.siril.org/" distfiles="https://free-astro.org/download/${pkgname}-${version}.tar.bz2" -checksum=9fb7f8a10630ea028137e8f213727519ae9916ea1d88cd8d0cc87f336d8d53b1 +checksum=22fec7b88b94c40c4180e6637fef8a7cd8ea95ccaf23323e403bf2296ec274bc + +if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then + makedepends+=" libatomic-devel" +fi if [ "$XBPS_TARGET_LIBC" = "musl" ]; then makedepends+=" libexecinfo-devel" + LDFLAGS+="-lexecinfo" fi -CFLAGS="-fcommon" - -post_extract() { - # add missing check target in this subdir to fix do_check() - echo 'check:' >> deps/kplot/Makefile -} - -pre_configure() { - NOCONFIGURE=1 ./autogen.sh +do_extract() { + tar -xf "${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}-${version}.tar.bz2" -C "${wrksrc}" + cd "${wrksrc}" }