1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/misc/mbuffer/Makefile
Tobias Kortkamp b79d3b37e4 misc/mbuffer: Update to 20180505
- Unify versioning scheme with how it's done upstream and on other systems
- Add missing gtar to TEST_DEPENDS
- Clean up some unnecessary {CONFIGURE,MAKE}_ARGS
2018-05-14 08:16:47 +00:00

43 lines
1.1 KiB
Makefile

# Created by: Rong-En Fan <rafan@FreeBSD.org>
# $FreeBSD$
PORTNAME= mbuffer
PORTVERSION= 20180505
CATEGORIES= misc
MASTER_SITES= http://www.maier-komor.de/software/mbuffer/
MAINTAINER= tobik@FreeBSD.org
COMMENT= Tool for buffering data streams
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/LICENSE
TEST_DEPENDS= gtar:archivers/gtar
USES= gmake localbase ssl tar:tgz
GNU_CONFIGURE= yes
CONFIGURE_ARGS= ac_cv_header_gcrypt_h=no \
ac_cv_search_gcry_cipher_algo_name=no
TEST_ARGS= TAR=gtar # for --ignore-failed-read
TEST_TARGET= check
OPTIONS_DEFINE= MHASH
OPTIONS_DEFAULT= MHASH
MHASH_DESC= Use mhash for hash generation
MHASH_LIB_DEPENDS= libmhash.so:security/mhash
MHASH_CONFIGURE_OFF= ac_cv_search_mhash_init=no
post-configure:
# Rename variables to make sure they aren't redefined through mhash.h
@${REINPLACE_CMD} -E -e 's@(PACKAGE|VERSION)@MBUFFER_\1@' \
${WRKSRC}/config.h ${WRKSRC}/settings.c
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/mbuffer
${MV} ${STAGEDIR}${PREFIX}/etc/mbuffer.rc \
${STAGEDIR}${PREFIX}/etc/mbuffer.rc.sample
.include <bsd.port.mk>