Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try tinfo before ncursesw and use pkg-config for ncurses
- Loading branch information
Showing
1 changed file
with
5 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,11 +22,15 @@ endif | |
ifeq ($(shell pkg-config --atleast-version=0.1.0 unibilium && echo 1),1) | ||
CFLAGS +=$(shell pkg-config --cflags unibilium) -DHAVE_UNIBILIUM | ||
LDFLAGS+=$(shell pkg-config --libs unibilium) | ||
else ifeq ($(shell pkg-config tinfo && echo 1),1) | ||
CFLAGS +=$(shell pkg-config --cflags tinfo) | ||
LDFLAGS+=$(shell pkg-config --libs tinfo) | ||
else ifeq ($(shell pkg-config ncursesw && echo 1),1) | ||
CFLAGS +=$(shell pkg-config --cflags ncursesw) | ||
LDFLAGS+=$(shell pkg-config --libs ncursesw) | ||
else | ||
LDFLAGS+=-lncurses | ||
CFLAGS +=$(shell pkg-config --cflags ncurses) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jamessan
|
||
LDFLAGS+=$(shell pkg-config --libs ncurses) | ||
endif | ||
|
||
OBJECTS=termkey.lo driver-csi.lo driver-ti.lo | ||
|
1 comment
on commit c2dd8f2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Partially merged at bzr -r348
I've only taken the tinfo bits, as the pkg-config wrapping of ncurses itself would break some other OSes.
This won't work on most OSes that aren't Linux. Most Linux distributions happen to bundle a ncurses.pc file, but the BSDs and so on don't.