9612 Compiling redshift (color temperature app) - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Ports & Packages > Porting New Software

Porting New Software Having trouble or general questions about porting software to FreeBSD? Ask here.

Reply
 
Thread Tools Display Modes
  #1  
Old September 12th, 2010, 10:01
carlton_draught's Avatar
carlton_draught carlton_draught is offline
Member
 
Join Date: Mar 2010
Posts: 288
Thanks: 158
Thanked 28 Times in 21 Posts
Default Compiling redshift (color temperature app)

I've become enamoured with redshift on linux, and want it on my freebsd workstation. As an introduction, blue light is known to suppress melatonin output. To get a good nights sleep, your body needs to start producing some melatonin after nightfall so that you can feel tired etc. If you are an insomniac or just have trouble sleeping, this is worth a try. You can do this by using yellow tinted bug lights after dark, and configuring your GUI to output less blue as evening progresses.

Redshift is an app that reduces the color temperature of x11 output after nightfall, according to your longitude and latitude.

I've downloaded the source for 1.5, and done a
# ./configure; make; make install

However, the make install appears to hang after the following:
Code:
sed -e "s|\@bindir\@|/usr/local/bin|g" -e "s|\@localdir\@|/usr/local/share/locale|g" > defs.py
At that point, we CTRL-C out of it, and see
Code:
^C*** defs.py removed
However, at this stage the gtk-redshift is not built, but redshift is. So we can still use the command line executable. It is in /path/to/redshift-1.5/src. So we can manually put it in the right place:
# cp /path/to/redshift-1.5/src/redshift /usr/local/bin

From there we can make a custom launcher in the gnome panel, put it in the startup applications, or whatever. However, I'd be curious to see if anyone else can get it to fully compile.

Last edited by carlton_draught; September 12th, 2010 at 13:19.
Reply With Quote
  #2  
Old September 16th, 2010, 03:15
CoCo CoCo is offline
Junior Member
 
Join Date: Sep 2010
Posts: 1
Thanks: 1
Thanked 1 Time in 1 Post
Default

You'll need to install x11-toolkits/py-gtk2 and devel/py-xdg, in case you didn't already.

Then try building/installing with devel/gmake instead of the standard make.

I.e.:
Code:
# cd /usr/ports/devel/gmake && make install clean
# cd redshiftsrc && ./configure --enable-gui MAKE=/usr/local/bin/gmake
# gmake && gmake install
Reply With Quote
The Following User Says Thank You to CoCo For This Useful Post:
carlton_draught (September 20th, 2010)
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
temperature mendela Mobile Computing 2 February 20th, 2010 01:52
No color in Tmux Saint0fCloud Installation and Maintenance of FreeBSD Ports or Packages 3 January 31st, 2010 10:45
[Solved] high temperature pc inux System Hardware 6 January 6th, 2010 04:33
[Solved] Color terminals? mharvey87 General 14 December 26th, 2009 11:46
Customized text color in terminal sai General 6 December 29th, 2008 10:31


All times are GMT +1. The time now is 13:22.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0