blob: 73ab75abe3bbae7b8fa06361fb57c58e8111525e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
# Created by: Frank Steinborn <steinex@nognu.de>
# $FreeBSD$
PORTNAME= minbif
PORTVERSION= 1.0.5
PORTREVISION= 9
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>
|