aboutsummaryrefslogtreecommitdiffstats
path: root/x11/xsel/Makefile
blob: 2abd6091a73e40704039856026d7f4514b9516f3 (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
# Created by: Ying-Chieh Liao <ijliao@FreeBSD.org>
# $FreeBSD$

PORTNAME=   xsel
PORTVERSION=    0.04.1
PORTREVISION=   5
CATEGORIES= x11
MASTER_SITES=   http://BSDforge.com/projects/source/x11/xsel/

MAINTAINER= portmaster@BSDforge.com
COMMENT=    Access X11 selection buffer from command line

LICENSE=    MIT

CONFLICTS_INSTALL=  xsel-conrad-[0-9]*

USES=       tar:bzip2
USE_XORG=   xmu xaw xt xproto xkbfile

CFLAGS+=    -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib -lXt -lXaw -lX11 -lXmu

PLIST_FILES=    bin/${PORTNAME} man/man1/xsel.1.gz
PORTDOCS=   ${PORTNAME}.html

OPTIONS_DEFINE= DOCS

do-build:
    cd ${WRKSRC} && ${CC} ${CFLAGS} xsel.c -o xsel ${LDFLAGS}

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.man \
        ${STAGEDIR}${MAN1PREFIX}/man/man1/${PORTNAME}.1
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>