1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00
freebsd-ports/net-im/licq/Makefile
Dirk Meyer 95184f7995 - The patch removes extra translation from process message.
If configuration parameter Translation isn't 'none' then when you
  receive some packets their content is translated twise (from some
  charset to another one) and gets unreadable.
PR:		66352
Submitted by:	Andrej N. Gritsenko
2004-05-12 04:27:58 +00:00

63 lines
1.6 KiB
Makefile

# New ports collection makefile for: licq
# Date created: 2 July 1998
# Whom: Brian Feldman & Matt Heckaman
#
# $FreeBSD$
#
PORTNAME= base
PORTVERSION= ${LICQ_VER}
PORTREVISION= 3
CATEGORIES= net
PKGNAMESUFFIX= ${SOCKS_SUFFIX}${PKGNAMESUFFIX2}
MAINTAINER= dinoex@FreeBSD.org
COMMENT= A popular ICQ-compatible plugin-based program
.if defined(WITH_SOCKS)
BUILD_DEPENDS= ${LOCALBASE}/lib/libsocks5.a:${PORTSDIR}/net/socks5
.endif
USE_REINPLACE= yes
WRKSRC= ${WRKDIR}/${DISTNAME}
LICQ_PORT?= net/licq
# workaround for installed autoconf/automake
CONFIGURE_ARGS+=--program-transform-name=s,y,y,
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}"
LDFLAGS+= ${PTHREAD_LIBS}
.if defined(WITH_SOCKS)
SOCKS_SUFFIX= -socks
CONFIGURE_ARGS+=--enable-socks5
CONFIGURE_ARGS+=--with-socks5-inc=${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFLICTS?= licq-base-1.*
.else
CONFLICTS?= licq-base-socks-1.*
.endif
.if !defined(WITHOUT_OPENSSL)
USE_OPENSSL= yes
CONFIGURE_ARGS+=--with-openssl-inc=${OPENSSLINC}
CONFIGURE_ARGS+=--with-openssl-lib=${OPENSSLLIB}
.endif
pre-configure:
${REINPLACE_CMD} -e 's=/usr/share/licq=${PREFIX}/share/licq=' \
${WRKSRC}/src/licq.conf.h
@${ECHO_MSG} Ignoring existing libgnugetopt
${REINPLACE_CMD} -e 's=getopt.h==' \
-e 's=FLAGS -D_THREAD_SAFE=FLAGS ${PTHREAD_CFLAGS}=' \
-e 's=FLAGS -pthread=FLAGS ${PTHREAD_CFLAGS}=' \
-e "s=-lc_r=${PTHREAD_LIBS}=" \
-e 's=-lc *$$LIBS=$$LIBS=' \
${WRKSRC}/configure
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.pre.mk>
.include "${PORTSDIR}/${LICQ_PORT}/Makefile.inc"
.include <bsd.port.post.mk>