Compiling redshift (color temperature app)

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

Compiling redshift (color temperature app)

Postby carlton_draught » 12 Sep 2010, 09:01

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
[CMD="#"]./configure; make; make install[/CMD]

However, the make install appears to hang after the following:
Code: Select all
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: Select all
^C*** defs.py removed


However, at this stage the [FILE]gtk-redshift[/FILE] is not built, but [FILE]redshift[/FILE] is. So we can still use the command line executable. It is in [FILE]/path/to/redshift-1.5/src[/FILE]. So we can manually put it in the right place:
[CMD="#"]cp /path/to/redshift-1.5/src/redshift /usr/local/bin[/CMD]

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.
User avatar
carlton_draught
Member
 
Posts: 288
Joined: 18 Mar 2010, 00:07

Postby CoCo » 16 Sep 2010, 02:15

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: Select all
# cd /usr/ports/devel/gmake && make install clean
# cd redshiftsrc && ./configure --enable-gui MAKE=/usr/local/bin/gmake
# gmake && gmake install
CoCo
Junior Member
 
Posts: 1
Joined: 16 Sep 2010, 01:16


Return to Porting New Software

Who is online

Users browsing this forum: No registered users and 0 guests