Skip to content
Browse files

New port: sunclock 3.50pre1

Full-featured clock - shows the portions of earth that are illuminated by the sun, allows user-defined points on the map (e.g. cities), many other neat features. Requires libjpeg.

git-svn-id: d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
tobypeterson committed Jan 8, 2004
1 parent e99e911 commit 794a7b7f0c7022ede5b71fcfe7e80dc36962fd72
Showing with 37 additions and 0 deletions.
  1. +37 −0 x11/sunclock/Portfile
@@ -0,0 +1,37 @@
# $Id: Portfile,v 1.1 2004/01/08 13:34:56 toby Exp $

PortSystem 1.0
name sunclock
version 3.50pre1
extract.suffix .tgz
categories x11
description shows Earth's surface illuminated by the Sun
long_description \
This program is a clock that shows which portion of the \
Earth's surface is illuminated by the sun. It is designed \
to be usually iconic, but can be opened for a larger \
display with the time updated every second and both the \
local time zone and UTC displayed.
platforms darwin
checksums md5 6e07964a99848018432825c5b3297cc6
depends_lib lib:libjpeg.62:jpeg

pre-configure {
reinplace "s|DESTDIR=/usr|DESTDIR=${prefix}|" "${worksrcpath}/Imakefile"
reinplace "s|MANDIR=/X11R6|MANDIR=/share|" "${worksrcpath}/Imakefile"
reinplace "s|BINDIR=/X11R6/bin|BINDIR=/bin|" "${worksrcpath}/Imakefile"
reinplace "s|#JLIBDIR=-L/usr/lib|JLIBDIR=-L${prefix}/lib|" "${worksrcpath}/Imakefile"
reinplace "s|#JINC=-I/usr/include|JINC=-I${prefix}/include|" "${worksrcpath}/Imakefile"

use_xmkmf yes

pre-build {
reinplace "s|INCROOT = /usr/X11R6/include|INCROOT = ${prefix}/include|" "${worksrcpath}/Makefile"
reinplace "s|#include <malloc.h>||" "${worksrcpath}/tildepath.c"

destroot.destdir DESTDIR=${destroot}${prefix} DOCHTMLDIR=/share/doc

0 comments on commit 794a7b7

Please sign in to comment.
You can’t perform that action at this time.