mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-16 03:24:07 +00:00
12657ca8d2
shipping with sformat 3.5 for building sformat; the former include their own version of __dtoa() which is no longer externally visible with libc symbol versioning turned on (thus breaking the build of stock sformat). - While here also use MASTER_SITE_LOCAL for providing a backup mirror of the sformat 3.5 distfile instead of using a private one. - Fix the checksumming of sformat.dat on LP64 platforms so sformat doesn't erroneously complain about that file containing uncertified data there. Bump PORTREVISION for this. Approved by: netchild
57 lines
1.5 KiB
Makefile
57 lines
1.5 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= 5
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= ftp://ftp.berlios.de/pub/sformat/:sformat \
|
|
${MASTER_SITE_LOCAL:S/$/:libschily,sformat/}
|
|
MASTER_SITE_SUBDIR= marius/:libschily,sformat
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:sformat \
|
|
${LIBSCHILY}:libschily
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= marius@FreeBSD.org
|
|
COMMENT= Allows formatting/partitioning/analysis/repairing of SCSI disks
|
|
|
|
USE_GMAKE= yes
|
|
|
|
MAN1= sformat.1
|
|
|
|
LIBSCHILY= libschily-2.01.01a07.tar.gz
|
|
MAKE_ENV= CCOM=${CC}
|
|
SFMTTARGET= ${ARCH}-freebsd-${CC}
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-extract:
|
|
@cd ${WRKSRC} && ${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} \
|
|
${DISTDIR}/${DIST_SUBDIR}/${LIBSCHILY} ${EXTRACT_AFTER_ARGS}
|
|
.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>
|