# New ports collection makefile for:	wmfishtime
# Date created:				31 March 2001
# Whom:					Anders Nordby <anders@fix.no>
#
# $FreeBSD: ports/x11-clocks/wmfishtime/Makefile,v 1.22 2009/08/04 23:20:57 anders Exp $
#

PORTNAME=	wmfishtime
PORTVERSION=	1.24
PORTREVISION=	4
CATEGORIES=	x11-clocks windowmaker
MASTER_SITES=	http://www.ne.jp/asahi/linux/timecop/software/ \
		http://atreides.freenix.no/~anders/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A time/date applet for WindowMaker with fishes swimming around

USE_GNOME=	gtk12

GTK_LIBS?=	`${GTK_CONFIG} --libs`
GTK_CFLAGS?=	`${GTK_CONFIG} --cflags`
MAKE_ARGS+=	CFLAGS="${CPPFLAGS} ${CFLAGS} -Wall ${GTK_CFLAGS}" \
		LDFLAGS="${LDFLAGS}" \
		GTK_LIBS="${GTK_LIBS}"
PLIST_FILES=	bin/wmfishtime
MAN1=	wmfishtime.1

post-patch:
	${REINPLACE_CMD} -E -e "s@1\.23@1\.24@g" ${WRKSRC}/fishmon.c ${WRKSRC}/wmfishtime.1

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

.include <bsd.port.mk>
