aboutsummaryrefslogblamecommitdiff
path: root/x11-wm/pawm/Makefile
blob: eec99c8ec1e91f350b8c47969139fc320c0de2bd (plain) (tree)
























































                                                                          
# New ports collection makefile for:	pawm
# Date created:				2002-08-22
# Whom:					trevor
#
# $FreeBSD$
#

PORTNAME=	pawm
PORTVERSION=	1.9.3
CATEGORIES=	x11-wm
MASTER_SITES=	http://www.pleyades.net/pawm/files/

MAINTAINER=	trevor@FreeBSD.org
COMMENT=	The Puto Amo Window Manager

BUILD_DEPENDS=	bash:${PORTSDIR}/shells/bash2

DOCS=		AUTHORS Changelog GPL INSTALL README THANKS
PLIST=		${WRKDIR}/pkg-plist
USE_BZIP2=	yes
USE_GMAKE=	yes
USE_X_PREFIX=	yes

do-configure:
	cd ${WRKSRC} && \
		bash ./0 --prefix=${PREFIX} --datadir=${PREFIX}/share/pawm

pre-install:
	${ECHO_CMD} bin/pawm > ${PLIST}
	${ECHO_CMD} etc/pawm.conf >> ${PLIST}
	for ii in `${LS} ${WRKSRC}/data/icons`; do \
		${ECHO_CMD} share/pawm/icons/$$ii >> ${PLIST}; \
	done
	${ECHO_CMD} @dirrm share/pawm/icons >> ${PLIST}
	${ECHO_CMD} @dirrm share/pawm >> ${PLIST}
.if !defined(NOPORTDOCS)
	${ECHO_CMD} @dirrm share/doc/pawm >> ${PLIST}
.for ii in ${DOCS}
	${ECHO_CMD} share/doc/pawm/${ii} >> ${PLIST}
.endfor
.endif

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/bin/pawm ${PREFIX}/bin
	${INSTALL_DATA} ${WRKSRC}/conf/pawm.conf ${PREFIX}/etc/
	${MKDIR} ${PREFIX}/share/pawm/icons
	for ii in `${LS} ${WRKSRC}/data/icons/*`; do \
		${INSTALL_DATA} $$ii ${PREFIX}/share/pawm/icons ; \
	done
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
.for ii in ${DOCS}
	${INSTALL_DATA} ${WRKSRC}/${ii} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>