blob: 530b805cd106e668d0b104889d536f466ad8c43c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# New ports collection makefile for: sformat
# Date created: 16 December 2002
# Whom: marius@alchemy.franken.de
#
# $FreeBSD$
#
PORTNAME= sformat
PORTVERSION= 3.5
PORTREVISION= 3
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.zeist.de/pub/distfiles/ \
ftp://ftp.berlios.de/pub/sformat/
MAINTAINER= marius@FreeBSD.org
COMMENT= Allows formatting/partitioning/analysis/repairing of SCSI disks
USE_GMAKE= yes
USE_REINPLACE= yes
MAN1= sformat.1
MAKE_ENV= CCOM=${CC}
SFMTTARGET= ${ARCH}-freebsd-${CC}
.include <bsd.port.pre.mk>
post-extract:
.for i in config.guess config.sub
@${CP} ${PORTSDIR}/Templates/${i} ${WRKSRC}/conf
.endfor
.if ${ARCH} != "i386" || ${CC} != "cc"
@${LN} -sf ${WRKSRC}/RULES/i386-freebsd-cc.rul \
${WRKSRC}/RULES/${SFMTTARGET}.rul
.endif
post-patch:
.for i in datio.c sformat.1
@${REINPLACE_CMD} -i "" -e 's:%%DATADIR%%:${DATADIR}:g;' \
${WRKSRC}/sformat/${i}
.endfor
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/sformat/OBJ/${SFMTTARGET}/sformat \
${PREFIX}/bin
@${MKDIR} ${DATADIR}
@${INSTALL_DATA} ${WRKSRC}/sformat/sformat.dat ${DATADIR}
@${INSTALL_MAN} ${WRKSRC}/sformat/sformat.1 ${PREFIX}/man/man1
.include <bsd.port.post.mk>
|