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
|
2005-01-08 18:45:41 +01:00
|
|
|
PORTVERSION= 0.1.2
|
2010-03-28 08:47:48 +02:00
|
|
|
PORTREVISION= 7
|
2006-01-30 22:36:28 +01:00
|
|
|
CATEGORIES= net-p2p
|
2009-08-22 02:32:25 +02:00
|
|
|
MASTER_SITES= SF/dc-qt/dc-qt/${PORTVERSION}
|
2002-07-28 14:11:57 +02:00
|
|
|
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
|
|
|
|
2006-01-30 22:36:28 +01:00
|
|
|
RUN_DEPENDS= dctc:${PORTSDIR}/net-p2p/dctc
|
2002-07-28 14:11:57 +02:00
|
|
|
|
|
|
|
USE_QT_VER= 3
|
2005-01-08 18:45:41 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2007-02-13 01:16:29 +01:00
|
|
|
CONFIGURE_ENV= LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib ${PTHREAD_LIBS}"
|
2005-01-08 18:45:41 +01:00
|
|
|
PLIST_FILES= bin/dc_qt
|
2002-07-28 14:11:57 +02:00
|
|
|
|
2005-01-08 18:45:41 +01:00
|
|
|
OPTIONS= XINE "Enable support for video preview using libxine" off
|
|
|
|
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
XINE_CONFIG?= ${LOCALBASE}/bin/xine-config
|
2005-01-08 18:45:41 +01:00
|
|
|
|
|
|
|
.ifndef(NOPORTDOCS)
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${PKGNAMESUFFIX}
|
|
|
|
|
|
|
|
PORTDOCS= \
|
|
|
|
about.html \
|
|
|
|
advanced.html \
|
|
|
|
basic.html \
|
|
|
|
config.html \
|
|
|
|
connect.html \
|
|
|
|
index.html \
|
|
|
|
logo.png \
|
|
|
|
mainwindow.png \
|
|
|
|
searchdl.html
|
|
|
|
.endif
|
2002-07-28 14:11:57 +02:00
|
|
|
|
2004-02-23 02:16:08 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2005-01-08 18:45:41 +01:00
|
|
|
# with xine preview support
|
|
|
|
.ifdef(WITH_XINE)
|
|
|
|
LIB_DEPENDS+= xine:${PORTSDIR}/multimedia/libxine
|
|
|
|
CONFIGURE_ENV+= XINE_CONFIG=${XINE_CONFIG}
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-preview
|
|
|
|
.endif
|
2002-07-28 14:11:57 +02:00
|
|
|
|
2005-01-08 18:45:41 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -E \
|
|
|
|
-e 's|(HUBLIST[[:space:]]*=[[:space:]]*")hublist"|\1dc_hublist"|' \
|
|
|
|
${WRKSRC}/src/dc_hub.cc
|
|
|
|
.ifdef(NOPORTDOCS)
|
|
|
|
@${REINPLACE_CMD} -E \
|
|
|
|
-e 's|^(SUBDIRS).+$$|\1=|' \
|
|
|
|
${WRKSRC}/src/Makefile.in
|
|
|
|
.else
|
|
|
|
@${REINPLACE_CMD} -E \
|
|
|
|
-e 's|^(pkgdatadir).+$$|\1=${DOCSDIR}|' \
|
|
|
|
${WRKSRC}/src/doc/Makefile.in
|
|
|
|
.endif
|
2002-07-28 14:11:57 +02:00
|
|
|
|
|
|
|
post-configure:
|
|
|
|
# uphold CC/CXX/CFLAGS
|
2005-01-08 18:45:41 +01:00
|
|
|
@${REINPLACE_CMD} -E \
|
|
|
|
-e 's|^(CXXFLAGS.+)$$|\1 ${CXXFLAGS}|' \
|
|
|
|
${WRKSRC}/Makefile \
|
|
|
|
${WRKSRC}/src/Makefile
|
2002-07-28 14:11:57 +02:00
|
|
|
|
2004-02-23 02:16:08 +01:00
|
|
|
.include <bsd.port.post.mk>
|