aboutsummaryrefslogtreecommitdiffstats
path: root/x11/xsel-conrad/Makefile
blob: d87a14c5ac7fb54fb4de91777c07ddce06f2ccd2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Ports collection makefile for:    xsel-conrad
# Date created:     9 August 2007
# Whom:         Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   xsel
PORTVERSION=    1.2.0
CATEGORIES= x11
MASTER_SITES=   http://www.vergenet.net/~conrad/software/xsel/download/ \
        CENKES
PKGNAMESUFFIX=  -conrad

MAINTAINER= ports@FreeBSD.org
COMMENT=    Access X selection from command line

CONFLICTS=  xsel-[0-9]*
USE_XORG=   x11 xext xt xproto ice sm
CFLAGS+=    -I${LOCALBASE}/include
LDFLAGS=    -L${LOCALBASE}/lib -lXext -lX11
MAN1=       ${PORTNAME}.1
PLIST_FILES=    bin/${PORTNAME}
PORTDOCS=   ChangeLog README
GNU_CONFIGURE=  yes

post-patch:
    @${REINPLACE_CMD} -e 's|jmp_buf|sigjmp_buf|g' ${WRKSRC}/xsel.c
    @${REINPLACE_CMD} -e 's|@X_CFLAGS@|${CFLAGS}|;\
        s|@X_LIBS@|${LDFLAGS}|' ${WRKSRC}/Makefile.in

do-install:
    @${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
    @${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1x ${MAN1PREFIX}/man/man1/${PORTNAME}.1
.ifndef NOPORTDOCS
    @${INSTALL} -d ${DOCSDIR}/
    @cd ${WRKSRC}/&&${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
.endif

.include <bsd.port.mk>