2002-07-28 14:11:57 +02:00
|
|
|
# New ports collection makefile for: dctc qt gui
|
|
|
|
# Date created: Sun Jul 28 7:00:43 UTC 2002
|
|
|
|
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= dctc
|
2003-08-10 16:44:36 +02:00
|
|
|
PORTVERSION= 0.0.6
|
2002-07-29 18:53:06 +02:00
|
|
|
CATEGORIES= net
|
2002-07-28 14:11:57 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= dc-qt
|
|
|
|
PKGNAMESUFFIX= -gui-qt
|
|
|
|
DISTNAME= dc-qt-${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= lioux@FreeBSD.org
|
2003-02-23 20:58:35 +01:00
|
|
|
COMMENT= A Qt GUI for the Direct Connect (TM) dctc text client
|
2002-07-28 14:11:57 +02:00
|
|
|
|
2004-03-28 04:55:20 +02:00
|
|
|
BUILD_DEPENDS= qmake:${PORTSDIR}/devel/qmake
|
2002-07-28 14:11:57 +02:00
|
|
|
RUN_DEPENDS= dctc:${PORTSDIR}/net/dctc
|
|
|
|
|
|
|
|
USE_QT_VER= 3
|
|
|
|
USE_REINPLACE= yes
|
2004-02-08 02:14:05 +01:00
|
|
|
USE_SIZE= yes
|
2002-07-28 14:11:57 +02:00
|
|
|
MAKE_ENV= QTDIR="${QTDIR}"
|
2004-02-06 14:12:53 +01:00
|
|
|
PLIST_FILES= bin/dc-qt
|
2002-07-28 14:11:57 +02:00
|
|
|
|
|
|
|
QTDIR?= ${X11BASE}
|
|
|
|
QMAKE?= ${X11BASE}/bin/qmake
|
|
|
|
|
2004-02-23 02:16:08 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
BROKEN= "Does not compile"
|
|
|
|
.endif
|
|
|
|
|
2002-07-28 14:11:57 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -E -e 's|"hublist|"dc_hublist|' \
|
|
|
|
${WRKSRC}/dc_hub.cc
|
|
|
|
|
|
|
|
do-configure:
|
2003-08-10 16:44:36 +02:00
|
|
|
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} \
|
|
|
|
-spec ${X11BASE}/share/qt/mkspecs/freebsd-g++ dc-qt.pro
|
2002-07-28 14:11:57 +02:00
|
|
|
|
|
|
|
post-configure:
|
|
|
|
# uphold CC/CXX/CFLAGS
|
|
|
|
# link against correct qt lib
|
|
|
|
@${REINPLACE_CMD} -E -e 's|^CC.+$$|CC=${CC}|; \
|
2002-12-18 19:35:32 +01:00
|
|
|
s|^CXX[[:space:]]*=.*$$|CXX=${CXX}|; \
|
2002-07-28 14:11:57 +02:00
|
|
|
s|^(CFLAGS.+)$$|\1 ${PTHREAD_CFLAGS}|; \
|
|
|
|
s|-lqt |-lqt-mt ${PTHREAD_LIBS:S/"//g} |' \
|
|
|
|
${WRKSRC}/Makefile
|
|
|
|
|
|
|
|
do-install:
|
2003-08-10 16:44:36 +02:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/dc-qt ${PREFIX}/bin
|
2002-07-28 14:11:57 +02:00
|
|
|
|
2004-02-23 02:16:08 +01:00
|
|
|
.include <bsd.port.post.mk>
|