freebsd-ports/sysutils/sformat/Makefile
Alexander Leidinger 92e07511d2 - Fix a typo in PORTREVISION. Doh!
- Manually replace included copies of config.guess and config.sub with
  versions from ${PORTSDIR}/Templates. This is necessary as the sformat
  package doesn't have a valid configure script in it's root directory
  but one in a sub-directory that is executed by the SING (Schily Is
  Not Gnu) makefile system further down the road. Therefor the port
  can't set GNU_CONFIGURE which would automatically copy the relevant
  files.
- Remove BSD_SCSI_SENSE_BUG from COPTX (CFLAGS) to libscg. It is a
  workaround for a (probably alumnus) bug in a SCSI-driver of NetBSD
  and the affected code doesn't get compiled on neither pre-CAM nor
  CAM versions of FreeBSD.
- Use DATADIR in pkg-plist.

Submitted by:	maintainer
2003-07-18 10:11:32 +00:00

47 lines
1.1 KiB
Makefile

# New ports collection makefile for: sformat
# Date created: 16 December 2002
# Whom: marius@alchemy.franken.de
#
# $FreeBSD$
#
PORTNAME= sformat
PORTVERSION= 3.5
PORTREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.zeist.de/pub/distfiles/ \
ftp://ftp.berlios.de/pub/sformat/
MAINTAINER= marius@alchemy.franken.de
COMMENT= Allows formatting/partitioning/analysis/repairing of SCSI disks
USE_GMAKE= yes
USE_REINPLACE= yes
MAN1= sformat.1
MAKE_ENV= CCOM=${CC}
post-extract:
.for i in config.guess config.sub
@${CP} ${PORTSDIR}/Templates/${i} ${WRKSRC}/conf
.endfor
.if ${MACHINE_ARCH} != "i386" || ${CC} != "cc"
@${LN} -s ${WRKSRC}/RULES/i386-freebsd-cc.rul \
${WRKSRC}/RULES/${MACHINE_ARCH}-freebsd-${CC}.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/${ARCH}-freebsd-cc/sformat \
${PREFIX}/bin
@${MKDIR} ${DATADIR}
@${INSTALL_DATA} ${WRKSRC}/sformat/sformat.dat ${DATADIR}
@${INSTALL_MAN} ${WRKSRC}/sformat/sformat.1 ${PREFIX}/man/man1
.include <bsd.port.mk>