ports/180950: Fixup devel/thrift with non default options.

Mathieu Arnold mat at FreeBSD.org
Tue Jul 30 18:10:00 UTC 2013


>Number:         180950
>Category:       ports
>Synopsis:       Fixup devel/thrift with non default options.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 30 18:10:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Mathieu Arnold
>Release:        FreeBSD 9.1-RELEASE-p4 i386
>Organization:
Absolight
>Environment:
System: FreeBSD aragorn.in.absolight.net 9.1-RELEASE-p4 FreeBSD 9.1-RELEASE-p4 #0: Mon Jun 17 11:38:17 UTC 2013 root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386

>Description:
Fixup build when using either GLIB or QT4.
Use the new bsd.options.mk knobs.
>How-To-Repeat:
>Fix:

--- diff begins here ---
Index: devel/thrift/Makefile
===================================================================
--- devel/thrift/Makefile	(revision 323968)
+++ devel/thrift/Makefile	(working copy)
@@ -20,9 +20,8 @@
 ACLOCAL_ARGS=	-I${WRKSRC}/aclocal
 AUTOMAKE_ARGS=	--foreign --add-missing --copy
 
-USE_GNOME=	pkgconfig
+USES=		pkgconfig gmake
 GNU_CONFIGURE=	yes
-USE_GMAKE=	yes
 USE_LDCONFIG=	yes
 MAKE_JOBS_UNSAFE=	yes
 
@@ -34,6 +33,11 @@
 OPTIONS_DEFINE=	GLIB QT4
 GLIB_DESC=	C (GLib) Library
 
+GLIB_CONFIGURE_ENABLE=	c_glib
+GLIB_LIB_DEPENDS=	glib-2.0:${PORTSDIR}/devel/glib20
+QT4_CONFIGURE_ENABLE=	qt4
+OPTIONS_SUB=		yes
+
 # For Perl support, use devel/p5-Thrift.
 # For Python support, use devel/py-thrift.
 # For Ruby support, use devel/rubygem-thrift.
@@ -53,29 +57,14 @@
 		--without-ruby
 
 .include <bsd.port.options.mk>
-.include <bsd.port.pre.mk>
-.include "bsd.thrift.mk"
 
-.if ${PORT_OPTIONS:MGLIB}
-    CONFIGURE_ARGS+=	--with-c_glib
-    LIB_DEPENDS+=	glib-2.0:${PORTSDIR}/devel/glib20
-    PLIST_SUB+=		GLIB=""
-    WITH_GLIB=		true
-.else
-    CONFIGURE_ARGS+=	--without-c_glib
-    PLIST_SUB+=		GLIB="@comment "
-.endif
-
 .if ${PORT_OPTIONS:MQT4}
-    CONFIGURE_ARGS+=	--with-qt4
     USE_QT4=		network moc_build qmake_build rcc_build uic_build
-    PLIST_SUB+=		QT=""
-    WITH_QT=		true
-.else
-    CONFIGURE_ARGS+=	--without-qt4
-    PLIST_SUB+=		QT="@comment "
 .endif
 
+.include <bsd.port.pre.mk>
+.include "bsd.thrift.mk"
+
 PLIST_SUB+=	PORTVERSION="${PORTVERSION}"
 
 .if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
Index: devel/thrift/pkg-plist
===================================================================
--- devel/thrift/pkg-plist	(revision 323968)
+++ devel/thrift/pkg-plist	(working copy)
@@ -23,10 +23,10 @@
 include/thrift/concurrency/ThreadManager.h
 include/thrift/concurrency/TimerManager.h
 include/thrift/concurrency/Util.h
-%%GLIB%%include/thrift/config.h
+%%GLIB%%include/thrift/c_glib/config.h
 include/thrift/processor/PeekProcessor.h
 include/thrift/processor/StatsProcessor.h
-%%GLIB%%include/thrift/processor/thrift_processor.h
+%%GLIB%%include/thrift/c_glib/processor/thrift_processor.h
 include/thrift/protocol/TBase64Utils.h
 include/thrift/protocol/TBinaryProtocol.h
 include/thrift/protocol/TBinaryProtocol.tcc
@@ -39,10 +39,10 @@
 include/thrift/protocol/TProtocolException.h
 include/thrift/protocol/TProtocolTap.h
 include/thrift/protocol/TVirtualProtocol.h
-%%GLIB%%include/thrift/protocol/thrift_binary_protocol.h
-%%GLIB%%include/thrift/protocol/thrift_binary_protocol_factory.h
-%%GLIB%%include/thrift/protocol/thrift_protocol.h
-%%GLIB%%include/thrift/protocol/thrift_protocol_factory.h
+%%GLIB%%include/thrift/c_glib/protocol/thrift_binary_protocol.h
+%%GLIB%%include/thrift/c_glib/protocol/thrift_binary_protocol_factory.h
+%%GLIB%%include/thrift/c_glib/protocol/thrift_protocol.h
+%%GLIB%%include/thrift/c_glib/protocol/thrift_protocol_factory.h
 include/thrift/qt/TQIODeviceTransport.h
 include/thrift/qt/TQTcpServer.h
 include/thrift/server/TNonblockingServer.h
@@ -50,11 +50,11 @@
 include/thrift/server/TSimpleServer.h
 include/thrift/server/TThreadPoolServer.h
 include/thrift/server/TThreadedServer.h
-%%GLIB%%include/thrift/server/thrift_server.h
-%%GLIB%%include/thrift/server/thrift_simple_server.h
-%%GLIB%%include/thrift/thrift.h
-%%GLIB%%include/thrift/thrift_application_exception.h
-%%GLIB%%include/thrift/thrift_struct.h
+%%GLIB%%include/thrift/c_glib/server/thrift_server.h
+%%GLIB%%include/thrift/c_glib/server/thrift_simple_server.h
+%%GLIB%%include/thrift/c_glib/thrift.h
+%%GLIB%%include/thrift/c_glib/thrift_application_exception.h
+%%GLIB%%include/thrift/c_glib/thrift_struct.h
 include/thrift/transport/TBufferTransports.h
 include/thrift/transport/TFDTransport.h
 include/thrift/transport/TFileTransport.h
@@ -76,14 +76,14 @@
 include/thrift/transport/TTransportUtils.h
 include/thrift/transport/TVirtualTransport.h
 include/thrift/transport/TZlibTransport.h
-%%GLIB%%include/thrift/transport/thrift_buffered_transport.h
-%%GLIB%%include/thrift/transport/thrift_framed_transport.h
-%%GLIB%%include/thrift/transport/thrift_memory_buffer.h
-%%GLIB%%include/thrift/transport/thrift_server_socket.h
-%%GLIB%%include/thrift/transport/thrift_server_transport.h
-%%GLIB%%include/thrift/transport/thrift_socket.h
-%%GLIB%%include/thrift/transport/thrift_transport.h
-%%GLIB%%include/thrift/transport/thrift_transport_factory.h
+%%GLIB%%include/thrift/c_glib/transport/thrift_buffered_transport.h
+%%GLIB%%include/thrift/c_glib/transport/thrift_framed_transport.h
+%%GLIB%%include/thrift/c_glib/transport/thrift_memory_buffer.h
+%%GLIB%%include/thrift/c_glib/transport/thrift_server_socket.h
+%%GLIB%%include/thrift/c_glib/transport/thrift_server_transport.h
+%%GLIB%%include/thrift/c_glib/transport/thrift_socket.h
+%%GLIB%%include/thrift/c_glib/transport/thrift_transport.h
+%%GLIB%%include/thrift/c_glib/transport/thrift_transport_factory.h
 lib/libthrift.a
 lib/libthrift.la
 lib/libthrift.so
@@ -98,21 +98,25 @@
 lib/libthriftnb.so
 lib/libthriftnb.so.0
 lib/libthriftnb-%%PORTVERSION%%.so
-%%QT%%lib/libthriftqt-%%PORTVERSION%%.so
-%%QT%%lib/libthriftqt.a
-%%QT%%lib/libthriftqt.la
-%%QT%%lib/libthriftqt.so
+%%QT4%%lib/libthriftqt-%%PORTVERSION%%.so
+%%QT4%%lib/libthriftqt.a
+%%QT4%%lib/libthriftqt.la
+%%QT4%%lib/libthriftqt.so
 lib/libthriftz-%%PORTVERSION%%.so
 lib/libthriftz.a
 lib/libthriftz.la
 lib/libthriftz.so
 lib/libthriftz.so.0
-%%QT%%libdata/ldconfig/qt4-network
 libdata/pkgconfig/thrift-nb.pc
-%%QT%%libdata/pkgconfig/thrift-qt.pc
+%%QT4%%libdata/pkgconfig/thrift-qt.pc
 libdata/pkgconfig/thrift-z.pc
 libdata/pkgconfig/thrift.pc
 %%GLIB%%libdata/pkgconfig/thrift_c_glib.pc
+%%GLIB%%@dirrm include/thrift/c_glib/processor
+%%GLIB%%@dirrm include/thrift/c_glib/protocol
+%%GLIB%%@dirrm include/thrift/c_glib/server
+%%GLIB%%@dirrm include/thrift/c_glib/transport
+%%GLIB%%@dirrm include/thrift/c_glib
 @dirrm include/thrift/transport
 @dirrm include/thrift/server
 @dirrm include/thrift/qt
--- diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list