aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Henrik Brautaset Aronsen <subsurface@henrik.synth.no>2013-02-09 09:41:00 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-02-09 09:48:16 -0800
commit312f553aee96622b452bff1c3966d3927bc6eeb4 (patch)
tree4c359acc26bffbf29f24b660ba9423708b710e30 /Makefile
parenteb7acc1d96a3aa627f1a0e882445e804f5d12d49 (diff)
downloadsubsurface-312f553aee96622b452bff1c3966d3927bc6eeb4.tar.gz
Enable XSLT transforms on OSX
We still need proper paths and install options for the install-macosx and create-macosx-bundle targets. This enables XSLT support when running as ./subsurface, but doesn't hurt the other install targets. Signed-off-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ca6041642..fc3e6c44e 100644
--- a/Makefile
+++ b/Makefile
@@ -111,6 +111,7 @@ ifeq ($(UNAME), linux)
GCONF2CFLAGS = $(shell $(PKGCONFIG) --cflags gconf-2.0)
OSSUPPORT = linux
OSSUPPORT_CFLAGS = $(GTKCFLAGS) $(GCONF2CFLAGS)
+ XSLT_CAPABLE = 1
else ifeq ($(UNAME), darwin)
OSSUPPORT = macos
OSSUPPORT_CFLAGS = $(GTKCFLAGS)
@@ -121,6 +122,7 @@ else ifeq ($(UNAME), darwin)
CFLAGS += $(shell $(PKGCONFIG) --cflags gtk-mac-integration)
LDFLAGS += -headerpad_max_install_names
GTK_MAC_BUNDLER = ~/.local/bin/gtk-mac-bundler
+ XSLT_CAPABLE = 1
else
OSSUPPORT = windows
OSSUPPORT_CFLAGS = $(GTKCFLAGS)
@@ -134,7 +136,7 @@ endif
ifneq ($(strip $(LIBXSLT)),)
# We still need proper paths and install options for OSX and Windows
- ifeq ($(shell sh -c 'uname -s 2>/dev/null || echo not'),Linux)
+ ifdef XSLT_CAPABLE
XSLT=-DXSLT='"$(XSLTDIR)"'
endif
endif