1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/irc/minbif/Makefile
Alexey Dokuchaev c0d6c179dd - Unbreak the build against new Imlib2: previous versions (e.g. 1.4.6) had
two typedefs (apparently, the latter was deprecated and finally removed
  in 1.4.7):

    typedef enum _imlib_load_error Imlib_Load_Error;
    typedef enum _imlib_load_error ImlibLoadError;

- Instead of handling of VIDEO and CACA options interdependency manually,
  define VIDEO_IMPLIES=CACA (available since r394573) and thus consummate
  conversion to option helpers
- Install sample configuration files as @sample in pkg-plist (and convert
  PLIST_FILES to separate file due to better readability thereof)
- Restore sane installation routine broken in r336927 and install couple
  of extra documentation files while here
- Augment port description text and update WWW line to avoid redirect
2016-01-25 15:13:23 +00:00

85 lines
2.4 KiB
Makefile

# Created by: Frank Steinborn <steinex@nognu.de>
# $FreeBSD$
PORTNAME= minbif
PORTVERSION= 1.0.5
PORTREVISION= 8
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
USES= cmake pkgconfig
USE_GNOME= glib20
USE_RC_SUBR= ${PORTNAME}
CFLAGS+= -DX_DISPLAY_MISSING
LDFLAGS+= -pthread
USERS= minbif
GROUPS= minbif
SUB_FILES= pkg-message
SUB_LIST= USERS="${USERS}"
OPTIONS_DEFINE= CACA GNUTLS VIDEO PLUGINS DOCS
OPTIONS_DEFAULT= CACA
VIDEO_IMPLIES= CACA
CACA_DESC= Buddy icon display using libcaca
VIDEO_DESC= Webcam display using libcaca (implies CACA)
PLUGINS_DESC= Compile additional libpurple-plugins
CACA_LIB_DEPENDS= libcaca.so:${PORTSDIR}/graphics/libcaca \
libImlib2.so:${PORTSDIR}/graphics/imlib2
CACA_CMAKE_ON= -DENABLE_CACA:BOOL=ON -DENABLE_IMLIB:BOOL=ON
CACA_CMAKE_OFF= -DENABLE_CACA:BOOL=OFF -DENABLE_IMLIB: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
VIDEO_USE= GSTREAMER=core,good
VIDEO_CMAKE_ON= -DENABLE_VIDEO:BOOL=ON
VIDEO_CMAKE_OFF= -DENABLE_VIDEO:BOOL=OFF
VIDEO_LIB_DEPENDS= libgstfarsight-0.10.so:${PORTSDIR}/net-im/farsight2
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
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/man/minbif.8 ${STAGEDIR}${MANPREFIX}/man/man8
@${MKDIR} ${STAGEDIR}${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/minbif.conf \
${STAGEDIR}${ETCDIR}/minbif.conf.sample
${INSTALL_DATA} ${WRKSRC}/minbif.motd \
${STAGEDIR}${ETCDIR}/minbif.motd.sample
do-install-PLUGINS-on:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/purple-2
${INSTALL_LIB} ${WRKSRC}/plugins/coincoin/libcoincoin.so \
${WRKSRC}/plugins/gayattitude/libgayattitude.so \
${STAGEDIR}${PREFIX}/lib/purple-2
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in AUTHORS ChangeLog README doc/minbif.xinetd
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
.include <bsd.port.mk>