mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-17 03:25:46 +00:00
380514687f
While here, provide a sane PKGNAME for unimplmented archs. Otherwise you get the construction "dnetc-,1" which, even though the build won't be attempted, looks really strange in the poudriere output. Approved by: portmgr (tier-2 blanket)
72 lines
1.9 KiB
Makefile
72 lines
1.9 KiB
Makefile
# Created by: dbaker
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= dnetc
|
|
PORTVERSION= ${VERSION}
|
|
PORTREVISION= ${REVISION}
|
|
PORTEPOCH= 1
|
|
CATEGORIES= misc
|
|
MASTER_SITES= http://http.distributed.net/pub/dcti/v${PORTVERSION:R}/ \
|
|
ftp://ftp.distributed.net/pub/dcti/v${PORTVERSION:R}/
|
|
# This is architecture dependent
|
|
DISTNAME= dnetc${PORTVERSION:E}-freebsd-${ARCH:S/i386/x86/}-elf
|
|
|
|
MAINTAINER= tdb@FreeBSD.org
|
|
COMMENT= Distributed.net distributed computing project client
|
|
|
|
# These are architecture dependent
|
|
WRKSRC= ${WRKDIR}/dnetc${PORTVERSION:E}-freebsd-${ARCH:S/i386/x86/}-elf
|
|
DISTINFO_FILE= ${MASTERDIR}/distinfo.${ARCH}
|
|
|
|
ONLY_FOR_ARCHS= amd64 i386 powerpc sparc64
|
|
|
|
USE_RC_SUBR= dnetc
|
|
NO_BUILD= yes
|
|
|
|
BINDIR= ${PREFIX}/distributed.net
|
|
|
|
USERS= dnetc
|
|
GROUPS= dnetc
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
SUB_FILES= pkg-message
|
|
SUB_LIST= BINDIR="${BINDIR}"
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == i386
|
|
VERSION= 2.9112.521
|
|
DISTNAME= dnetc${PORTVERSION:E}-freebsd9-${ARCH:S/i386/x86/}
|
|
WRKSRC= ${WRKDIR}/dnetc${PORTVERSION:E}-freebsd9-${ARCH:S/i386/x86/}
|
|
|
|
.elif ${ARCH} == amd64
|
|
VERSION= 2.9112.521
|
|
DISTNAME= dnetc${PORTVERSION:E}-freebsd10-${ARCH}
|
|
WRKSRC= ${WRKDIR}/dnetc${PORTVERSION:E}-freebsd10-${ARCH}
|
|
|
|
.elif ${ARCH} == sparc64
|
|
VERSION= 2.9109.518
|
|
REVISION= 1
|
|
DISTNAME= dnetc${PORTVERSION:E}-freebsd8-${ARCH}
|
|
WRKSRC= ${WRKDIR}/dnetc${PORTVERSION:E}-freebsd8-${ARCH}
|
|
|
|
.elif ${ARCH} == powerpc
|
|
VERSION= 2.9109.518
|
|
REVISION= 1
|
|
DISTNAME= dnetc${PORTVERSION:E}-freebsd8-${ARCH}
|
|
WRKSRC= ${WRKDIR}/dnetc${PORTVERSION:E}-freebsd8-${ARCH}
|
|
|
|
.else
|
|
# create a backstop for PORTVERSION for unimplemented arches to get a sane PKGNAME
|
|
VERSION= 0
|
|
.endif
|
|
|
|
do-install:
|
|
@${MKDIR} ${STAGEDIR}${BINDIR}
|
|
${INSTALL_PROGRAM} ${WRKSRC}/dnetc ${STAGEDIR}${BINDIR}
|
|
${INSTALL_MAN} ${WRKSRC}/dnetc.1 ${STAGEDIR}${PREFIX}/man/man1
|
|
${INSTALL_DATA} ${FILESDIR}/dnetc.ini ${STAGEDIR}${BINDIR}/dnetc.ini.sample
|
|
|
|
.include <bsd.port.post.mk>
|