1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/sysutils/zidrav/Makefile
Dirk Meyer 9422b10842 - fix crc problems on 64bit
- fix crc problems on big endian systems
2014-01-07 06:02:26 +00:00

38 lines
852 B
Makefile

# Created by: Cosmin Stroe <cstroe1@uic.edu>
# $FreeBSD$
PORTNAME= zidrav
PORTVERSION= 1.2.0
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}4unix/${PORTVERSION}
DISTNAME= zidrav4unix-${PORTVERSION}
MAINTAINER= dinoex@FreeBSD.org
COMMENT= A file corruption detection and repair program
LICENSE= GPLv2
ALL_TARGET= zidrav
PLIST_FILES= bin/zidrav man/man1/zidrav.1.gz
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/zidrav ${STAGEDIR}${PREFIX}/bin/
${INSTALL_MAN} ${WRKSRC}/zidrav.1 ${STAGEDIR}${MANPREFIX}/man/man1/
.include <bsd.port.options.mk>
.if ${ARCH} == "i386"
CFLAGS+= -Dcrc32_type=long
.else
CFLAGS+= -Dcrc32_type=int
.endif
.if ${ARCH} == "amd64" || ${ARCH} == "arm" || ${ARCH} == "i386" || ${ARCH} == "ia64"
.else
# mips*eb, powerpc, powerpc64 and sparc
CFLAGS+= -DCPU_BIGENDIAN
.endif
.include <bsd.port.mk>