| @@ -1,72 +1,72 @@ | | | @@ -1,72 +1,72 @@ |
1 | # $NetBSD: Makefile,v 1.25 2014/11/21 12:02:02 mef Exp $ | | 1 | # $NetBSD: Makefile,v 1.26 2014/11/24 00:08:22 mef Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= centerim-4.22.10 | | 4 | DISTNAME= centerim-4.22.10 |
5 | CATEGORIES= chat | | 5 | CATEGORIES= chat |
6 | MASTER_SITES= http://www.centerim.org/download/releases/ \ | | 6 | MASTER_SITES= http://www.centerim.org/download/releases/ \ |
7 | http://transacid.de/centerim/releases/ | | 7 | http://transacid.de/centerim/releases/ |
8 | | | 8 | |
9 | MAINTAINER= pkgsrc-users@NetBSD.org | | 9 | MAINTAINER= pkgsrc-users@NetBSD.org |
10 | HOMEPAGE= http://www.centerim.org/ | | 10 | HOMEPAGE= http://www.centerim.org/ |
11 | COMMENT= Instant Messenger interface supporting many protocols | | 11 | COMMENT= Instant Messenger interface supporting many protocols |
12 | LICENSE= gnu-gpl-v2 | | 12 | LICENSE= gnu-gpl-v2 |
13 | | | 13 | |
14 | USE_PKGLOCALEDIR= yes | | 14 | USE_PKGLOCALEDIR= yes |
15 | USE_TOOLS+= gmake | | 15 | USE_TOOLS+= gmake perl:run |
16 | USE_LANGUAGES= c c++ | | 16 | USE_LANGUAGES= c c++ |
17 | | | 17 | |
18 | GNU_CONFIGURE= yes | | 18 | GNU_CONFIGURE= yes |
19 | CONFIGURE_ARGS+= --with-ssl --with-openssl=${SSLBASE:Q} | | 19 | CONFIGURE_ARGS+= --with-ssl --with-openssl=${SSLBASE:Q} |
20 | LIBS+= ${LDFLAGS} | | 20 | LIBS+= ${LDFLAGS} |
21 | | | 21 | |
22 | REPLACE_PERL= misc/cimextracthistory.pl | | 22 | REPLACE_PERL= misc/cimextracthistory.pl |
23 | REPLACE_PERL+= misc/cimconv | | 23 | REPLACE_PERL+= misc/cimconv |
24 | REPLACE_PYTHON+= misc/CenterIMLog2HTML.py | | 24 | REPLACE_PYTHON+= misc/CenterIMLog2HTML.py |
25 | REPLACE_AWK+= misc/cimformathistory | | 25 | REPLACE_AWK+= misc/cimformathistory |
26 | | | 26 | |
27 | INCOMPAT_CURSES+= NetBSD-1.[45]*-* NetBSD-1.6-* NetBSD-1.6.[1-9]-* | | 27 | INCOMPAT_CURSES+= NetBSD-1.[45]*-* NetBSD-1.6-* NetBSD-1.6.[1-9]-* |
28 | INCOMPAT_CURSES+= NetBSD-1.6_*-* NetBSD-1.6.[1-9]_*-* NetBSD-1.6[A-T]-* | | 28 | INCOMPAT_CURSES+= NetBSD-1.6_*-* NetBSD-1.6.[1-9]_*-* NetBSD-1.6[A-T]-* |
29 | INCOMPAT_CURSES+= NetBSD-2.*-* NetBSD-3.*-* # see PR 29060 | | 29 | INCOMPAT_CURSES+= NetBSD-2.*-* NetBSD-3.*-* # see PR 29060 |
30 | INCOMPAT_CURSES+= NetBSD-4.*-* NetBSD-5.*-* | | 30 | INCOMPAT_CURSES+= NetBSD-4.*-* NetBSD-5.*-* |
31 | | | 31 | |
32 | .include "options.mk" | | 32 | .include "options.mk" |
33 | .include "../../mk/bsd.prefs.mk" | | 33 | .include "../../mk/bsd.prefs.mk" |
34 | | | 34 | |
35 | .if ${OPSYS} == "NetBSD" | | 35 | .if ${OPSYS} == "NetBSD" |
36 | CPPFLAGS+= -DAUDIO_PLAYER="\"/usr/bin/audioplay\"" | | 36 | CPPFLAGS+= -DAUDIO_PLAYER="\"/usr/bin/audioplay\"" |
37 | .else | | 37 | .else |
38 | DEPENDS+= sox>=12.17.4:../../audio/sox | | 38 | DEPENDS+= sox>=12.17.4:../../audio/sox |
39 | EVAL_PREFIX+= SOX_PREFIX=sox | | 39 | EVAL_PREFIX+= SOX_PREFIX=sox |
40 | CPPFLAGS+= -DAUDIO_PLAYER="\"${SOX_PREFIX}/bin/play\"" | | 40 | CPPFLAGS+= -DAUDIO_PLAYER="\"${SOX_PREFIX}/bin/play\"" |
41 | .endif | | 41 | .endif |
42 | | | 42 | |
43 | .if !empty(MACHINE_ARCH:Msparc64) | | 43 | .if !empty(MACHINE_ARCH:Msparc64) |
44 | GCC_REQD+= 3.0 # see PR 29185 | | 44 | GCC_REQD+= 3.0 # see PR 29185 |
45 | .endif | | 45 | .endif |
46 | | | 46 | |
47 | .include "../../lang/python/application.mk" | | 47 | .include "../../lang/python/application.mk" |
48 | .include "../../converters/libiconv/buildlink3.mk" | | 48 | .include "../../converters/libiconv/buildlink3.mk" |
49 | .include "../../devel/gettext-lib/buildlink3.mk" | | 49 | .include "../../devel/gettext-lib/buildlink3.mk" |
50 | .include "../../devel/ncurses/buildlink3.mk" | | 50 | .include "../../devel/ncurses/buildlink3.mk" |
51 | .include "../../security/openssl/buildlink3.mk" | | 51 | .include "../../security/openssl/buildlink3.mk" |
52 | .include "../../www/curl/buildlink3.mk" | | 52 | .include "../../www/curl/buildlink3.mk" |
53 | .include "../../mk/jpeg.buildlink3.mk" | | 53 | .include "../../mk/jpeg.buildlink3.mk" |
54 | | | 54 | |
55 | .if defined(BUILDLINK_LIBICONV_LDADD) && !empty(BUILDLINK_LIBICONV_LDADD) | | 55 | .if defined(BUILDLINK_LIBICONV_LDADD) && !empty(BUILDLINK_LIBICONV_LDADD) |
56 | # | | 56 | # |
57 | # libiconv depends on configure scripts to include <iconv.h> before | | 57 | # libiconv depends on configure scripts to include <iconv.h> before |
58 | # trying to link against -liconv. Unfortunately, centericq's script | | 58 | # trying to link against -liconv. Unfortunately, centericq's script |
59 | # doesn't do this, so fake it. | | 59 | # doesn't do this, so fake it. |
60 | # | | 60 | # |
61 | CONFIGURE_ENV+= ac_cv_lib_iconv_iconv=yes | | 61 | CONFIGURE_ENV+= ac_cv_lib_iconv_iconv=yes |
62 | .endif | | 62 | .endif |
63 | | | 63 | |
64 | post-install: | | 64 | post-install: |
65 | ${INSTALL_MAN} ${WRKSRC}/centerim.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/ | | 65 | ${INSTALL_MAN} ${WRKSRC}/centerim.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/ |
66 | | | 66 | |
67 | .include "../../mk/bsd.pkg.mk" | | 67 | .include "../../mk/bsd.pkg.mk" |
68 | | | 68 | |
69 | .if ${MACHINE_ARCH} == "alpha" | | 69 | .if ${MACHINE_ARCH} == "alpha" |
70 | # avoid toolchain bugs | | 70 | # avoid toolchain bugs |
71 | CFLAGS:= ${CFLAGS:C/-O[0-9]*//g} | | 71 | CFLAGS:= ${CFLAGS:C/-O[0-9]*//g} |
72 | .endif | | 72 | .endif |