# Created by: Meno Abels <meno.abels@adviser.com>
# $FreeBSD: security/fakeroot/Makefile 319193 2013-05-27 09:28:45Z martymac $

PORTNAME=	fakeroot
PORTVERSION=	1.19
CATEGORIES=	security
MASTER_SITES=	${MASTER_SITE_DEBIAN}
MASTER_SITE_SUBDIR=	pool/main/f/fakeroot
DISTNAME=	${PORTNAME}_${PORTVERSION}.orig

MAINTAINER=	martymac@FreeBSD.org
COMMENT=	Simulate the root user behaviour

LICENSE=	GPLv3

USE_BZIP2=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=		--with-ipc=tcp
USE_AUTOTOOLS=		libtool
USE_LDCONFIG=	yes

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}

MAN1=		faked.1 fakeroot.1
MANLANG=	"" de es fr nl sv

pre-configure:
	 @${REINPLACE_CMD} -e '/LIBS=.*-lpthread/s/-lpthread/${PTHREAD_LIBS}/g' \
	 	${WRKSRC}/${CONFIGURE_SCRIPT}

post-install:
	@${MV} ${PREFIX}/lib/libfakeroot-0.so ${PREFIX}/lib/libfakeroot.so.0
	@${LN} -sf ${PREFIX}/lib/libfakeroot.so.0 ${PREFIX}/lib/libfakeroot-0.so

.include <bsd.port.mk>
