blob: aecde4ae98f742a85b1ed8750b5990a6fafaf067 (
plain) (
blame)
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
|
# New ports collection makefile for: licq
# Date created: 2 July 1998
# Whom: Brian Feldman & Matt Heckaman
#
# $FreeBSD$
#
PORTNAME= base
PORTVERSION= ${LICQ_VER}
CATEGORIES= net
.if defined(WITH_SOCKS)
PKGNAMESUFFIX= -socks
.endif
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
WRKSRC= ${WRKDIR}/${DISTNAME}
LICQ_PORT?= ${.CURDIR}
# workaround for installed autoconf/automake
CONFIGURE_ARGS+=--program-transform-name=s,y,y,
.if defined(WITH_SOCKS)
CONFIGURE_ARGS+=--enable-socks5
CONFIGURE_ARGS+=--with-socks5-inc=${LOCALBASE}/include
CONFIGURE_ENV+= LDFLAGS=-L${LOCALBASE}/lib
.endif
.if !defined(WITHOUT_OPENSSL)
USE_OPENSSL= yes
CONFIGURE_ARGS+=--with-openssl-inc=${OPENSSLINC}
CONFIGURE_ARGS+=--with-openssl-lib=${OPENSSLLIB}
.endif
pre-configure:
@${MV} ${WRKSRC}/src/licq.conf.h ${WRKSRC}/src/licq.conf.h.sed
${SED} -e "s=/usr/share/licq=${PREFIX}/share/licq=" \
${WRKSRC}/src/licq.conf.h.sed > ${WRKSRC}/src/licq.conf.h
@${ECHO_MSG} Ignoring existing libgnugetopt
@${MV} ${WRKSRC}/configure ${WRKSRC}/configure.sed
${SED} -e "s=getopt.h==" \
${WRKSRC}/configure.sed > ${WRKSRC}/configure
${CHMOD} +x ${WRKSRC}/configure
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.pre.mk>
.include "${LICQ_PORT}/Makefile.inc"
.include <bsd.port.post.mk>
|