summaryrefslogtreecommitdiffstats
path: root/x11/xsel/Makefile
blob: 367c19835b0c53506ff3b8e8c18160c312ac72df (plain)
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
# ex:ts=8
# Ports collection makefile for:	xsel
# Date created:			Jan 14, 2003
# Whom:				ijliao
#
# $FreeBSD$
#

PORTNAME=	xsel
PORTVERSION=	0.04.1
CATEGORIES=	x11
MASTER_SITES=	http://www.niksula.cs.hut.fi/~vherva/xsel/
DISTFILES=	xsel.c xsel.man

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

EXTRACT_CMD=	${CP}
EXTRACT_BEFORE_ARGS=
EXTRACT_AFTER_ARGS=	${WRKDIR}
USE_XLIB=	yes
USE_GNOME=	gtk12
NO_WRKSUBDIR=	yes
CFLAGS+=	`${GTK_CONFIG} --cflags`
LDFLAGS+=	`${GTK_CONFIG} --libs` -lXt -lXaw

MAN1=	xsel.1

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

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/xsel ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/xsel.man ${MAN1PREFIX}/man/man1/xsel.1

.include <bsd.port.mk>
OpenPOWER on IntegriCloud