aboutsummaryrefslogtreecommitdiffstats
path: root/net/licq-qt-gui/Makefile
blob: 272ad66c9293433c5ed134d565685b3c0840039c (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
# New ports collection makefile for:    qt-gui-licq
# Date created:                         18 October 2000
# Whom:                                 Jeremy Norris <ishmael272home.com>
#
# $FreeBSD$
#

PORTNAME=   qt-gui
PORTVERSION=    ${QT_LICQ_VER}
CATEGORIES= net

MAINTAINER= dinoex@FreeBSD.org

USE_AUTOMAKE=   yes
USE_QT_VER= 2

CONFIGURE_ENV=  CPPFLAGS="${PTHREAD_CFLAGS}" \
        LIBS="${PTHREAD_LIBS}"

.if exists(${X11BASE}/bin/XFree86)
BROKEN=     hangs on startup with XFree84 4.x.x
.endif

post-patch:
    @${PERL5} -pi -e 's|libqt-mt.so.2|libqt2-mt.so.4|g;' \
        -e 's|-lqt-mt|-lqt2-mt|g;' -e 's|libqt.so|libqt2.so|g;' \
        -e 's|-lqt$$|-lqt2|g;' ${WRKSRC}/acinclude.m4

pre-configure:
    @(cd ${WRKSRC} && ${ACLOCAL})

post-configure:
    @(cd ${WRKSRC} && ${PERL5} am_edit)
    @${PERL5} -pi -e 's|^archive_cmds=.*nostdlib.*|| ; \
        s|^build_libtool_need_lc=.*|build_libtool_need_lc=no| ; \
        s|^deplibs_check_method=.*|deplibs_check_method=pass_all|' \
        ${WRKSRC}/libtool

post-install:
    ${RM} -rf ${PREFIX}/share/licq/qt-gui/locale

.include <bsd.port.pre.mk>
.include "${PORTSDIR}/net/licq/Makefile.inc"
.include <bsd.port.post.mk>