2013-09-21 00:10:23 +02:00
|
|
|
# Created by: lofi@FreeBSD.org
|
2007-02-05 21:56:24 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= network
|
2010-12-02 20:47:17 +01:00
|
|
|
DISTVERSION= ${QT4_VERSION}
|
2014-01-06 17:16:52 +01:00
|
|
|
CATEGORIES= net ipv6
|
2007-02-05 21:56:24 +01:00
|
|
|
PKGNAMEPREFIX= qt4-
|
|
|
|
|
|
|
|
MAINTAINER= kde@FreeBSD.org
|
2014-01-06 17:16:52 +01:00
|
|
|
COMMENT= Qt network module
|
2007-02-05 21:56:24 +01:00
|
|
|
|
2010-12-02 20:47:17 +01:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:${PORTSDIR}/security/ca_root_nss
|
|
|
|
|
2012-06-06 08:44:37 +02:00
|
|
|
USE_QT4= qmake_build moc_build rcc_build corelib
|
2007-07-16 12:12:15 +02:00
|
|
|
QT_DIST= yes
|
2007-02-05 21:56:24 +01:00
|
|
|
|
|
|
|
HAS_CONFIGURE= yes
|
2014-01-06 17:16:52 +01:00
|
|
|
USE_LDCONFIG= ${PREFIX}/${QT_LIBDIR_REL}
|
2007-07-16 12:12:15 +02:00
|
|
|
USE_OPENSSL= yes
|
2007-02-05 21:56:24 +01:00
|
|
|
|
|
|
|
ALL_TARGET= first
|
|
|
|
CONFIGURE_ENV?= QTDIR=${WRKSRC} PATH=${WRKSRC}/bin:$$PATH
|
2010-10-15 22:54:22 +02:00
|
|
|
MAKE_ENV?= QTDIR=${WRKSRC} LD_LIBRARY_PATH=${WRKSRC}/lib:$$LD_LIBRARY_PATH \
|
2007-02-05 21:56:24 +01:00
|
|
|
PATH=${WRKSRC}/bin:$$PATH
|
2008-08-05 01:30:38 +02:00
|
|
|
|
|
|
|
DO_NOT_EXTRACT= demos doc examples mkspecs qmake tools translations \
|
2010-01-21 22:13:21 +01:00
|
|
|
src/activeqt src/dbus src/gui src/multimedia src/opengl \
|
|
|
|
src/openvg src/phonon src/qt3support src/s60installs \
|
|
|
|
src/s60main src/script src/scripttools src/sql src/svg \
|
|
|
|
src/testlib src/tools src/winmain src/xml src/xmlpatterns \
|
|
|
|
src/3rdparty/clucene src/3rdparty/freetype \
|
|
|
|
src/3rdparty/libjpeg src/3rdparty/libmng src/3rdparty/libpng \
|
|
|
|
src/3rdparty/libtiff src/3rdparty/phonon src/3rdparty/webkit
|
2008-08-05 01:30:38 +02:00
|
|
|
.for dne in ${DO_NOT_EXTRACT}
|
|
|
|
EXTRACT_AFTER_ARGS+= --exclude '${DISTNAME}/${dne}'
|
|
|
|
.endfor
|
|
|
|
|
2010-01-21 22:13:21 +01:00
|
|
|
BUILD_WRKSRC= ${WRKSRC}/src/${PORTNAME}
|
|
|
|
INSTALL_WRKSRC= ${BUILD_WRKSRC}
|
|
|
|
|
2007-02-05 21:56:24 +01:00
|
|
|
pre-configure:
|
2010-01-21 22:13:21 +01:00
|
|
|
${MKDIR} ${WRKSRC}/mkspecs
|
2014-01-06 17:16:52 +01:00
|
|
|
${LN} -sf ${QMAKE} ${WRKSRC}/bin/qmake
|
|
|
|
${LN} -sf ${MOC} ${WRKSRC}/bin/moc
|
|
|
|
${LN} -sf ${RCC} ${WRKSRC}/bin/rcc
|
2007-02-05 21:56:24 +01:00
|
|
|
|
|
|
|
post-configure:
|
2014-01-06 17:16:52 +01:00
|
|
|
${REINPLACE_CMD} -e 's|${PREFIX}/${QT_LIBDIR_REL}/pkgconfig|${PREFIX}/libdata/pkgconfig|g' \
|
2010-01-21 22:13:21 +01:00
|
|
|
-e 's|.*$$(QMAKE).*||g' ${BUILD_WRKSRC}/Makefile
|
2007-05-01 17:14:48 +02:00
|
|
|
${REINPLACE_CMD} -E -e 's|-L.[^[:space:]]*qt-x11-opensource.[^[:space:]]*lib||g' \
|
2014-01-06 17:16:52 +01:00
|
|
|
-E -e 's|(.*location=).*moc|\1${PREFIX}/${QT_BINDIR_REL}/${MOC:T}|g' \
|
|
|
|
-E -e 's|(.*location=).*uic|\1${PREFIX}/${QT_BINDIR_REL}/${UIC:T}|g' \
|
2010-01-21 22:13:21 +01:00
|
|
|
${WRKSRC}/lib/pkgconfig/QtNetwork.pc
|
2010-12-02 20:47:17 +01:00
|
|
|
${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
|
|
|
|
${WRKSRC}/src/network/ssl/qsslsocket_openssl.cpp
|
2007-02-05 21:56:24 +01:00
|
|
|
|
2007-08-03 00:37:40 +02:00
|
|
|
.include <bsd.port.mk>
|