diff options
author | stb <stb@FreeBSD.org> | 1999-04-22 18:35:25 +0800 |
---|---|---|
committer | stb <stb@FreeBSD.org> | 1999-04-22 18:35:25 +0800 |
commit | b45c37d435ec38a42b1f9453297331d1271117b4 (patch) | |
tree | 4aced508bd16680e2375d28aa81bfc2c7981b370 /astro/setiathome | |
parent | 118e5667aa9727adfa09bc9c38fff0d77364e0b3 (diff) | |
download | freebsd-ports-gnome-b45c37d435ec38a42b1f9453297331d1271117b4.tar.gz freebsd-ports-gnome-b45c37d435ec38a42b1f9453297331d1271117b4.tar.zst freebsd-ports-gnome-b45c37d435ec38a42b1f9453297331d1271117b4.zip |
Better check for OS version, cleanup.
PR: ports/11272
Submitted by: Chris Piazza <cpiazza@home.net>
Diffstat (limited to 'astro/setiathome')
-rw-r--r-- | astro/setiathome/Makefile | 41 |
1 files changed, 18 insertions, 23 deletions
diff --git a/astro/setiathome/Makefile b/astro/setiathome/Makefile index 107b6aca6557..3fd899adff41 100644 --- a/astro/setiathome/Makefile +++ b/astro/setiathome/Makefile @@ -3,37 +3,32 @@ # Date created: 22 Apr 1999 # Whom: stb@freebsd.org # -# $Id: Makefile,v 1.2 1999/04/22 01:48:34 stb Exp $ +# $Id: Makefile,v 1.3 1999/04/22 02:00:16 stb Exp $ # PKGNAME= setiathome-0.46 CATEGORIES= astro MASTER_SITES= http://setiathome.ssl.berkeley.edu/software/ \ http://www.freebsd.org/~stb/mirror/setiathome.ssl.berkeley.edu/software/ -ONLY_FOR_ARCHS= i386 MAINTAINER= stb@freebsd.org -EXTRACT_CMD= tar -EXTRACT_BEFORE_ARGS= -xf -EXTRACT_AFTER_ARGS= - -.if !defined(OSRELEASE) -OSRELEASE!= uname -r | sed -e 's/^\(^[^-]*\)-.*/\1/' -.endif +ONLY_FOR_ARCHS= i386 -.if (${OSRELEASE} == 2.2.6) -DISTFILES= setiathome-0.46.i386-unknown-freebsd2.2.6.tar -WRKSRC= setiathome-0.46.i386-unknown-freebsd2.2.6 -.elif (${OSRELEASE} == 2.2.7) -DISTFILES= setiathome-0.46.i386-unknown-freebsd2.2.7.tar -WRKSRC= setiathome-0.46.i386-unknown-freebsd2.2.7 -.elif (${OSRELEASE} == 2.2.8) -DISTFILES= setiathome-0.46.i386-unknown-freebsd2.2.8.tar -WRKSRC= setiathome-0.46.i386-unknown-freebsd2.2.8 -.elif (${OSRELEASE} == 3.1) -DISTFILES= setiathome-0.46.i386-unknown-freebsd3.1.tar -WRKSRC= setiathome-0.46.i386-unknown-freebsd3.1 +.include <bsd.port.pre.mk> + +.if ${OSVERSION} >= 310000 +DISTFILES= setiathome-0.46.i386-unknown-freebsd3.1.tar +WRKSRC= setiathome-0.46.i386-unknown-freebsd3.1 +.elif ${OSVERSION} >= 228000 +DISTFILES= setiathome-0.46.i386-unknown-freebsd2.2.8.tar +WRKSRC= setiathome-0.46.i386-unknown-freebsd2.2.8 +.elif ${OSVERSION} >= 227000 +DISTFILES= setiathome-0.46.i386-unknown-freebsd2.2.7.tar +WRKSRC= setiathome-0.46.i386-unknown-freebsd2.2.7 +.elif ${OSVERSION} >= 226000 +DISTFILES= setiathome-0.46.i386-unknown-freebsd2.2.6.tar +WRKSRC= setiathome-0.46.i386-unknown-freebsd2.2.6 .else DISTFILES= .endif @@ -52,7 +47,7 @@ MAN1= setiathome.1 pre-fetch: @if [ -z "${DISTFILES}" ]; then \ ${ECHO} "It seems you are running FreeBSD `uname -r`, which is not currently"; \ - ${ECHO} "supported. SETI@home currently supports only FreeBSD 2.2.5 and above,"; \ + ${ECHO} "supported. SETI@home currently supports only FreeBSD 2.2.6 and above,"; \ ${ECHO} "and FreeBSD 3.1."; \ ${ECHO} \ exit 72; \ @@ -65,4 +60,4 @@ do-install: post-install: @PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL -.include <bsd.port.mk> +.include <bsd.port.post.mk> |