1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00
freebsd-ports/irc/minbif/Makefile
Niclas Zeising 39fc32e828 The FreeBSD x11@ and graphics team proudly presents
a zeising, kwm production, with help from dumbbell, bdrewery:

NEW XORG ON FREEBSD 9-STABLE AND 10-STABLE

This update switches over to use the new xorg stack by default on FreeBSD 9
and 10 stable, on osversions where vt(9) is available.
It is still possible to use the old stack by specifying WITHOUT_NEW_XORG in
/etc/make.conf .
FreeBSD 8-STABLE and released versions of FreeBSD still use
the old version.
A package repository with binary packages for new xorg will
be available soon.

This patch also contains updates of libxcb and related ports, pixman, as well
as some drivers and utilities.

Bump portrevisions for xf86-* ports, as well as virtualbox-ose-additions due
to xserver version change.

Apart from these updates, the way shared libraries are handled has been
changed for all xorg ports, as well as libxml2 and freetype, which means
ltverhack is gone and as a consequence shared libraries have been bumped.
The plan is that this change will make library bumps less likely in the
future.
All affected ports have had their portrevisions bumped as a consequence of
this.

Fix some issues where WITH_NEW_XORG weren't detected properly on CURRENT.

Update instructions, hardware support, and more notes can be found on
https://wiki.freebsd.org/Graphics

Thanks to:	all testers, bdrewery and the FreeBSD x11@ team
exp-run by:	bdrewery [1]
PR:		ports/187602 [1]
Approved by:	portmgr (bdrewery), core (jhb)
2014-04-16 18:28:47 +00:00

108 lines
3.0 KiB
Makefile

# Created by: Frank Steinborn <steinex@nognu.de>
# $FreeBSD$
PORTNAME= minbif
PORTVERSION= 1.0.5
PORTREVISION= 2
CATEGORIES= irc net-im
MASTER_SITES= https://symlink.me/attachments/download/148/
MAINTAINER= ports@FreeBSD.org
COMMENT= IRC to instant messaging gateway
LICENSE= GPLv2
LIB_DEPENDS= libpurple.so:${PORTSDIR}/net-im/libpurple
# right now PLUGINS installs prpl-coincoin and prpl-gayattitude
OPTIONS_DEFINE= CACA GNUTLS VIDEO PLUGINS DOCS
OPTIONS_DEFAULT= CACA
CACA_DESC= Buddy icon display using libcaca
VIDEO_DESC= Webcam display using libcaca (depends on CACA)
PLUGINS_DESC= Compile additional libpurple-plugins
USE_RC_SUBR= minbif
USES= cmake pkgconfig
USE_GNOME= glib20
USE_EFL= imlib2
CMAKE_ARGS= -DENABLE_IMLIB:BOOL=ON
CFLAGS+= -DX_DISPLAY_MISSING
LDFLAGS+= -pthread
USERS= minbif
GROUPS= minbif
SUB_FILES= pkg-message
SUB_LIST= USERS="${USERS}"
PORTDOCS= *
PLIST_FILES= bin/minbif %%ETCDIR%%/minbif.conf-dist \
%%ETCDIR%%/minbif.motd-dist man/man8/minbif.8.gz
PLIST_DIRS= %%ETCDIR%%
CACA_LIB_DEPENDS= libcaca.so:${PORTSDIR}/graphics/libcaca
CACA_CMAKE_ON= -DENABLE_CACA:BOOL=ON
CACA_CMAKE_OFF= -DENABLE_CACA:BOOL=OFF
GNUTLS_LIB_DEPENDS= libgnutls.so:${PORTSDIR}/security/gnutls
GNUTLS_CMAKE_ON= -DENABLE_TLS:BOOL=ON
GNUTLS_CMAKE_OFF= -DENABLE_TLS:BOOL=OFF
PLUGINS_USE= GNOME=libxml2
PLUGINS_CMAKE_ON= -DENABLE_PLUGIN:BOOL=ON
PLUGINS_CMAKE_OFF= -DENABLE_PLUGIN:BOOL=OFF
PLUGINS_PLIST_FILES= lib/purple-2/libcoincoin.so \
lib/purple-2/libgayattitude.so
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MVIDEO} && !empty(PORT_OPTIONS:MCACA)
USE_GSTREAMER+= core good
LIB_DEPENDS+= libgstfarsight-0.10.so:${PORTSDIR}/net-im/farsight2
CMAKE_ARGS+= -DENABLE_VIDEO:BOOL=ON
.else
CMAKE_ARGS+= -DENABLE_VIDEO:BOOL=OFF
.endif
.if ${PORT_OPTIONS:MVIDEO} && empty(PORT_OPTIONS:MCACA)
IGNORE= if you want to enable webcam support, you must \
also enable CACA.
.endif
post-patch:
@${REINPLACE_CMD} -e \
's|"-lpthread -lstdc++"||' ${WRKSRC}/src/CMakeLists.txt
@${REINPLACE_CMD} -e \
'/pam_misc.h/d' ${WRKSRC}/src/im/auth_pam.h
post-build:
@${LN} -sf minbif.conf ${WRKSRC}/minbif.conf-dist
@${LN} -sf minbif.motd ${WRKSRC}/minbif.motd-dist
do-install:
(cd ${WRKSRC}/src && ${INSTALL_PROGRAM} ${PORTNAME} \
${STAGEDIR}${PREFIX}/bin)
(cd ${WRKSRC}/man && ${INSTALL_MAN} minbif.8 \
${STAGEDIR}${MAN8PREFIX}/man/man8)
@${MKDIR} ${STAGEDIR}${ETCDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} minbif.conf-dist \
${STAGEDIR}${ETCDIR})
(cd ${WRKSRC} && ${INSTALL_DATA} minbif.motd-dist \
${STAGEDIR}${ETCDIR})
.if ${PORT_OPTIONS:MPLUGINS}
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/purple-2
(cd ${WRKSRC}/plugins/coincoin && ${INSTALL_LIB} libcoincoin.so \
${STAGEDIR}${PREFIX}/lib/purple-2)
(cd ${WRKSRC}/plugins/gayattitude && ${INSTALL_LIB} libgayattitude.so \
${STAGEDIR}${PREFIX}/lib/purple-2)
.endif
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} README \
${STAGEDIR}${DOCSDIR})
(cd ${WRKSRC}/doc && ${INSTALL_DATA} minbif.xinetd \
${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>