1 |
# $MidnightBSD$ |
2 |
|
3 |
PORTNAME= blackbox |
4 |
PORTVERSION= 0.70.1 |
5 |
PORTREVISION= 5 |
6 |
CATEGORIES= x11-wm |
7 |
MASTER_SITES= SF/${PORTNAME}wm/${PORTNAME}wm/Blackbox%20${PORTVERSION} |
8 |
|
9 |
MAINTAINER= ports@MidnightBSD.org |
10 |
COMMENT= Small and fast window manager for X11R6 |
11 |
|
12 |
LICENSE= mit |
13 |
|
14 |
GNU_CONFIGURE= yes |
15 |
USES= pathfix pkgconfig iconv |
16 |
USE_XORG= x11 xft |
17 |
LDFLAGS+= ${ICONV_LIB} |
18 |
|
19 |
PORTDOCS= README.bbtools README.bsetbg |
20 |
|
21 |
OPTIONS_DEFINE= TOOLS_ONLY |
22 |
TOOLS_ONLY_DESC= Do not install window manager, only tools |
23 |
|
24 |
.include <bsd.mport.options.mk> |
25 |
|
26 |
.if ${PORT_OPTIONS:MTOOLS_ONLY} |
27 |
PKGNAMESUFFIX= -tools |
28 |
COMMENT+= (tools only) |
29 |
MAKE_ARGS= SUBDIRS="doc lib util" bin_PROGRAMS=bsetroot |
30 |
INSTALL_TARGET= -C util install # XXX dirty hack :( |
31 |
.else |
32 |
PORTDOCS+= AUTHORS COMPLIANCE ChangeLog README RELNOTES TODO |
33 |
.endif |
34 |
|
35 |
post-patch: |
36 |
# Fix the build with libX11 > 1.40 |
37 |
@${REINPLACE_CMD} -e 's/_XUTIL_H_/_X11&/' ${WRKSRC}/lib/Util.hh |
38 |
|
39 |
post-install: |
40 |
.if ${PORT_OPTIONS:MTOOLS_ONLY} |
41 |
@${REINPLACE_CMD} -E '/[^s]\/blackbox|bstyleconvert|lib|include/d' \ |
42 |
${TMPPLIST} |
43 |
${INSTALL_MAN} ${MAN1:S#^#${WRKSRC}/doc/#} ${MANPREFIX}/man/man1 |
44 |
.endif |
45 |
.if !defined(NOPORTDOCS) |
46 |
@${MKDIR} ${DOCSDIR} |
47 |
${INSTALL_DATA} ${PORTDOCS:S#^#${WRKSRC}/#} ${DOCSDIR} |
48 |
.endif |
49 |
|
50 |
.include <bsd.port.mk> |