2000-02-23 00:42:13 +00:00
|
|
|
# New ports collection makefile for: xplanet
|
|
|
|
# Date created: 22 Feb 2000
|
|
|
|
# Whom: darius@dons.net.au
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-08 22:04:57 +00:00
|
|
|
PORTNAME= xplanet
|
2000-05-18 01:01:50 +00:00
|
|
|
PORTVERSION= 0.60
|
2000-02-23 00:42:13 +00:00
|
|
|
CATEGORIES= astro x11
|
2000-05-18 01:01:50 +00:00
|
|
|
MASTER_SITES= ftp://ftp.sourceforge.net/pub/sourceforge/xplanet/ \
|
2000-02-23 00:42:13 +00:00
|
|
|
http://www.radcyberzine.com/xglobe/
|
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} photo_1600.jpg
|
|
|
|
|
2000-03-22 01:59:41 +00:00
|
|
|
MAINTAINER= will@FreeBSD.org
|
2000-02-23 00:42:13 +00:00
|
|
|
|
|
|
|
LIB_DEPENDS= Imlib.5:${PORTSDIR}/graphics/imlib \
|
|
|
|
GL.14:${PORTSDIR}/graphics/Mesa3
|
|
|
|
|
|
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
|
|
|
|
USE_X_PREFIX= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --with-map-extension=jpg
|
|
|
|
MAN1= xplanet.1 xplanetbg.1
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2000-04-17 00:18:05 +00:00
|
|
|
.if (!defined(WITH_TK80) && !defined(WITH_TK81) && !defined(WITH_TK82) && !defined(WITH_TK83))
|
2000-02-23 00:42:13 +00:00
|
|
|
.if exists(${LOCALBASE}/bin/wish8.3)
|
2000-04-17 00:18:05 +00:00
|
|
|
WITH_TK83= yes
|
2000-02-23 00:42:13 +00:00
|
|
|
.elif exists(${LOCALBASE}/bin/wish8.2)
|
2000-04-17 00:18:05 +00:00
|
|
|
WITH_TK82= yes
|
2000-02-23 00:42:13 +00:00
|
|
|
.elif exists(${LOCALBASE}/bin/wish8.1)
|
2000-04-17 00:18:05 +00:00
|
|
|
WITH_TK81= yes
|
2000-02-23 00:42:13 +00:00
|
|
|
.else
|
2000-04-17 00:18:05 +00:00
|
|
|
WITH_TK80= yes
|
2000-02-23 00:42:13 +00:00
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2000-04-17 00:18:05 +00:00
|
|
|
.if defined(WITH_TK80)
|
2000-02-23 00:42:13 +00:00
|
|
|
RUN_DEPENDS= wish8.0:${PORTSDIR}/x11-toolkits/tk80
|
|
|
|
WISH= ${LOCALBASE}/bin/wish8.0
|
|
|
|
TKVERMSG= "Using Tk 8.0"
|
|
|
|
.endif
|
|
|
|
|
2000-04-17 00:18:05 +00:00
|
|
|
.if defined(WITH_TK81)
|
2000-02-23 00:42:13 +00:00
|
|
|
RUN_DEPENDS= wish8.1:${PORTSDIR}/x11-toolkits/tk81
|
|
|
|
WISH= ${LOCALBASE}/bin/wish8.1
|
|
|
|
TKVERMSG= "Using Tk 8.1"
|
|
|
|
.endif
|
|
|
|
|
2000-04-17 00:18:05 +00:00
|
|
|
.if defined(WITH_TK82)
|
2000-02-23 00:42:13 +00:00
|
|
|
RUN_DEPENDS= wish8.2:${PORTSDIR}/x11-toolkits/tk82
|
|
|
|
WISH= ${LOCALBASE}/bin/wish8.2
|
|
|
|
TKVERMSG= "Using Tk 8.2"
|
|
|
|
.endif
|
|
|
|
|
2000-04-17 00:18:05 +00:00
|
|
|
.if defined(WITH_TK83)
|
2000-02-23 00:42:13 +00:00
|
|
|
RUN_DEPENDS= wish8.3:${PORTSDIR}/x11-toolkits/tk83
|
|
|
|
WISH= ${LOCALBASE}/bin/wish8.3
|
|
|
|
TKVERMSG= "Using Tk 8.3"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
CONFIGURE_ENV+= WISH=${WISH}
|
|
|
|
|
|
|
|
pre-fetch:
|
|
|
|
@${ECHO} ${TKVERMSG}
|
2000-04-17 00:18:05 +00:00
|
|
|
@${ECHO} "Define WITH_TK80, WITH_TK81, WITH_TK82, or WITH_TK83"
|
2000-02-23 00:42:13 +00:00
|
|
|
@${ECHO} "To use a different version of TK"
|
|
|
|
|
2000-03-02 01:14:04 +00:00
|
|
|
pre-configure:
|
|
|
|
@${PERL} -pi -e 's|-O3|${CFLAGS}|' ${WRKSRC}/configure
|
|
|
|
|
2000-02-23 00:42:13 +00:00
|
|
|
pre-build:
|
|
|
|
@${PERL} -pi -e "s:/usr/local:${PREFIX}:g" ${WRKSRC}/auxfiles.h
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${INSTALL_DATA} ${DISTDIR}/photo_1600.jpg ${PREFIX}/share/xplanet/earth.jpg
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|