blob: b6e1001bb9163c8d82e709e63c0ce0e024095755 (
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
|
# $NetBSD: Makefile,v 1.23 2014/05/17 16:10:41 wiz Exp $
#
DISTNAME= centerim-4.22.9
PKGREVISION= 12
CATEGORIES= chat
MASTER_SITES= http://www.centerim.org/download/releases/ \
http://transacid.de/centerim/releases/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.centerim.org/
COMMENT= Instant Messenger interface supporting many protocols
LICENSE= gnu-gpl-v2
USE_PKGLOCALEDIR= yes
USE_TOOLS+= gmake perl:run
USE_LANGUAGES= c c++
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-ssl --with-openssl=${SSLBASE:Q}
LIBS+= ${LDFLAGS}
REPLACE_PERL= misc/cimconv
REPLACE_PYTHON+= misc/CenterIMLog2HTML.py
INCOMPAT_CURSES+= NetBSD-1.[45]*-* NetBSD-1.6-* NetBSD-1.6.[1-9]-*
INCOMPAT_CURSES+= NetBSD-1.6_*-* NetBSD-1.6.[1-9]_*-* NetBSD-1.6[A-T]-*
INCOMPAT_CURSES+= NetBSD-2.*-* NetBSD-3.*-* # see PR 29060
INCOMPAT_CURSES+= NetBSD-4.*-* NetBSD-5.*-*
.include "options.mk"
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD"
CPPFLAGS+= -DAUDIO_PLAYER="\"/usr/bin/audioplay\""
.else
DEPENDS+= sox>=12.17.4:../../audio/sox
EVAL_PREFIX+= SOX_PREFIX=sox
CPPFLAGS+= -DAUDIO_PLAYER="\"${SOX_PREFIX}/bin/play\""
.endif
.if !empty(MACHINE_ARCH:Msparc64)
GCC_REQD+= 3.0 # see PR 29185
.endif
.include "../../lang/python/application.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/ncurses/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../www/curl/buildlink3.mk"
.include "../../mk/jpeg.buildlink3.mk"
.if defined(BUILDLINK_LIBICONV_LDADD) && !empty(BUILDLINK_LIBICONV_LDADD)
#
# libiconv depends on configure scripts to include <iconv.h> before
# trying to link against -liconv. Unfortunately, centericq's script
# doesn't do this, so fake it.
#
CONFIGURE_ENV+= ac_cv_lib_iconv_iconv=yes
.endif
post-install:
${INSTALL_MAN} ${WRKSRC}/centerim.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/
.include "../../mk/bsd.pkg.mk"
.if ${MACHINE_ARCH} == "alpha"
# avoid toolchain bugs
CFLAGS:= ${CFLAGS:C/-O[0-9]*//g}
.endif
|