aboutsummaryrefslogtreecommitdiffstats
path: root/x11/grabc/Makefile
blob: 537cce952645179a1b9173b7cf38c6a37c0643ca (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
# Created by: ijliao
# $FreeBSD$

PORTNAME=   grabc
PORTVERSION=    1.1
PORTREVISION=   4
CATEGORIES= x11
MASTER_SITES=   http://muquit.com/muquit/software/grabc/
DISTNAME=   ${PORTNAME}${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Grab a color from screen

PLIST_FILES=    bin/grabc
USE_XORG=   x11
CFLAGS+=    -I${LOCALBASE}/include
LIBS+=      -L${LOCALBASE}/lib -lX11

do-build:
    cd ${WRKSRC} && ${CC} ${CFLAGS} -o ${PORTNAME} ${PORTNAME}.c ${LIBS}

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>