# Created by: Will Andrews <andrews@technologist.com>
# $FreeBSD: tags/RELEASE_10_1_0/graphics/gcolor/Makefile 368108 2014-09-13 15:11:27Z tijl $

PORTNAME=	gcolor
PORTVERSION=	0.4
PORTREVISION=	6
CATEGORIES=	graphics x11
MASTER_SITES=	SF

MAINTAINER=	ports@FreeBSD.org
COMMENT=	GTK-based color picker

PLIST_FILES=	bin/gcolor
USE_GNOME=	gtk12
GNU_CONFIGURE=	yes
CPPFLAGS+=	-I${LOCALBASE}/include
LIBS+=		-L${LOCALBASE}/lib

pre-patch:
	@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
		 s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure

.include <bsd.port.mk>
