ports/172143: updated astro/xearth to build with clang with no warnings
Anton Shterenlikht
mexas at bristol.ac.uk
Fri Sep 28 11:30:06 UTC 2012
>Number: 172143
>Category: ports
>Synopsis: updated astro/xearth to build with clang with no warnings
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Fri Sep 28 11:30:05 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Anton Shterenlikht
>Release: FreeBSD 10.0-CURRENT ia64
>Organization:
University of Bristol, UK
>Environment:
System: FreeBSD mech-cluster241.men.bris.ac.uk 10.0-CURRENT FreeBSD 10.0-CURRENT #6 r237134: Mon Jun 18 09:02:17 BST 2012 root at mech-cluster241.men.bris.ac.uk:/usr/obj/usr/src/sys/TZAV ia64
>Description:
astro/xearth is abandoned upstream.
Well.. there's just no upstream anymore.
So, I made my changes to the source,
rather than with patches.
The changes:
1. Updated the software's own makefile.
2. Updated 2 src C files, and one documentation file.
3. Build with BSD make, not imake.
4. Removed pkg-plist, and replaced it with
PLIST_FILES, PLIST_DIRS.
5. I now distribute the tarball compressed with xz.
6. Bumped PORTVERSION
7. Because PORTVERSION changed, I have to update
the number of the tarball. Since the new
tarball is only available from my site at this
point, modified MASTER_SITES accordingly.
>How-To-Repeat:
>Fix:
Index: Makefile
===================================================================
--- Makefile (revision 304979)
+++ Makefile (working copy)
@@ -1,34 +1,29 @@
-# New ports collection makefile for: xearth
-# Date created: 29 October 1994
-# Whom: piero
-#
+# Created: 29 October 1994 by piero
# $FreeBSD$
-#
PORTNAME= xearth
-PORTVERSION= 1.1
-PORTREVISION= 2
-CATEGORIES= astro geography
-MASTER_SITES= XCONTRIB/applications \
- http://seis.bris.ac.uk/~mexas/ \
- LOCAL/simon
+PORTVERSION= 1.2
+CATEGORIES= astro
+MASTER_SITES= http://seis.bris.ac.uk/~mexas/
MAINTAINER= mexas at bristol.ac.uk
COMMENT= Set the root window to the image of earth
-BUILD_DEPENDS= imake:${PORTSDIR}/devel/imake
-
USE_XORG= x11 xext sm ice xt
+USE_XZ= yes
MAN1= xearth.1
+PLIST_FILES= bin/xearth \
+ lib/X11/xearth/freebsd.committers.markers \
+ lib/X11/xearth/freebsd.ftp.markers \
+ lib/X11/xearth/freebsd.submitters.markers
+PLIST_DIRS= lib/X11/xearth
-pre-build:
- cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${XMKMF}
-
post-install:
+ @${INSTALL_PROGRAM} ${WRKSRC}/xearth ${PREFIX}/bin
+ @${INSTALL_MAN} ${WRKSRC}/xearth.man ${MANPREFIX}/man/man1/xearth.1
@${MKDIR} ${PREFIX}/lib/X11/xearth
- @${INSTALL_MAN} ${WRKSRC}/xearth.man ${MANPREFIX}/man/man1/xearth.1
# Copy the list of FreeBSD sites & committers locations
-.for marker in freebsd.committers.markers freebsd.submitters.markers freebsd.ftp.markers
+.for marker in freebsd.committers.markers freebsd.ftp.markers freebsd.submitters.markers
@${INSTALL_DATA} ${FILESDIR}/${marker} ${PREFIX}/lib/X11/xearth
.endfor
Index: distinfo
===================================================================
--- distinfo (revision 304979)
+++ distinfo (working copy)
@@ -1,2 +1,2 @@
-SHA256 (xearth-1.1.tar.gz) = bcb1407cc35b3f6dd3606b2c6072273b6a912cbd9ed1ae22fb2d26694541309c
-SIZE (xearth-1.1.tar.gz) = 157887
+SHA256 (xearth-1.2.tar.xz) = fdbe24111fbb05ef1d554643ae189696a8a7a2c28d69d6be475ad1c39f8b0daf
+SIZE (xearth-1.2.tar.xz) = 241816
Index: pkg-descr
===================================================================
--- pkg-descr (revision 304979)
+++ pkg-descr (working copy)
@@ -6,7 +6,9 @@
Xearth can also render directly into PPM and GIF files
instead of drawing in the root window.
-There are two additional marker files installed in
+WWW: http://xearth.org
+
+There are three additional marker files installed in
/usr/local/lib/X11/xearth which specify the locations of
various FreeBSD people and places:
Index: pkg-plist
===================================================================
--- pkg-plist (revision 304979)
+++ pkg-plist (working copy)
@@ -1,5 +0,0 @@
-bin/xearth
-lib/X11/xearth/freebsd.committers.markers
-lib/X11/xearth/freebsd.submitters.markers
-lib/X11/xearth/freebsd.ftp.markers
- at dirrm lib/X11/xearth
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list