Skip to content

Commit

Permalink
New port: sunclock 3.50pre1
Browse files Browse the repository at this point in the history
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: https://svn.macports.org/repository/macports/trunk/dports@4540 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
tobypeterson committed Jan 8, 2004
1 parent e99e911 commit 794a7b7
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions 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
maintainers tp62@cornell.edu
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.
homepage http://frmas.free.fr/li_1.htm
platforms darwin
master_sites ftp://ftp.ac-grenoble.fr/ge/geosciences/
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.