From simon.urbanek at math.uni-augsburg.de  Wed Jan 19 16:07:53 2005
From: simon.urbanek at math.uni-augsburg.de (Simon Urbanek)
Date: Wed Jan 19 16:08:01 2005
Subject: [Rd] Fix for R-devel+Quartz
Message-ID: <E44FF8D6-6A2B-11D9-BC92-000D93AE1C66@math.uni-augsburg.de>

Current R-devel doesn't compile on OS X, because "-framework Carbon" 
was (correcly) removed main_ldflags, but it was not added to flags for 
grDevices, where it is needed now. The following tiny patch remedies 
the issue (it is sufficient to include AppKit as only that subset of 
Carbon is needed):

Index: src/library/grDevices/src/Makefile.in
===================================================================
--- src/library/grDevices/src/Makefile.in       (revision 32713)
+++ src/library/grDevices/src/Makefile.in       (working copy)
@@ -20,6 +20,8 @@

  # need Defn.h etc, and config.h
  PKG_CPPFLAGS =-I../../../include -I$(top_srcdir)/src/include 
-DHAVE_CONFIG_H
+# need AppKit framework for Quartz (only if Aqua is to be used)
+@BUILD_AQUA_TRUE@PKG_LIBS =-framework AppKit

  all: Makefile Makedeps
         @$(MAKE) Makedeps

Thanks,
Simon


[Rd] Fix for R-devel+Quartz
Simon Urbanek