-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure to work with macOS NCurses? #7
Comments
Would replacing my shell-scripts with cmake help?
…On Mon, Oct 31, 2022 at 4:52 AM Ian Max Andolina ***@***.***> wrote:
Hi, ncurses comes with macOS, but to make use of it the naming is slightly
different. In homebrew there is a rule that replaces lncursesw with
lncurses:
inreplace %w[configure Makefile], "lncursesw", "lncurses"
But it would be better if the configure script could handle this platform
detail automatically. Your configure script is a shell script so you could
use something like:
PLATFORM=$(uname -s)if [[ $PLATFORM = 'Darwin' ]]; then
...fi
For the makefile, at least according to stack exchange:
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
LDFLAGS+=-lncurses
else
LDFLAGS+=-lncursesw
end
I can make a pull request if you want...
—
Reply to this email directly, view it on GitHub
<#7>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUN5IWYRQGUVG2LJR4P6JGLWF47ABANCNFSM6AAAAAARSVZQT4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Honestly, I'm not a C programmer and thus ignorant of which make tools are considered better. I'm just an end user who knows enough to be dangerous! 🙃 httping seems to compile well enough with your existing shellscript + makefile, and at least from the view of homebrew, as long as upstream (httping in this case) handles issues like this, it is OK. I'm sure cmake is a more elegant tool, but is there really a need for an extra build dependency? |
It would make it easier (I hope) to build for multiple platforms.
…On Tue, Nov 1, 2022 at 12:47 AM Ian Max Andolina ***@***.***> wrote:
Honestly, I'm not a C programmer and thus ignorant of which make tools are considered better. I'm just an end user who knows enough to be dangerous! 🙃
httping seems to compile well enough with your existing shellscript + makefile, and at least from the view of homebrew, as long as upstream (httping in this case) handles issues like this, it is OK. I'm sure cmake is a more elegant tool, but is there really a need for an extra build dependency?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
OK, I'll leave this issue open for the moment, I think we can get V2.9 back in the public repo without needing this to be completed, and a future release using cmake can make future release more robust when building cross-platform... |
Hi, ncurses comes with macOS, but to make use of it the naming is slightly different. In homebrew there is a rule that replaces
lncursesw
withlncurses
:But it would be better if the configure script could handle this platform detail automatically. Your configure script is a shell script so you could use something like:
For the makefile, at least according to stack exchange:
I can make a pull request if you want...
The text was updated successfully, but these errors were encountered: