Lines 1-51
Link Here
|
1 |
# New ports collection makefile for: minbif |
1 |
# Created by: Frank Steinborn <steinex@nognu.de> |
2 |
# Date created: 2010-06-03 |
|
|
3 |
# Whom: Frank Steinborn <steinex@nognu.de> |
4 |
# |
5 |
# $FreeBSD: head/irc/minbif/Makefile 300896 2012-07-14 13:54:48Z beat $ |
2 |
# $FreeBSD: head/irc/minbif/Makefile 300896 2012-07-14 13:54:48Z beat $ |
6 |
# |
|
|
7 |
|
3 |
|
8 |
PORTNAME= minbif |
4 |
PORTNAME= minbif |
9 |
PORTVERSION= 1.0.3 |
5 |
PORTVERSION= 1.0.5 |
10 |
PORTREVISION= 5 |
|
|
11 |
CATEGORIES= irc net-im |
6 |
CATEGORIES= irc net-im |
12 |
MASTER_SITES= http://symlink.me/attachments/download/50/ |
7 |
MASTER_SITES= https://symlink.me/attachments/download/148/ |
13 |
|
8 |
|
14 |
MAINTAINER= ports@FreeBSD.org |
9 |
MAINTAINER= ports@FreeBSD.org |
15 |
COMMENT= An IRC to instant messaging gateway |
10 |
COMMENT= An IRC to instant messaging gateway |
16 |
|
11 |
|
17 |
LIB_DEPENDS= purple.10:${PORTSDIR}/net-im/libpurple |
12 |
LICENSE= GPLv2 |
|
|
13 |
|
14 |
LIB_DEPENDS= purple:${PORTSDIR}/net-im/libpurple |
15 |
|
16 |
# right now PLUGINS installs prpl-coincoin and prpl-gayattitude |
17 |
OPTIONS_DEFINE= CACA GNUTLS VIDEO PLUGINS DOCS |
18 |
OPTIONS_DEFAULT= CACA |
19 |
CACA_DESC= Buddy icon display using libcaca |
20 |
VIDEO_DESC= Webcam display using libcaca (depends on CACA) |
21 |
PLUGINS_DESC= Compile additional libpurple-plugins |
22 |
|
23 |
USE_RC_SUBR= minbif |
24 |
USE_GNOME= glib20 |
25 |
USE_EFL= imlib2 |
26 |
USE_CMAKE= yes |
27 |
CMAKE_ARGS= -DENABLE_IMLIB:BOOL=ON |
28 |
MAKE_JOBS_SAFE= yes |
29 |
|
30 |
CFLAGS+= ${PTHREAD_CFLAGS} -DX_DISPLAY_MISSING |
31 |
LDFLAGS+= ${PTHREAD_LIBS} |
18 |
|
32 |
|
19 |
USERS= minbif |
33 |
USERS= minbif |
20 |
GROUPS= minbif |
34 |
GROUPS= minbif |
21 |
|
35 |
|
22 |
SUB_FILES= pkg-message |
36 |
SUB_FILES= pkg-message |
23 |
MAN8= minbif.8 |
37 |
SUB_LIST= USERS="${USERS}" |
24 |
|
38 |
|
|
|
39 |
MAN8= minbif.8 |
40 |
PORTDOCS= * |
25 |
PLIST_FILES= bin/minbif %%ETCDIR%%/minbif.conf-dist \ |
41 |
PLIST_FILES= bin/minbif %%ETCDIR%%/minbif.conf-dist \ |
26 |
%%ETCDIR%%/minbif.motd-dist |
42 |
%%ETCDIR%%/minbif.motd-dist |
27 |
PLIST_DIRS= %%ETCDIR%% |
43 |
PLIST_DIRS= %%ETCDIR%% |
28 |
|
44 |
|
29 |
USE_EFL= imlib2 |
|
|
30 |
USE_CMAKE= yes |
31 |
CMAKE_ARGS= -DENABLE_IMLIB:BOOL=ON -DCMAKE_CXX_FLAGS=-DX_DISPLAY_MISSING |
32 |
USE_RC_SUBR= minbif |
33 |
PKGMESSAGE= ${WRKDIR}/pkg-message |
34 |
PORTDOCS= * |
35 |
|
36 |
# right now WITH_PLUGINS installs prpl-coincoin and prpl-gayattitude |
37 |
OPTIONS_DEFINE= CACA GNUTLS VIDEO PLUGINS DOCS |
38 |
OPTIONS_DEFAULT= CACA |
39 |
CACA_DESC= Buddy icon display using libcaca |
40 |
VIDEO_DESC= Webcam display using libcaca (depends on CACA) |
41 |
PLUGINS_DESC= Compile additional libpurple-plugins |
42 |
|
43 |
SUB_LIST+= USERS=${USERS} |
44 |
|
45 |
.include <bsd.port.options.mk> |
45 |
.include <bsd.port.options.mk> |
46 |
|
46 |
|
47 |
.if ${PORT_OPTIONS:MCACA} |
47 |
.if ${PORT_OPTIONS:MCACA} |
48 |
LIB_DEPENDS+= caca.0:${PORTSDIR}/graphics/libcaca |
48 |
LIB_DEPENDS+= caca:${PORTSDIR}/graphics/libcaca |
49 |
CMAKE_ARGS+= -DENABLE_CACA:BOOL=ON |
49 |
CMAKE_ARGS+= -DENABLE_CACA:BOOL=ON |
50 |
.else |
50 |
.else |
51 |
CMAKE_ARGS+= -DENABLE_CACA:BOOL=OFF |
51 |
CMAKE_ARGS+= -DENABLE_CACA:BOOL=OFF |
Lines 53-59
Link Here
|
53 |
|
53 |
|
54 |
.if ${PORT_OPTIONS:MVIDEO} && !empty(PORT_OPTIONS:MCACA) |
54 |
.if ${PORT_OPTIONS:MVIDEO} && !empty(PORT_OPTIONS:MCACA) |
55 |
USE_GSTREAMER+= core good |
55 |
USE_GSTREAMER+= core good |
56 |
LIB_DEPENDS+= gstfarsight-0.10.0:${PORTSDIR}/net-im/farsight2 |
56 |
LIB_DEPENDS+= gstfarsight-0.10:${PORTSDIR}/net-im/farsight2 |
57 |
CMAKE_ARGS+= -DENABLE_VIDEO:BOOL=ON |
57 |
CMAKE_ARGS+= -DENABLE_VIDEO:BOOL=ON |
58 |
.else |
58 |
.else |
59 |
CMAKE_ARGS+= -DENABLE_VIDEO:BOOL=OFF |
59 |
CMAKE_ARGS+= -DENABLE_VIDEO:BOOL=OFF |
Lines 65-70
Link Here
|
65 |
.endif |
65 |
.endif |
66 |
|
66 |
|
67 |
.if ${PORT_OPTIONS:MPLUGINS} |
67 |
.if ${PORT_OPTIONS:MPLUGINS} |
|
|
68 |
USE_GNOME+= libxml2 |
68 |
CMAKE_ARGS+= -DENABLE_PLUGIN:BOOL=ON |
69 |
CMAKE_ARGS+= -DENABLE_PLUGIN:BOOL=ON |
69 |
PLIST_FILES+= lib/purple-2/libcoincoin.so \ |
70 |
PLIST_FILES+= lib/purple-2/libcoincoin.so \ |
70 |
lib/purple-2/libgayattitude.so |
71 |
lib/purple-2/libgayattitude.so |
Lines 73-82
Link Here
|
73 |
.endif |
74 |
.endif |
74 |
|
75 |
|
75 |
.if ${PORT_OPTIONS:MGNUTLS} |
76 |
.if ${PORT_OPTIONS:MGNUTLS} |
76 |
LIB_DEPENDS+= gnutls.47:${PORTSDIR}/security/gnutls |
77 |
LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls |
77 |
CMAKE_ARGS+= -DENABLE_GNUTLS:BOOL=ON |
78 |
CMAKE_ARGS+= -DENABLE_TLS:BOOL=ON |
|
|
79 |
.else |
80 |
CMAKE_ARGS+= -DENABLE_TLS:BOOL=OFF |
78 |
.endif |
81 |
.endif |
79 |
|
82 |
|
|
|
83 |
post-patch: |
84 |
@${REINPLACE_CMD} -e \ |
85 |
's|"-lpthread -lstdc++"||' ${WRKSRC}/src/CMakeLists.txt |
86 |
@${REINPLACE_CMD} -e \ |
87 |
'/pam_misc.h/d' ${WRKSRC}/src/im/auth_pam.h |
88 |
|
80 |
do-install: |
89 |
do-install: |
81 |
${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${PREFIX}/bin |
90 |
${INSTALL_PROGRAM} ${WRKSRC}/src/${PORTNAME} ${PREFIX}/bin |
82 |
${INSTALL_MAN} ${WRKSRC}/man/minbif.8 ${MAN8PREFIX}/man/man8 |
91 |
${INSTALL_MAN} ${WRKSRC}/man/minbif.8 ${MAN8PREFIX}/man/man8 |
Lines 90-96
Link Here
|
90 |
.if ${PORT_OPTIONS:MDOCS} |
99 |
.if ${PORT_OPTIONS:MDOCS} |
91 |
${MKDIR} ${DOCSDIR} |
100 |
${MKDIR} ${DOCSDIR} |
92 |
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} |
101 |
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} |
93 |
${INSTALL_DATA} ${WRKSRC}/COPYING ${DOCSDIR} |
|
|
94 |
${INSTALL_DATA} ${WRKSRC}/doc/minbif.xinetd ${DOCSDIR} |
102 |
${INSTALL_DATA} ${WRKSRC}/doc/minbif.xinetd ${DOCSDIR} |
95 |
.endif |
103 |
.endif |
96 |
@${CAT} ${PKGMESSAGE} |
104 |
@${CAT} ${PKGMESSAGE} |