- Replace direct (via LIB_DEPENDS) libXft dependency with USE_XORG one

- Optimize away `.for .. .endfor' loop when installing PORTDOCS
- Wrap one overly long line, canonicalize Makefile header while here
- Handle license installation via LICENSE framework

Approved by:	maintainer (earlier version of patch)
This commit is contained in:
Alexey Dokuchaev 2011-03-18 02:54:26 +00:00
parent 80650a5d1e
commit 667f98d4f8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=271198

View file

@ -1,41 +1,40 @@
# New ports collection makefile for: Blackbox
# Date created: June 15, 1998
# Whom: Brian Handy <handy@physics.montana.edu>
# Date created: June 15, 1998
# Whom: Brian Handy <handy@physics.montana.edu>
#
# $FreeBSD$
#
PORTNAME= blackbox
PORTVERSION= 0.70.1
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= x11-wm
MASTER_SITES= SF/${PORTNAME}wm/${PORTNAME}wm/Blackbox%20${PORTVERSION}
MAINTAINER= A.J.Caines@halplant.com
COMMENT= A small and fast window manager for X11R6
LIB_DEPENDS= Xft.2:${PORTSDIR}/x11-fonts/libXft
LICENSE= MIT
CONFLICTS= boxtools-*
PORTDOCS= AUTHORS COMPLIANCE ChangeLog LICENSE README RELNOTES TODO
PORTDOCS= AUTHORS COMPLIANCE ChangeLog README RELNOTES TODO
MAN1= blackbox.1
USE_GNOME= gnomehack pkgconfig
USE_XORG= x11
GNU_CONFIGURE= yes
USE_ICONV= yes
USE_GNOME= gnomehack pkgconfig
USE_XORG= x11 xft
post-patch:
@${REINPLACE_CMD} -e 's#-pedantic##' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's# bsetroot.1 bsetbg.1##' ${WRKSRC}/doc/Makefile.in
@${REINPLACE_CMD} -e 's# bsetroot.1 bsetbg.1##' \
${WRKSRC}/doc/Makefile.in
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for doc in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}/
.endfor
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S#^#${WRKSRC}/#} ${DOCSDIR}
.endif
.include <bsd.port.mk>