mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-30 01:15:52 +00:00
aa8bfe7147
PR: 217063 Reported by: Jan Bramkamp MFH: 2017Q1 Security: Integer overflow checking and string formatting error
46 lines
1.0 KiB
Makefile
46 lines
1.0 KiB
Makefile
# Created by: Thomas-Martin Seck <tmseck@netcologne.de>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= libowfat
|
|
PORTVERSION= 0.31
|
|
CATEGORIES= devel ipv6
|
|
MASTER_SITES= http://www.fefe.de/libowfat/
|
|
|
|
MAINTAINER= lx@FreeBSD.org
|
|
COMMENT= General purpose library based on code by D. J. Bernstein
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
USES= gmake tar:xz
|
|
ALL_TARGET= dep all
|
|
|
|
MAKEFILE= GNUmakefile
|
|
|
|
OPTIONS_DEFINE= OPTIMIZED_CFLAGS
|
|
OPTIONS_DEFAULT= OPTIMIZED_CFLAGS
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
MAKE_ENV+= INSTALL="${INSTALL}"
|
|
|
|
.include "${FILESDIR}/manpages"
|
|
|
|
.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
|
|
CFLAGS+= -O2 -fomit-frame-pointer
|
|
.endif
|
|
|
|
post-extract:
|
|
@${MKDIR} ${WRKSRC}/man
|
|
# Manual pages clash with other programs; prepend libowfat_ to them.
|
|
.for i in ${MANPAGES}
|
|
@${MV} ${WRKSRC}/*/${i:S/libowfat_//} ${WRKSRC}/man/${i}
|
|
.endfor
|
|
|
|
post-patch:
|
|
# Clang cries when void functions return a value
|
|
${REINPLACE_CMD} -e '56s|return ||' ${WRKSRC}/CAS.h
|
|
${REINPLACE_CMD} -e "s|STAGEDIR|${STAGEDIR}|g" ${WRKSRC}/GNUmakefile
|
|
|
|
.include <bsd.port.post.mk>
|