1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/x11-wm/fluxbox/Makefile

157 lines
3.7 KiB
Makefile
Raw Normal View History

# Created by: spn
# $FreeBSD$
PORTNAME= fluxbox
PORTVERSION= 1.3.7
CATEGORIES= x11-wm
MASTER_SITES= SF
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Small and fast window manager based on BlackBox
LICENSE= MIT
RUN_DEPENDS= xmessage:${PORTSDIR}/x11/xmessage
LIB_DEPENDS= libfribidi.so:${PORTSDIR}/converters/fribidi
USE_XORG= xextproto xft xpm xrandr
2013-09-02 15:26:23 +00:00
USES= gmake pkgconfig
WANT_GNOME= yes
GNU_CONFIGURE= yes
PORTDOCS= AUTHORS ChangeLog NEWS README TODO
2014-02-19 01:27:20 +00:00
DOCSVERSION= 20060629
OPTIONS_DEFINE= DOCS DOCHTML PDFDOCS DEBUG GNOME IMLIB2 XINERAMA \
XRENDER NLS SLIT SYSTRAY REMEMBER TOOLBAR
OPTIONS_DEFAULT= XRENDER SLIT SYSTRAY REMEMBER TOOLBAR
DOCHTML_DESC= Install html documentation
PDFDOCS_DESC= Build and install PDF documentation
REMEMBER_DESC= Enable remember feature
SLIT_DESC= Enable slit feature
SYSTRAY_DESC= Enable systray feature
TOOLBAR_DESC= Enable toolbar feature
XRENDER_DESC= Enable xrender support
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+= --enable-debug
.endif
.if ${PORT_OPTIONS:MDOCHTML}
# http://fluxbox.org/docbook/en/tarballs/
MASTER_SITES+= ${MASTER_SITE_LOCAL:S,%SUBDIR%,mezz,}:html \
http://people.freebsd.org/~mezz/distfiles/:html
DISTFILES+= fb-doc-mfhtml-${DOCSVERSION}.tgz:html
EXTRACT_ONLY+= fb-doc-mfhtml-${DOCSVERSION}.tgz
PLIST_SUB+= DOCHTML=""
.else
PLIST_SUB+= DOCHTML="@comment "
.endif
.if ${PORT_OPTIONS:MPDFDOCS}
# http://fluxbox.org/docbook/en/pdf/
MASTER_SITES+= ${MASTER_SITE_LOCAL:S,%SUBDIR%,mezz,}:pdf \
http://people.freebsd.org/~mezz/distfiles/:pdf
DISTFILES+= fluxbook-${DOCSVERSION}.pdf:pdf
PLIST_SUB+= DOCPDF=""
.else
PLIST_SUB+= DOCPDF="@comment "
.endif
.if ${PORT_OPTIONS:MIMLIB2}
LIB_DEPENDS+= libImlib2.so:${PORTSDIR}/graphics/imlib2
CONFIGURE_ARGS+= --enable-imlib2
.else
CONFIGURE_ARGS+= --disable-imlib2
.endif
.if ${PORT_OPTIONS:MXINERAMA} || defined(PACKAGE_BUILDING)
USE_XORG+= xinerama
CONFIGURE_ARGS+= --enable-xinerama
.endif
.if ${PORT_OPTIONS:MNLS}
USES+= iconv
CPPFLAGS+= -I${LOCALBASE}/include
Support LIBS like LDFLAGS. - Add LIBS="${LIBS}" to MAKE_ENV and CONFIGURE_ENV. - Add an option helper for LIBS. - Adjust all ports that already use LIBS. Also remove references to PTHREAD_CFLAGS and PTHREAD_LIBS while here. - Some ports did not support having a LIBS environment variable and required additional patches. Somewhat simplified a linker command line looks like: ${CC} ${src_LDFLAGS} ${LDFLAGS} ${src_LIBS} ${LIBS} where src_LDFLAGS and src_LIBS are controlled by upstream and LDFLAGS and LIBS can be controlled by us. If possible -L and -l flags need to be added to LIBS to make sure they appear after any -L and -l flags set by upstream. Many ports currently add -L${LOCALBASE}/lib to LDFLAGS but this may appear too early on the command line causing installed libraries to be linked in instead of freshly built ones. Additional changes: benchmarks/netio: Replace WITH_IPV6 with an IPV6 option. comms/gnokii: Replace some patches with USES=pathfix. Also remove -fPIC. graphics/gimageview: USES=libtool and install desktop file in DESKTOPDIR. graphics/visionworkbench: Remove FreeBSD 7 support. multimedia/libmovtar: New LIB_DEPENDS syntax. multimedia/opencinematools: Use standard do-build. net/siproxd: USES=libtool:keepla (port actually needs .la files for plugins) net-mgmt/nagios: Remove -fPIC. net-mgmt/nagios4: Remove -fPIC. print/cups-base: Only add -lssp_nonshared on i386 and OSVERSION < 1000036. security/p11-kit: Replace PTHREAD_LIBS in CONFIGURE_ENV with ac_cv_func_pthread_mutexattr_init=no in CONFIGURE_ARGS. This skips a test in configure that falsely detects pthread_mutexattr_init in our libc. sysutils/dar: Fix iconv detection. x11/rxvt-unicode: Remove -lstdc++ and patch configure to remove a FreeBSD hack and use $CXX as linker as on other platforms. PR: 190592 Exp-run by: antoine Approved by: portmgr (antoine)
2014-06-11 14:49:59 +00:00
LIBS+= -L${LOCALBASE}/lib ${ICONV_LIB}
CONFIGURE_ARGS+= --enable-nls
PLIST_SUB+= NLS=""
.else
CPPFLAGS+= -I${LOCALBASE}/include
Support LIBS like LDFLAGS. - Add LIBS="${LIBS}" to MAKE_ENV and CONFIGURE_ENV. - Add an option helper for LIBS. - Adjust all ports that already use LIBS. Also remove references to PTHREAD_CFLAGS and PTHREAD_LIBS while here. - Some ports did not support having a LIBS environment variable and required additional patches. Somewhat simplified a linker command line looks like: ${CC} ${src_LDFLAGS} ${LDFLAGS} ${src_LIBS} ${LIBS} where src_LDFLAGS and src_LIBS are controlled by upstream and LDFLAGS and LIBS can be controlled by us. If possible -L and -l flags need to be added to LIBS to make sure they appear after any -L and -l flags set by upstream. Many ports currently add -L${LOCALBASE}/lib to LDFLAGS but this may appear too early on the command line causing installed libraries to be linked in instead of freshly built ones. Additional changes: benchmarks/netio: Replace WITH_IPV6 with an IPV6 option. comms/gnokii: Replace some patches with USES=pathfix. Also remove -fPIC. graphics/gimageview: USES=libtool and install desktop file in DESKTOPDIR. graphics/visionworkbench: Remove FreeBSD 7 support. multimedia/libmovtar: New LIB_DEPENDS syntax. multimedia/opencinematools: Use standard do-build. net/siproxd: USES=libtool:keepla (port actually needs .la files for plugins) net-mgmt/nagios: Remove -fPIC. net-mgmt/nagios4: Remove -fPIC. print/cups-base: Only add -lssp_nonshared on i386 and OSVERSION < 1000036. security/p11-kit: Replace PTHREAD_LIBS in CONFIGURE_ENV with ac_cv_func_pthread_mutexattr_init=no in CONFIGURE_ARGS. This skips a test in configure that falsely detects pthread_mutexattr_init in our libc. sysutils/dar: Fix iconv detection. x11/rxvt-unicode: Remove -lstdc++ and patch configure to remove a FreeBSD hack and use $CXX as linker as on other platforms. PR: 190592 Exp-run by: antoine Approved by: portmgr (antoine)
2014-06-11 14:49:59 +00:00
LIBS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS+= --disable-nls
PLIST_SUB+= NLS="@comment "
.endif
.if ${PORT_OPTIONS:MREMEMBER}
CONFIGURE_ARGS+= --enable-remember
.else
CONFIGURE_ARGS+= --disable-remember
.endif
.if ${PORT_OPTIONS:MSLIT}
CONFIGURE_ARGS+= --enable-slit
.else
CONFIGURE_ARGS+= --disable-slit
.endif
.if ${PORT_OPTIONS:MSYSTRAY}
CONFIGURE_ARGS+= --enable-systray
.else
CONFIGURE_ARGS+= --disable-systray
.endif
.if ${PORT_OPTIONS:MTOOLBAR}
CONFIGURE_ARGS+= --enable-toolbar
.else
CONFIGURE_ARGS+= --disable-toolbar
.endif
.if ${PORT_OPTIONS:MXRENDER}
USE_XORG+= xrender
CONFIGURE_ARGS+= --enable-xrender
.else
CONFIGURE_ARGS+= --disable-xrender
.endif
.include <bsd.port.pre.mk>
.if ${HAVE_GNOME:Mlibgnome}!="" || defined(PACKAGE_BUILDING)
CONFIGURE_ARGS+= --enable-gnome
.else
CONFIGURE_ARGS+= --disable-gnome
.endif
post-patch:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
${WRKSRC}/util/fluxbox-generate_menu.in ${WRKSRC}/util/fbsetbg
.if ! ${PORT_OPTIONS:MNLS}
@${REINPLACE_CMD} -e 's|HAVE_ICONV=yes|HAVE_ICONV=no|g' \
${WRKSRC}/configure
.endif
post-install:
2014-02-19 01:27:20 +00:00
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.if ${PORT_OPTIONS:MPDFDOCS}
2014-02-19 01:27:20 +00:00
@${MKDIR} ${STAGEDIR}${DOCSDIR}/pdf
${INSTALL_DATA} ${DISTDIR}/fluxbook-${DOCSVERSION}.pdf \
2014-02-19 01:27:20 +00:00
${STAGEDIR}${DOCSDIR}/pdf/
.endif
.if ${PORT_OPTIONS:MDOCHTML}
2014-02-19 01:27:20 +00:00
@${MKDIR} ${STAGEDIR}${DOCSDIR}/html
. for h in *.css *.html
2014-02-19 01:27:20 +00:00
(cd ${WRKDIR}/html && ${INSTALL_DATA} ${h} ${STAGEDIR}${DOCSDIR}/html)
. endfor
.endif
.include <bsd.port.post.mk>