9 DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
10 EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
12 MAINTAINER= jgh@FreeBSD.org
13 COMMENT= Small and fast window manager based on BlackBox
16 LICENSE_FILE= ${WRKSRC}/COPYING
18 RUN_DEPENDS= xmessage:x11/xmessage
19 LIB_DEPENDS= libfribidi.so:converters/fribidi \
20 libfreetype.so:print/freetype2 \
21 libfontconfig.so:x11-fonts/fontconfig
23 USE_XORG= x11 xext xextproto xft xpm xrandr
32 OPTIONS_DEFINE= DOCS DOCHTML PDFDOCS DEBUG IMLIB2 XINERAMA \
33 XRENDER NLS SLIT SYSTRAY REMEMBER TOOLBAR
34 OPTIONS_DEFAULT= XRENDER SLIT SYSTRAY REMEMBER TOOLBAR XINERAMA
35 DOCHTML_DESC= Install html documentation
36 PDFDOCS_DESC= Build and install PDF documentation
37 REMEMBER_DESC= Enable remember feature
38 SLIT_DESC= Enable slit feature
39 SYSTRAY_DESC= Enable systray feature
40 TOOLBAR_DESC= Enable toolbar feature
41 XRENDER_DESC= Enable xrender support
43 DEBUG_CONFIGURE_ON= --enable-debug
44 IMLIB2_CONFIGURE_ENABLE= imlib2
45 IMLIB2_LIB_DEPENDS= libImlib2.so:graphics/imlib2
46 NLS_CONFIGURE_ENABLE= nls
48 NLS_VARS= CPPFLAGS+="-I${LOCALBASE}/include" LIBS+="-L${LOCALBASE}/lib ${ICONV_LIB}"
49 NLS_VARS_OFF= CPPFLAGS+="-I${LOCALBASE}/include" LIBS+="-L${LOCALBASE}/lib"
50 REMEMBER_CONFIGURE_ENABLE= remember
51 SLIT_CONFIGURE_ENABLE= slit
52 SYSTRAY_CONFIGURE_ENABLE= systray
53 TOOLBAR_CONFIGURE_ENABLE= toolbar
54 XINERAMA_CONFIGURE_ENABLE= xinerama
55 XINERAMA_USE= XORG=xinerama
56 XRENDER_USE= XORG=xrender
57 XRENDER_CONFIGURE_ENABLE= xrender
59 # http://fluxbox.org/docbook/en/tarballs/
60 DOCHTML_MASTER_SITES= LOCAL/mezz:html \
61 http://people.freebsd.org/~mezz/distfiles/:html
62 DOCHTML_DISTFILES= fb-doc-mfhtml-${DOCSVERSION}.tgz:html
63 DOCHTML_EXTRACT_ONLY= fb-doc-mfhtml-${DOCSVERSION}.tgz
64 # http://fluxbox.org/docbook/en/pdf/
65 PDFDOCS_MASTER_SITES= LOCAL/mezz:pdf \
66 http://people.freebsd.org/~mezz/distfiles/:pdf
67 PDFDOCS_DISTFILES= fluxbook-${DOCSVERSION}.pdf:pdf
70 @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
71 ${WRKSRC}/util/fluxbox-generate_menu.in ${WRKSRC}/util/fbsetbg
74 @${REINPLACE_CMD} -e 's|iconv_works=yes|iconv_works=no|' \
78 (cd ${WRKSRC} && ${COPYTREE_SHARE} "AUTHORS ChangeLog NEWS README TODO" \
79 ${STAGEDIR}${DOCSDIR})
81 post-install-PDFDOCS-on:
82 @${MKDIR} ${STAGEDIR}${DOCSDIR}/pdf
83 ${INSTALL_DATA} ${DISTDIR}/fluxbook-${DOCSVERSION}.pdf \
84 ${STAGEDIR}${DOCSDIR}/pdf/
86 post-install-DOCHTML-on:
87 @${MKDIR} ${STAGEDIR}${DOCSDIR}/html
88 . for h in *.css *.html
89 (cd ${WRKDIR}/html && ${INSTALL_DATA} ${h} ${STAGEDIR}${DOCSDIR}/html)
92 .include <bsd.port.mk>