1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00
freebsd-ports/security/tthsum/Makefile
Emanuel Haupt 7367044b62 Update master site
Notified by:	fenner mail
2005-12-21 10:34:55 +00:00

48 lines
1.1 KiB
Makefile

# New ports collection makefile for: tthsum
# Date created: 25 Sep 2005
# Whom: Emanuel Haupt <ehaupt@critical.ch>
#
# $FreeBSD$
#
PORTNAME= tthsum
PORTVERSION= 1.1.0
CATEGORIES= security
MASTER_SITES= http://critical.ch/distfiles/ \
${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= ehaupt
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= A command-line utility for generating and checking TTH message digests
USE_GMAKE= yes
USE_REINPLACE= yes
MAKE_ENV= CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
PORTDOCS= Changelog.txt
PLIST_FILES= bin/tthsum
MAN1= tthsum.1
post-patch:
@${REINPLACE_CMD} -E '/^(CC|CFLAGS)/d' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's,malloc.h,stdlib.h,g' \
${WRKSRC}/base32.c \
${WRKSRC}/read.c \
${WRKSRC}/utf8.c
@${REINPLACE_CMD} '/stdio.h/H; /stdio\.h/{ p; s/#include <stdio.h>/#define O_LARGEFILE 0/;}' \
${WRKSRC}/read.c \
${WRKSRC}/thex.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/obj-${ARCH}/${PORTNAME} ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
.endif
.include <bsd.port.mk>