pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/graphics/darktable



Module Name:    pkgsrc
Committed By:   nia
Date:           Thu Jun 23 07:08:36 UTC 2022

Modified Files:
        pkgsrc/graphics/darktable: Makefile
Added Files:
        pkgsrc/graphics/darktable: hacks.mk

Log Message:
darktable: Fix building with GCC on NetBSD.


To generate a diff of this commit:
cvs rdiff -u -r1.128 -r1.129 pkgsrc/graphics/darktable/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/graphics/darktable/hacks.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/graphics/darktable/Makefile
diff -u pkgsrc/graphics/darktable/Makefile:1.128 pkgsrc/graphics/darktable/Makefile:1.129
--- pkgsrc/graphics/darktable/Makefile:1.128    Mon Apr 18 19:11:15 2022
+++ pkgsrc/graphics/darktable/Makefile  Thu Jun 23 07:08:36 2022
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.128 2022/04/18 19:11:15 adam Exp $
+# $NetBSD: Makefile,v 1.129 2022/06/23 07:08:36 nia Exp $
 
 DISTNAME=      darktable-3.6.1
-PKGREVISION=   2
+PKGREVISION=   3
 CATEGORIES=    graphics
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=darktable-org/}
 GITHUB_PROJECT=        darktable
@@ -16,30 +16,34 @@ LICENSE=    gnu-gpl-v3
 USE_CMAKE=             yes
 USE_LANGUAGES=         c c++
 USE_PKGLOCALEDIR=      yes
-USE_TOOLS+=            gmake intltool msgfmt pkg-config bash
+USE_TOOLS+=            gmake intltool msgfmt pkg-config bash:run
+
+REPLACE_BASH+= tools/common.sh
+REPLACE_BASH+= tools/purge_from_cache.sh          
+REPLACE_BASH+= tools/purge_non_existing_images.sh 
+REPLACE_BASH+= tools/purge_unused_tags.sh
 
-#CFLAGS+=      -fopenmp
 CFLAGS+=       -Wno-reserved-id-macro
 
 CMAKE_ARGS+=   -DLENSFUN_INCLUDE_DIR:PATH=${BUILDLINK_PREFIX.glib2}/include/lensfun
 CMAKE_ARGS+=   -DGTHREAD_INCLUDE_DIR:PATH=${BUILDLINK_PREFIX.glib2}/include
 CMAKE_ARGS+=   -DGMODULE_INCLUDE_DIR:PATH=${BUILDLINK_PREFIX.glib2}/include
+# Honour system CFLAGS.
+CMAKE_ARGS+=   -DCUSTOM_CFLAGS=ON
 CMAKE_ARGS+=   -DUSE_OPENCL=OFF
+CMAKE_ARGS+=   -DUSE_OPENMP=OFF
 
 CMAKE_ARGS+=   -DCMAKE_BUILD_TYPE=Release
 CMAKE_ARGS+=   -DBINARY_PACKAGE_BUILD=Yes
 CMAKE_ARGS+=   -Wno-dev
-CMAKE_ARGS+=   -DWITH_OPENMP=OFF
 CMAKE_ARGS+=   -DUSE_COLORD=OFF
 CMAKE_ARGS+=   -DRAWSPEED_ENABLE_WERROR=OFF
+CMAKE_ARGS+=   -DTESTBUILD_OPENCL_PROGRAMS=OFF
 
 CONFIGURE_DIRS=        ../pkgsrc_build
 CMAKE_ARG_PATH=        ${WRKSRC}
 LDFLAGS+=      ${COMPILER_RPATH_FLAG}${PREFIX}/lib/darktable
 
-# NetBSD 6 libm is the first with exp2f(3)
-#NOT_FOR_PLATFORM=     NetBSD-4*-* NetBSD-5.[0-8]*-*
-
 # Hard-coded use of SSE2
 ONLY_FOR_PLATFORM=     *-*-i386 *-*-x86_64
 
@@ -48,17 +52,13 @@ ONLY_FOR_PLATFORM=  *-*-i386 *-*-x86_64
 # SSE alignment issues
 GCC_REQD+=     4.2
 CFLAGS+=       -mstackrealign -msse2 -march=i686
+.elif ${MACHINE_ARCH} == "x86_64"
+CFLAGS+=       -msse2
 .endif
 
 CFLAGS.NetBSD+=        -D_NETBSD_SOURCE
 CFLAGS.SunOS+= -D__SUNOS__=1
 
-.include "../../mk/compiler.mk"
-.if !empty(PKGSRC_COMPILER:Mgcc)
-# gdk_pixbuf_new_from_inline
-CFLAGS+=       -Wno-error=deprecated-declarations
-.endif
-
 CHECK_PORTABILITY_SKIP+=       packaging/macosx/start
 
 pre-configure:
@@ -86,14 +86,9 @@ BUILDLINK_API_DEPENDS.zlib+= zlib>=1.2.1
 .include "../../graphics/openjpeg/buildlink3.mk"
 .include "../../graphics/png/buildlink3.mk"
 .include "../../graphics/tiff/buildlink3.mk"
-PKG_CC=                ${PREFIX}/bin/clang
-PKG_CXX=       ${PREFIX}/bin/clang++
-BUILDLINK_DEPMETHOD.clang=     build
-.include "../../lang/clang/buildlink3.mk"
 .include "../../lang/lua53/buildlink3.mk"
 .include "../../net/flickcurl/buildlink3.mk"
 .include "../../net/libsoup/buildlink3.mk"
-.include "../../parallel/openmp/buildlink3.mk"
 .include "../../print/cups-base/buildlink3.mk"
 .include "../../security/libsecret/buildlink3.mk"
 .include "../../sysutils/desktop-file-utils/desktopdb.mk"

Added files:

Index: pkgsrc/graphics/darktable/hacks.mk
diff -u /dev/null pkgsrc/graphics/darktable/hacks.mk:1.1
--- /dev/null   Thu Jun 23 07:08:36 2022
+++ pkgsrc/graphics/darktable/hacks.mk  Thu Jun 23 07:08:36 2022
@@ -0,0 +1,23 @@
+# $NetBSD: hacks.mk,v 1.1 2022/06/23 07:08:36 nia Exp $
+
+.if !defined(DARKTABLE_HACKS_MK)
+DARKTABLE_HACKS_MK:=
+
+.  include "../../mk/bsd.fast.prefs.mk"
+.  if ${OPSYS} == "NetBSD"
+PKG_HACKS+=            disable-graphite-opt
+# Disable some of the more ridiculous compiler flags being used, that are
+# creating build failures with the system compiler on NetBSD due to the
+# assumption that the isl/graphite optimizer is available.
+CFLAGS+=               -Wno-unknown-pragmas
+SUBST_CLASSES+=                opt
+SUBST_MESSAGE.opt=     Disabling excessive forced optimizations.
+SUBST_STAGE.opt+=      pre-configure
+SUBST_SED.opt+=                -e "s,pragma GCC optimize,pragma GCC nooptimize,g"
+SUBST_FILES.opt+=      src/iop/*.c
+SUBST_FILES.opt+=      src/iop/*.h
+SUBST_FILES.opt+=      src/develop/blends/*.c
+SUBST_FILES.opt+=      src/common/*.c
+SUBST_FILES.opt+=      src/common/*.h
+.  endif
+.endif



Home | Main Index | Thread Index | Old Index