# Created by: john@jnielsen.net
# $FreeBSD: head/deskutils/autocutsel/Makefile 516748 2019-11-04 22:20:30Z zeising $

PORTNAME=	autocutsel
PORTVERSION=	0.10.0
PORTREVISION=	1
CATEGORIES=	deskutils

MAINTAINER=	john@jnielsen.net
COMMENT=	Synchronizes the two copy/paste buffers used by X applications

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		autoreconf gmake libtool xorg
USE_XORG=	ice sm x11 xaw xext xmu xt
USE_GITHUB=	yes
GH_ACCOUNT=	sigmike

GNU_CONFIGURE=	yes

PLIST_FILES=	bin/autocutsel \
		bin/cutsel \
		man/man1/autocutsel.1.gz \
		man/man1/cutsel.1.gz

post-configure:
	@${REINPLACE_CMD} -e 's|-I\.|-I/usr/local/include|g' ${WRKSRC}/Makefile

post-install:
	${INSTALL_MAN} ${WRKSRC}/*.1 ${STAGEDIR}${PREFIX}/man/man1

.include <bsd.port.mk>