# Created by: lukin@okbmei.msk.su
# $FreeBSD: tags/RELEASE_11_0_0/x11-fm/asfiles/Makefile 416324 2016-06-03 16:44:58Z antoine $

PORTNAME=	asfiles
PORTVERSION=	1.0
PORTREVISION=	3
CATEGORIES=	x11-fm afterstep windowmaker
MASTER_SITES=	AFTERSTEP/apps/ASFiles
DISTNAME=	ASFiles-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	X11 file manager. Dockable in WindowMaker

DEPRECATED=	Depends on expiring x11/libdnd
EXPIRATION_DATE=	2016-07-04

LIB_DEPENDS=	libDnd.so:x11/libdnd

USES=		perl5
GNU_CONFIGURE=	yes
USE_XORG=	xpm
USE_PERL5=	build

CONFIGURE_ARGS+=--with-dnd-inc=${LOCALBASE}/include \
		--with-dnd-lib=${LOCALBASE}/lib

post-patch:
	${REINPLACE_CMD} -e 's|%%PREFIX%%|${LOCALBASE}|g' \
		${WRKSRC}/src/Files.ad

post-install:
	${INSTALL_DATA} ${WRKSRC}/src/Files.ad ${STAGEDIR}${PREFIX}/lib/X11/app-defaults/

.include <bsd.port.mk>
