aboutsummaryrefslogtreecommitdiffstats
path: root/devel/qextmdi/Makefile
blob: c20844daf8b36de3f3a46ce0ec7446d1eb459002 (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
56
57
58
59
60
61
62
63
64
65
66
# New ports collection makefile for:    qextmdi
# Date created:             29 April 2002
# Whom:                 roland.jesse@gmx.net
#
# $FreeBSD$

PORTNAME=   qextmdi
PORTVERSION=    2.0.2
PORTREVISION=   3
CATEGORIES= devel
MASTER_SITES=   http://www.geocities.com/gigafalk/qextmdi/
EXTRACT_SUFX=   .tgz
DIST_SUBDIR=    KDE

MAINTAINER= ports@FreeBSD.org
COMMENT=    Qt extension for creating SDI/MDI user interfaces

BUILD_DEPENDS=  qmake:${PORTSDIR}/devel/qmake

DEPRECATED= is unfetchable, website disappeared
EXPIRATION_DATE=    2007-03-19

.if defined(WITH_KDE)
USE_KDELIBS_VER=    3
PKGNAMESUFFIX=  -kde
.else
USE_QT_VER= 3
.endif
WRKSRC=     ${WRKDIR}/${PORTNAME}
BUILD_WRKSRC=   ${WRKSRC}/qextmdi
MAKE_ENV+=  QTDIR=${QT_PREFIX} QMAKESPEC=${PREFIX}/share/qt/mkspecs/freebsd-g++ KDE2DIR=${LOCALBASE}
USE_LDCONFIG=   yes

.include <bsd.port.pre.mk>

.if defined(WITH_KDE)
LIBNAME=    kextmdi
.else
LIBNAME=    qextmdi
.endif
PLIST_SUB+= LIBNAME=${LIBNAME}

pre-configure:
    @cd ${WRKSRC} && ${REINPLACE_CMD} -e 's|tmake|qmake|g' configure
    @cd ${WRKSRC}/qextmdi && ${REINPLACE_CMD} -e 's|warn_on|warn_on thread|g' *.pro
.if !defined(WITH_KDE)
    @${ECHO_CMD}
    @${ECHO_CMD} "Note: The QextMDI library can be build with KDE support."
    @${ECHO_CMD} "      Please specify WITH_KDE in case you want to do so."
    @${ECHO_CMD}
.endif

do-configure:
    cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} qmake ${LIBNAME}.pro

do-install:
    ${INSTALL_DATA} ${WRKSRC}/lib/lib${LIBNAME}.so.2.0.2 ${PREFIX}/lib/lib${LIBNAME}.so.2
    ${LN} ${PREFIX}/lib/lib${LIBNAME}.so.2 ${PREFIX}/lib/lib${LIBNAME}.so
    ${MKDIR} ${PREFIX}/include/qextmdi
    ${INSTALL_DATA} ${WRKSRC}/include/*.h  ${PREFIX}/include/qextmdi
.if !defined(NOPORTDOCS)
    @${MKDIR} ${PREFIX}/share/doc/qextmdi
    @cd ${WRKSRC}/doc && ${TAR} cf - * | (cd ${PREFIX}/share/doc/qextmdi && ${TAR} xf -)
.endif

.include <bsd.port.post.mk>