1998-07-09 16:01:54 +00:00
|
|
|
# New ports collection makefile for: licq
|
|
|
|
# Date created: 2 July 1998
|
2000-04-01 05:21:42 +00:00
|
|
|
# Whom: Brian Feldman & Matt Heckaman
|
1998-07-09 16:01:54 +00:00
|
|
|
#
|
1999-08-30 14:24:37 +00:00
|
|
|
# $FreeBSD$
|
1998-07-09 16:01:54 +00:00
|
|
|
#
|
|
|
|
|
2001-04-10 20:09:53 +00:00
|
|
|
PORTNAME= base
|
|
|
|
PORTVERSION= ${LICQ_VER}
|
2005-03-03 11:51:45 +00:00
|
|
|
PORTREVISION= 2
|
2005-11-09 08:28:43 +00:00
|
|
|
CATEGORIES= net-im
|
2004-03-26 17:49:07 +00:00
|
|
|
PKGNAMESUFFIX= ${SOCKS_SUFFIX}${PKGNAMESUFFIX2}
|
1998-07-09 16:01:54 +00:00
|
|
|
|
2002-01-27 06:23:22 +00:00
|
|
|
MAINTAINER= dinoex@FreeBSD.org
|
2003-02-20 18:26:42 +00:00
|
|
|
COMMENT= A popular ICQ-compatible plugin-based program
|
1998-11-02 04:04:44 +00:00
|
|
|
|
2001-04-10 20:09:53 +00:00
|
|
|
.if defined(WITH_SOCKS)
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libsocks5.a:${PORTSDIR}/net/socks5
|
|
|
|
.endif
|
1998-07-09 16:01:54 +00:00
|
|
|
|
2005-12-20 15:31:34 +00:00
|
|
|
USE_ICONV= yes
|
2001-04-10 20:09:53 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
2005-11-09 08:28:43 +00:00
|
|
|
LICQ_PORT?= net-im/licq
|
2002-10-15 06:24:02 +00:00
|
|
|
|
|
|
|
# workaround for installed autoconf/automake
|
|
|
|
CONFIGURE_ARGS+=--program-transform-name=s,y,y,
|
2005-12-20 15:31:34 +00:00
|
|
|
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}" CPPFLAGS="${CPPFLAGS}"
|
|
|
|
LDFLAGS+= ${PTHREAD_LIBS} -L${LOCALBASE}/lib -liconv
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
2002-10-15 06:24:02 +00:00
|
|
|
|
2001-04-10 20:09:53 +00:00
|
|
|
.if defined(WITH_SOCKS)
|
2004-03-26 17:49:07 +00:00
|
|
|
SOCKS_SUFFIX= -socks
|
2001-04-10 20:09:53 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-socks5
|
2002-02-07 07:47:55 +00:00
|
|
|
CONFIGURE_ARGS+=--with-socks5-inc=${LOCALBASE}/include
|
2003-08-31 03:05:43 +00:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2004-02-25 10:53:08 +00:00
|
|
|
CONFLICTS?= licq-base-1.*
|
|
|
|
.else
|
|
|
|
CONFLICTS?= licq-base-socks-1.*
|
2002-02-07 07:47:55 +00:00
|
|
|
.endif
|
2000-02-15 01:46:27 +00:00
|
|
|
|
2003-08-28 15:38:18 +00:00
|
|
|
.if !defined(WITHOUT_OPENSSL)
|
|
|
|
USE_OPENSSL= yes
|
|
|
|
CONFIGURE_ARGS+=--with-openssl-inc=${OPENSSLINC}
|
|
|
|
CONFIGURE_ARGS+=--with-openssl-lib=${OPENSSLLIB}
|
|
|
|
.endif
|
|
|
|
|
2004-12-24 04:59:53 +00:00
|
|
|
.if defined(WITHOUT_NLS)
|
2006-11-08 06:08:13 +00:00
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
2004-12-24 04:59:53 +00:00
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.endif
|
|
|
|
|
2003-01-08 22:22:41 +00:00
|
|
|
pre-configure:
|
2003-09-24 17:32:28 +00:00
|
|
|
${REINPLACE_CMD} -e 's=/usr/share/licq=${PREFIX}/share/licq=' \
|
|
|
|
${WRKSRC}/src/licq.conf.h
|
2003-07-25 17:46:07 +00:00
|
|
|
@${ECHO_MSG} Ignoring existing libgnugetopt
|
2003-09-24 17:32:28 +00:00
|
|
|
${REINPLACE_CMD} -e 's=getopt.h==' \
|
2004-02-17 11:04:19 +00:00
|
|
|
-e 's=FLAGS -D_THREAD_SAFE=FLAGS ${PTHREAD_CFLAGS}=' \
|
2003-09-24 17:32:28 +00:00
|
|
|
-e 's=FLAGS -pthread=FLAGS ${PTHREAD_CFLAGS}=' \
|
2004-02-17 11:04:19 +00:00
|
|
|
-e "s=-lc_r=${PTHREAD_LIBS}=" \
|
|
|
|
-e 's=-lc *$$LIBS=$$LIBS=' \
|
2003-09-24 17:32:28 +00:00
|
|
|
${WRKSRC}/configure
|
2003-01-08 22:22:41 +00:00
|
|
|
|
1999-05-02 20:21:41 +00:00
|
|
|
post-install:
|
2005-03-03 11:51:45 +00:00
|
|
|
@${MKDIR} ${PREFIX}/lib/licq
|
2001-04-10 20:09:53 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
1999-05-02 20:21:41 +00:00
|
|
|
|
2002-09-14 18:07:29 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
2004-03-26 17:49:07 +00:00
|
|
|
.include "${PORTSDIR}/${LICQ_PORT}/Makefile.inc"
|
2004-07-20 05:41:42 +00:00
|
|
|
|
2002-09-14 18:07:29 +00:00
|
|
|
.include <bsd.port.post.mk>
|