openbsd-ports/misc/dnetc/Makefile

62 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.15 2007/09/15 23:54:16 merdely Exp $
ONLY_FOR_ARCHS= i386 m68k sparc
COMMENT= official distributed.net client
A-i386= x86-elf
V-i386= 2.9008
SV-i386= 491
S-i386= 0
A-m68k= m68k
V-m68k= 2.9005
SV-m68k= 483
S-m68k= 1
A-sparc= sparc-aout
V-sparc= 2.9002
SV-sparc= 479
S-sparc= 2
V= ${V-${MACHINE_ARCH}}
A= ${A-${MACHINE_ARCH}}
SV= ${SV-${MACHINE_ARCH}}
S= ${S-${MACHINE_ARCH}}
DISTFILES=
.for m in ${ONLY_FOR_ARCHS}
. if ${MACHINE_ARCH} == "$m"
DISTFILES+= dnetc${SV}-openbsd-$A${EXTRACT_SUFX}:$S
. else
SUPDISTFILES+= dnetc${SV-$m}-openbsd-${A-$m}${EXTRACT_SUFX}:${S-$m}
. endif
MASTER_SITES${S-$m}= http://http.distributed.net/pub/dcti/v${V-$m}/
.endfor
PKGNAME= dnetc-${V}.${SV}
DISTNAME= dnetc${SV}-openbsd-${A}
CATEGORIES= misc
HOMEPAGE= http://www.distributed.net/
MAINTAINER= Sico Bruins <openbsd@msh.xs4all.nl>
PERMIT_PACKAGE_CDROM= no redistribution
PERMIT_PACKAGE_FTP= no redistribution
PERMIT_DISTFILES_CDROM= no redistribution
PERMIT_DISTFILES_FTP= no redistribution
NO_BUILD= Yes
NO_REGRESS= Yes
WRKSRC= ${WRKDIR}/dnetc${SV}-openbsd-${A}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/dnetc ${PREFIX}/bin/
${INSTALL_DATA} ${WRKSRC}/dnetc.1 ${PREFIX}/man/man1/
.include <bsd.port.mk>