# Created by: Thomas-Martin Seck # $FreeBSD: head/devel/libowfat/Makefile 514130 2019-10-09 10:34:56Z bapt $ PORTNAME= libowfat PORTVERSION= 0.31 CATEGORIES= devel 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 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