# $FreeBSD$ PORTNAME= libdisorder PORTVERSION= 0.0.2 PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= http://libdisorder.freshdefense.net/releases/ MAINTAINER= kevlo@FreeBSD.org COMMENT= Simple C library for entropy measurement LICENSE= GPLv2 USE_LDCONFIG= yes NO_STAGE= yes .include .if ${OSVERSION} < 900027 EXTRA_PATCHES= ${FILESDIR}/extra-patch-disorder.c .endif post-patch: @${REINPLACE_CMD} -e 's|gcc|${CC}|' ${WRKSRC}/src/Makefile do-build: cd ${WRKSRC}/src && ${SETENV} ${MAKE_ENV} ${MAKE} do-install: ${INSTALL_DATA} ${WRKSRC}/include/disorder.h ${PREFIX}/include ${INSTALL_DATA} ${WRKSRC}/lib/libdisorder.a ${PREFIX}/lib ${INSTALL_DATA} ${WRKSRC}/src/libdisorder.so \ ${PREFIX}/lib/libdisorder.so.1 ${INSTALL_PROGRAM} ${WRKSRC}/tool/ropy ${PREFIX}/bin post-install: ${LN} -sf ${PREFIX}/lib/libdisorder.so.1 ${PREFIX}/lib/libdisorder.so .include