aboutsummaryrefslogtreecommitdiffstats
path: root/x11/xsel/Makefile
blob: 2d384fa2aa29ced5c1edfb6b3745479ee890fded (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
# Created by: ijliao
# $FreeBSD$

PORTNAME=   xsel
PORTVERSION=    0.04.1
PORTREVISION=   5
CATEGORIES= x11
MASTER_SITES=   CENKES
#http://www.niksula.cs.hut.fi/~vherva/xsel/xsel.{c,man}

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

CONFLICTS=  xsel-conrad-[0-9]*
USE_BZIP2=  yes
USE_XORG=   xmu xaw xt xproto xkbfile
CFLAGS+=    -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib -lXt -lXaw
MAN1=       ${PORTNAME}.1
PLIST_FILES=    bin/${PORTNAME}
PORTDOCS=   ${PORTNAME}.html

.include <bsd.port.options.mk>

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

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

.include <bsd.port.mk>