78d993e63e
PR: 36899 Submitted by: KATO Tsuguru <tkato@protomail.com>
87 lines
2.0 KiB
Makefile
87 lines
2.0 KiB
Makefile
# New ports collection makefile for: blwm
|
|
# Date created: 2002-03-15
|
|
# Whom: trevor
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= blwm
|
|
PORTVERSION= 1.0.2
|
|
CATEGORIES= x11-wm
|
|
MASTER_SITES= http://labdid.if.usp.br/~blanes/arquivos/
|
|
|
|
MAINTAINER= trevor@FreeBSD.org
|
|
|
|
RUN_DEPENDS= xsetbg:${PORTSDIR}/x11/xloadimage
|
|
|
|
USE_AUTOCONF= yes
|
|
USE_AUTOMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
MAN1= blwm.1x
|
|
PLIST= ${WRKDIR}/pkg-plist
|
|
USE_GMAKE= yes
|
|
USE_X_PREFIX= yes
|
|
USE_XPM= yes
|
|
DOCS= CHANGELOG INSTALL GPL LEIAME
|
|
CONFIGURE_ARGS= --prefix=${PREFIX}
|
|
|
|
do-patch:
|
|
${PERL} -pi -e "s:wmsetbg:xsetbg:g ; \
|
|
s:/usr/local/lib/blwm:${PREFIX}/lib/blwm:g" \
|
|
${WRKSRC}/rc/*
|
|
|
|
pre-configure:
|
|
cd ${WRKSRC} && \
|
|
${ACLOCAL} && \
|
|
${AUTOHEADER} && \
|
|
${AUTOCONF} && \
|
|
${AUTOMAKE}
|
|
|
|
pre-install:
|
|
${ECHO_CMD} bin/blwm > ${PLIST}
|
|
.if !defined(NOPORTDOCS)
|
|
.for i in ${DOCS}
|
|
${ECHO_CMD} share/doc/blwm/${i} >> ${PLIST}
|
|
.endfor
|
|
${ECHO_CMD} @dirrm share/doc/blwm >> ${PLIST}
|
|
.endif
|
|
for i in `${LS} ${WRKSRC}/images | ${GREP} xpm`; do \
|
|
${ECHO_CMD} lib/blwm/images/$$i >> ${PLIST}; \
|
|
done
|
|
for i in `${LS} ${WRKSRC}/themes | ${GREP} -v Makefile`; do \
|
|
${ECHO_CMD} lib/blwm/themes/$$i >> ${PLIST}; \
|
|
done
|
|
for i in `${LS} ${WRKSRC}/rc | ${GREP} -v Makefile`; do \
|
|
${ECHO_CMD} lib/blwm/conf/$$i >> ${PLIST}; \
|
|
done
|
|
.for i in conf images themes
|
|
${ECHO_CMD} @dirrm lib/blwm/${i} >> ${PLIST}
|
|
.endfor
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/blwm ${PREFIX}/bin
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
.for i in ${DOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/${i} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
${MKDIR} ${PREFIX}/lib/blwm/conf \
|
|
${PREFIX}/lib/blwm/images \
|
|
${PREFIX}/lib/blwm/themes
|
|
${INSTALL_DATA} ${WRKSRC}/images/*xpm ${PREFIX}/lib/blwm/images
|
|
for i in `${LS} ${WRKSRC}/rc/* | ${GREP} -v Makefile`; do \
|
|
${INSTALL_DATA} $$i ${PREFIX}/lib/blwm/conf ; \
|
|
done
|
|
for i in `${LS} ${WRKSRC}/themes/* | ${GREP} -v Makefile`; do \
|
|
${INSTALL_DATA} $$i ${PREFIX}/lib/blwm/themes ; \
|
|
done
|
|
${INSTALL_MAN} ${WRKSRC}/man/blwm.1x ${MANPREFIX}/man/man1/
|
|
|
|
.include <bsd.port.mk>
|
|
# $FreeBSD$
|
|
|
|
SUBDIR += blwm
|
|
|
|
.include <bsd.port.subdir.mk>
|