pkgsrc/filesystems/fuse-sparsebundlefs/patches/patch-Makefile
bouyer bca0c408e9 Add fuse-sparsebundlefs version 20160928:
Mac OS X v10.5 (Leopard) introduced the concept of sparse-bundle disk images,
where the data is stored as a collection of small, fixed-size band-files
instead of as a single monolithic file. This allows for more efficient
backups of the disk image, as only the changed bands need to be stored.

One common source of sparse-bundles is Mac OS' backup utility, Time Machine,
which stores the backup data within a sparse-bundle image on the chosen
backup volume.

This software package implements a FUSE virtual filesystem for read-only
access to the sparse-bundle, as if it was a single monolithic image.
2016-10-02 16:33:28 +00:00

24 lines
783 B
Text

$NetBSD: patch-Makefile,v 1.1 2016/10/02 16:33:28 bouyer Exp $
--- Makefile.orig 2016-09-27 23:50:42.000000000 +0200
+++ Makefile 2016-10-02 18:19:10.000000000 +0200
@@ -3,14 +3,14 @@
PKG_CONFIG = pkg-config
override CFLAGS += -Wall -O2 -g
-GCC_4_2_OR_HIGHER := $(shell expr `$(CXX) -dumpversion | sed 's/\.//g'` \>= 420)
-ifeq "$(GCC_4_2_OR_HIGHER)" "1"
- CFLAGS += -march=native
-endif
-
DEFINES = -DFUSE_USE_VERSION=26
ifeq ($(shell uname), Darwin)
+ GCC_4_2_OR_HIGHER := $(shell expr `$(CXX) -dumpversion | sed 's/\.//g'` \>= 420)
+ ifeq "$(GCC_4_2_OR_HIGHER)" "1"
+ CFLAGS += -march=native
+ endif
+
# Pick up OSXFUSE, even with pkg-config from MacPorts
PKG_CONFIG := PKG_CONFIG_PATH=/usr/local/lib/pkgconfig $(PKG_CONFIG)
else ifeq ($(shell uname), Linux)