PORTNAME=	gkrellmoon2
PORTVERSION=	0.6
PORTREVISION=	11
CATEGORIES=	astro
MASTER_SITES=	SF/gkrellmoon/gkrellmoon/${PORTVERSION}
DISTNAME=	gkrellmoon-${PORTVERSION}

MAINTAINER=	w@wrzask.pl
COMMENT=	Moon clock plugin for Gkrellm2
WWW=		https://gkrellmoon.sourceforge.net/

BUILD_DEPENDS=	${LOCALBASE}/include/gkrellm2/gkrellm.h:sysutils/gkrellm2
RUN_DEPENDS=	gkrellm:sysutils/gkrellm2

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		gnome pkgconfig
USE_GNOME=	gtk20

ALL_TARGET=	gkrellmoon.so

OPTIONS_DEFINE=	DOCS

do-install:
	@${MKDIR} ${STAGEDIR}${PREFIX}/libexec/gkrellm2/plugins
	${INSTALL_LIB} ${WRKSRC}/gkrellmoon.so \
		${STAGEDIR}${PREFIX}/libexec/gkrellm2/plugins
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
	${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>
