2003-01-13 13:16:58 +01:00
|
|
|
# New ports collection makefile for: qextmdi
|
|
|
|
# Date created: 29 April 2002
|
2003-02-23 10:48:10 +01:00
|
|
|
# Whom: roland.jesse@gmx.net
|
2003-01-13 13:16:58 +01:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= qextmdi
|
|
|
|
PORTVERSION= 2.0.2
|
2003-02-23 10:48:10 +01:00
|
|
|
PORTREVISION= 2
|
2003-01-13 13:16:58 +01:00
|
|
|
CATEGORIES= devel
|
|
|
|
MASTER_SITES= http://www.geocities.com/gigafalk/qextmdi/
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
DIST_SUBDIR= KDE
|
|
|
|
|
2004-10-25 15:39:57 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-21 12:23:04 +01:00
|
|
|
COMMENT= Qt extension for creating SDI/MDI user interfaces
|
2003-01-13 13:16:58 +01:00
|
|
|
|
2004-02-26 21:59:36 +01:00
|
|
|
BUILD_DEPENDS= qmake:${PORTSDIR}/devel/qmake
|
|
|
|
|
2003-01-13 13:16:58 +01:00
|
|
|
.if defined(WITH_KDE)
|
2003-01-15 15:54:42 +01:00
|
|
|
USE_KDELIBS_VER= 3
|
2003-02-23 10:48:10 +01:00
|
|
|
PKGNAMESUFFIX= -kde
|
2003-01-15 15:54:42 +01:00
|
|
|
.else
|
|
|
|
USE_QT_VER= 3
|
2003-01-13 13:16:58 +01:00
|
|
|
.endif
|
2003-01-15 15:54:42 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/qextmdi
|
2004-01-25 13:27:09 +01:00
|
|
|
MAKE_ENV+= QTDIR=${QT_PREFIX} QMAKESPEC=${PREFIX}/share/qt/mkspecs/freebsd-g++ KDE2DIR=${LOCALBASE}
|
2003-01-13 13:16:58 +01:00
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
USE_REINPLACE= yes
|
|
|
|
|
2003-01-15 15:54:42 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if defined(WITH_KDE)
|
|
|
|
LIBNAME= kextmdi
|
|
|
|
.else
|
|
|
|
LIBNAME= qextmdi
|
|
|
|
.endif
|
|
|
|
PLIST_SUB+= LIBNAME=${LIBNAME}
|
|
|
|
|
2003-01-13 13:16:58 +01:00
|
|
|
pre-configure:
|
|
|
|
@cd ${WRKSRC} && ${REINPLACE_CMD} -e 's|tmake|qmake|g' configure
|
2003-01-15 15:54:42 +01:00
|
|
|
@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
|
2003-01-13 13:16:58 +01:00
|
|
|
|
|
|
|
do-configure:
|
2003-01-15 15:54:42 +01:00
|
|
|
cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} qmake ${LIBNAME}.pro
|
2003-01-13 13:16:58 +01:00
|
|
|
|
|
|
|
do-install:
|
2003-01-15 15:54:42 +01:00
|
|
|
${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
|
2003-01-13 13:16:58 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${PREFIX}/share/doc/qextmdi
|
|
|
|
@cd ${WRKSRC}/doc && ${TAR} cf - * | (cd ${PREFIX}/share/doc/qextmdi && ${TAR} xf -)
|
|
|
|
.endif
|
|
|
|
|
2003-01-15 15:54:42 +01:00
|
|
|
.include <bsd.port.post.mk>
|