PORTNAME=	fvwm-themes
PORTVERSION=	0.7.0
PORTREVISION=	7
CATEGORIES=	x11-themes
MASTER_SITES=	SF
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} \
		${PORTNAME}-extra-${PORTVERSION}${EXTRACT_SUFX}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Themes for the Fvwm2 window manager
WWW=		https://fvwm-themes.sourceforge.net/

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	gm4:devel/m4 \
		fvwm2:x11-wm/fvwm2
RUN_DEPENDS=	fvwm2:x11-wm/fvwm2

USES=		gmake perl5 shebangfix tar:bzip2 xorg
USE_XORG=	xpm
SHEBANG_FILES=	themes/cde/modules/create-buttonbar-config \
		themes/redmondxp/modules/FvwmThemesPanelManager
GNU_CONFIGURE=	yes
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
NO_ARCH=	yes

post-install:
	@cd ${WRKDIR}/${PORTNAME}-extra-${PORTVERSION} && ${FIND} . | \
		${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${PREFIX}/share/fvwm/themes

.include <bsd.port.mk>
