1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/net-im/centericq/Makefile
Cheng-Lung Sung 2503639037 - now really use OPTIONS.
- get rid of warning of "WITHOUT_NLS".
- switch to bzip2 archive.

PR:		ports/71241
Submitted by:	Dima Panov <redfox@Fluffy.Khv.RU>
Reviewed by:	leeym (mentor)
Approved by:	leeym (mentor)
2004-09-02 16:17:37 +00:00

115 lines
2.6 KiB
Makefile

# ex:ts=8
# New ports collection makefile for: centericq
# Date created: 25 December 1999
# Whom: Chris Piazza <cpiazza@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= centericq
PORTVERSION= 4.11.0
PORTREVISION= 0
CATEGORIES= net
MASTER_SITES= http://centericq.de/archive/source/releases/ \
http://thekonst.net/download/
MAINTAINER= clsung@FreeBSD.org
COMMENT= A text mode menu- and window-driven IM interface
USE_BZIP2= yes
USE_ICONV= yes
USE_OPENSSL= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
CXXFLAGS="-I${LOCALBASE}/include"
LDFLAGS+= -L${LOCALBASE}/lib -lstdc++
CONFIGURE_ARGS= --with-openssl --disable-konst
OPTIONS= NLS "Native Language Support" on \
MULTIBYTE "Multibyte Support" off \
FRIBIDI "Fribidi Support" off \
MSN "Support for MSN Protocol" off \
YAHOO "Support for Yahoo! Messenger Protocol" off \
AIM "Support for AOL's Instant Messenger Protocol" off \
IRC "Support for IRC Protocol" off \
JABBER "Support for Jabber Protocol" off \
RSS "Support for RSS" off \
LJ "Support for LiveJournal" off \
GG "Support for Gadu-Gadu Protocol" off
MAN1= cicqconv.1 cicqsync.1
PORTDOCS= FAQ README
.include <bsd.port.pre.mk>
.if defined(WITHOUT_NLS)
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.else
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.endif
.if defined(WITH_MULTIBYTE)
CONFIGURE_ARGS+= --enable-locales-fix
.endif
.if defined(WITH_FRIBIDI)
LIB_DEPENDS+= fribidi.0:${PORTSDIR}/converters/fribidi
CONFIGURE_ARGS+= --with-fribidi
.endif
.if !defined(WITH_MSN)
CONFIGURE_ARGS+= --disable-msn
.else
LIB_DEPENDS+= curl.3:${PORTSDIR}/ftp/curl
.endif
.if !defined(WITH_YAHOO)
CONFIGURE_ARGS+= --disable-yahoo
.endif
.if !defined(WITH_AIM)
CONFIGURE_ARGS+= --disable-aim
.endif
.if !defined(WITH_IRC)
CONFIGURE_ARGS+= --disable-irc
.endif
.if !defined(WITH_JABBER)
CONFIGURE_ARGS+= --disable-jabber
.endif
.if !defined(WITH_RSS)
CONFIGURE_ARGS+= --disable-rss
.endif
.if !defined(WITH_LJ)
CONFIGURE_ARGS+= --disable-lj
.endif
.if !defined(WITH_GG)
CONFIGURE_ARGS+= --disable-gg
.endif
post-patch:
.if ${OSVERSION} >= 502124
@cd ${WRKSRC} && ${PATCH} < ${PATCHDIR}/extra-patch-gcc34
.endif
.for file in kkconsui-0.1/include/conf.h kkstrtext-0.1/conf.h kksystr-0.1/include/conf.h
@(cd ${WRKSRC} ; \
${MV} -f ${file} ${file}.orig ; \
${GREP} -v "_G_config.h" ${file}.orig > ${file})
.endfor
.if !defined(NOPORTDOCS)
post-install:
@${MKDIR} ${DOCSDIR}
@(cd ${WRKSRC} ; ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR})
.endif
.include <bsd.port.post.mk>