Skip to content

Commit

Permalink
Merge pull request #162 from jpouellet/fix-macports
Browse files Browse the repository at this point in the history
Fix MacPorts X11 paths
  • Loading branch information
fikovnik committed Apr 27, 2015
2 parents 0458c5e + 3c8b50f commit 7035aa1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
12 changes: 8 additions & 4 deletions ShiftIt/ShiftIt.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1010,13 +1010,15 @@
GCC_PREFIX_HEADER = ShiftIt_Prefix.pch;
GCC_PREPROCESSOR_DEFINITIONS_NOT_USED_IN_PRECOMPS = "_DEBUGPRINTS_=1";
HEADER_SEARCH_PATHS = (
/usr/X11/include,
/opt/local/include,
/opt/X11/include,
/usr/X11/include,
);
INFOPLIST_FILE = "ShiftIt-Info.plist";
LIBRARY_SEARCH_PATHS = (
/usr/X11/lib,
/opt/local/lib,
/opt/X11/lib,
/usr/X11/lib,
);
OTHER_CFLAGS = (
"-DDEBUG",
Expand All @@ -1035,13 +1037,15 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = ShiftIt_Prefix.pch;
HEADER_SEARCH_PATHS = (
/usr/X11/include,
/opt/local/include,
/opt/X11/include,
/usr/X11/include,
);
INFOPLIST_FILE = "ShiftIt-Info.plist";
LIBRARY_SEARCH_PATHS = (
/usr/X11/lib,
/opt/local/lib,
/opt/X11/lib,
/usr/X11/lib,
);
OTHER_CFLAGS = (
"-DNDEBUG",
Expand Down
8 changes: 4 additions & 4 deletions ShiftIt/X11WindowDriver.m
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
// TODO: extract
static char *X11Paths_[] = {
"libX11.6.dylib",
"/usr/local/X11/libX11.6.dylib", // anyone?
"/opt/X11/lib/libX11.6.dylib", // XQuartz, needs be tried before regular
"/usr/local/X11/libX11.6.dylib", // anyone?
"/opt/local/lib/libX11.6.dylib", // MacPorts
"/opt/X11/lib/libX11.6.dylib", // XQuartz, needs be tried before regular
"/usr/X11/lib/libX11.6.dylib", // regular
"/opt/local/X11/lib/libX11.6.dylib", // MacPorts?
"/sw/X11/lib/libX11.6.dylib", // Fink?
};

Expand Down Expand Up @@ -458,4 +458,4 @@ - (void) freeWindow_:(Window *)windowRef {
}


@end
@end

0 comments on commit 7035aa1

Please sign in to comment.