1996-08-16 19:04:26 +02:00
# New ports collection makefile for: xephem
# Date created: Thu Aug 1 09:10:22 CDT 1996
# Whom: erich@FreeBSD.org
#
1999-08-25 06:22:48 +02:00
# $FreeBSD$
1996-08-16 19:04:26 +02:00
#
2000-04-09 00:04:57 +02:00
PORTNAME = xephem
2009-07-28 01:33:25 +02:00
PORTVERSION = 3.7.4
2011-05-02 14:41:44 +02:00
PORTREVISION = 3
1996-10-31 11:45:45 +01:00
CATEGORIES = astro
2002-08-10 07:39:39 +02:00
MASTER_SITES = # http://www.clearskyinstitute.com/xephem/
1996-08-16 19:04:26 +02:00
2008-09-06 22:16:45 +02:00
MAINTAINER = jpaetzel@FreeBSD.org
2003-02-20 18:07:10 +01:00
COMMENT = An interactive astronomical ephemeris program
1996-08-16 19:04:26 +02:00
2010-03-28 08:47:48 +02:00
LIB_DEPENDS = png.6:${ PORTSDIR } /graphics/png \
2010-02-05 12:46:55 +01:00
jpeg.11:${ PORTSDIR } /graphics/jpeg
2000-10-28 16:55:37 +02:00
2000-11-08 00:28:20 +01:00
USE_MOTIF = yes
2005-12-05 19:32:20 +01:00
USE_GMAKE = yes
2009-11-22 20:49:43 +01:00
MAKE_JOBS_UNSAFE = yes
1998-04-29 13:12:12 +02:00
2005-12-05 19:32:20 +01:00
WRKSRC = ${ WRKDIR } /${ DISTNAME } /GUI/xephem
MAN1 = xephem.1
1998-04-29 13:12:12 +02:00
2006-11-30 14:17:57 +01:00
RESTRICTED = Personal use only
2002-08-10 07:39:39 +02:00
2004-07-23 13:48:12 +02:00
# XXX needs to be the same as DISTFILES
XEPHEMSRC = ${ PORTNAME } -${ PORTVERSION } .tar.gz
2002-08-10 07:39:39 +02:00
. i n c l u d e < b s d . p o r t . p r e . m k >
2004-07-23 13:48:12 +02:00
. f o r f i l e i n $ { X E P H E M S R C }
2011-12-12 22:48:08 +01:00
. i f ! e x i s t s ( $ { D I S T D I R } / $ { f i l e } ) & & ! d e f i n e d ( P A C K A G E _ B U I L D I N G ) #{
DISTFILE_INSTRUCTIONS = \n \
Because of licensing restrictions, you must manually fetch \n\ ${file} from http : //www .clearskyinstitute .com /xephem /, \n \ place it in ${DISTDIR } and then run make again .\n \n
2002-08-10 07:39:39 +02:00
. e n d i f
. e n d f o r
2011-12-12 22:48:08 +01:00
pre-fetch :
. i f d e f i n e d ( D I S T F I L E _ I N S T R U C T I O N S )
@${ PRINTF } " ${ DISTFILE_INSTRUCTIONS } "
@exit 1
. e n d i f
2001-12-30 18:18:07 +01:00
post-patch :
2006-11-30 14:17:57 +01:00
@${ REINPLACE_CMD } -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
2006-12-02 07:22:12 +01:00
-e 's|/usr/X11R6|${X11BASE}|g' \
2006-11-30 14:17:57 +01:00
${ WRKSRC } /Makefile
2005-12-05 19:32:20 +01:00
@${ FIND } ${ WRKSRC } /../.. -name Makefile -type f | \
${ XARGS } ${ REINPLACE_CMD } -e ' s| CC = | CC?= | g ; \
s| CFLAGS = | CFLAGS += | g ; \
s| -O2 || g'
2001-12-30 18:18:07 +01:00
1998-04-29 13:12:12 +02:00
pre-build :
2002-01-29 10:33:26 +01:00
@${ ECHO_CMD } 'XEphem.ShareDir: ${PREFIX}/lib/X11/xephem' > ${ WRKSRC } /XEphem.ad
1996-08-16 19:04:26 +02:00
2005-12-05 19:32:20 +01:00
pre-install :
@${ FIND } ${ WRKSRC } /../.. -name Makefile.bak -type f | ${ XARGS } ${ RM } -f
2006-04-07 00:46:24 +02:00
@${ CP } ${ WRKSRC } /xephem.man ${ WRKSRC } /xephem.1
2005-12-05 19:32:20 +01:00
do-install :
${ INSTALL_PROGRAM } ${ WRKSRC } /xephem ${ PREFIX } /bin
2006-11-30 14:17:57 +01:00
${ INSTALL_MAN } ${ WRKSRC } /xephem.1 ${ MANPREFIX } /man/man1
2000-12-09 00:15:01 +01:00
${ INSTALL_DATA } ${ WRKSRC } /XEphem.ad ${ PREFIX } /lib/X11/app-defaults/XEphem
@${ MKDIR } ${ PREFIX } /lib/X11/xephem
2005-12-05 19:32:20 +01:00
${ TAR } -C ${ WRKSRC } -cf - auxil catalogs fifos fits gallery help lo tools \
2000-12-09 00:15:01 +01:00
| ${ TAR } -C ${ PREFIX } /lib/X11/xephem --unlink -xf -
2006-10-11 10:36:46 +02:00
@${ FIND } ${ PREFIX } /lib/X11/xephem | ${ XARGS } ${ CHOWN } ${ SHAREOWN } :${ SHAREGROUP }
2002-01-29 10:33:26 +01:00
@${ FIND } ${ PREFIX } /lib/X11/xephem -type f | ${ XARGS } ${ CHMOD } ${ SHAREMODE }
1999-04-06 03:11:20 +02:00
2002-08-10 07:39:39 +02:00
. i n c l u d e < b s d . p o r t . p o s t . m k >