# Created by: Jan Srzednicki <w@wrzask.pl>
# $FreeBSD: head/astro/gkrellmoon2/Makefile 412344 2016-04-01 13:29:15Z mat $

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

MAINTAINER=	w@wrzask.pl
COMMENT=	Moon clock plugin for Gkrellm2

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

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

USES=		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>