Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Dec 2012 08:37:32 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r308746 - in head/devel/qross: . files
Message-ID:  <201212120837.qBC8bWAq000677@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danfe
Date: Wed Dec 12 08:37:32 2012
New Revision: 308746
URL: http://svnweb.freebsd.org/changeset/ports/308746

Log:
  - Trim Makefile header per new world order
  - Add an OPTION (on by default) to build Python bindings
  
  PR:		ports/170419
  Submitted by:	maintainer

Added:
  head/devel/qross/files/
  head/devel/qross/files/CMakeLists.txt   (contents, props changed)
Modified:
  head/devel/qross/Makefile
  head/devel/qross/pkg-plist

Modified: head/devel/qross/Makefile
==============================================================================
--- head/devel/qross/Makefile	Wed Dec 12 08:12:13 2012	(r308745)
+++ head/devel/qross/Makefile	Wed Dec 12 08:37:32 2012	(r308746)
@@ -1,12 +1,9 @@
-# New ports collection makefile for:	Qross
-# Date created:				2012-01-08
-# Whom:				Gvozdikov Veniamin <g.veniamin@googlemail.com>
-#
+# Created by: Gvozdikov Veniamin <g.veniamin@googlemail.com>
 # $FreeBSD$
-#
 
 PORTNAME=	qross
 PORTVERSION=	0.2.2
+PORTREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	http://cloud.github.com/downloads/0xd34df00d/Qross/
 
@@ -19,7 +16,23 @@ USE_LDCONFIG=	yes
 USE_QT4=	designer gui network xml qmake_build uic_build moc_build \
 		rcc_build script
 
-WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}/src/qross
+WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
+
+OPTIONS_DEFINE=	PYTHON
+OPTIONS_DEFAULT=PYTHON
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MPYTHON}
+BUILD_DEPENDS=	sip:${PORTSDIR}/devel/py-sip
+PLIST_SUB+=	PYTHON=""
+.else
+CMAKE_ARGS=	-DENABLE_PYTHON=OFF
+PLIST_SUB+=	PYTHON="@comment "
+.endif
+
+post-extract:
+	@${CP} ${FILESDIR}/CMakeLists.txt ${WRKSRC}
 
 post-install:
 .for lib in libqrossui libqrosscore qrossqts

Added: head/devel/qross/files/CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/qross/files/CMakeLists.txt	Wed Dec 12 08:37:32 2012	(r308746)
@@ -0,0 +1,9 @@
+CMAKE_MINIMUM_REQUIRED (VERSION 2.8)
+
+OPTION (ENABLE_PYTHON "Python bindings" ON)
+
+ADD_SUBDIRECTORY (qross)
+
+IF (ENABLE_PYTHON)
+    ADD_SUBDIRECTORY (bindings/python/qrosspython)
+ENDIF (ENABLE_PYTHON)

Modified: head/devel/qross/pkg-plist
==============================================================================
--- head/devel/qross/pkg-plist	Wed Dec 12 08:12:13 2012	(r308745)
+++ head/devel/qross/pkg-plist	Wed Dec 12 08:37:32 2012	(r308746)
@@ -13,6 +13,8 @@ include/qross/core/qrossconfig.h
 include/qross/core/script.h
 include/qross/core/wrapperinterface.h
 include/qross/ui/model.h
+%%PYTHON%%lib/qrosspython.so
+%%PYTHON%%lib/qrosspython.so.0.1
 lib/libqrosscore.so
 lib/libqrosscore.so.0.1
 lib/libqrosscore.so.1



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212120837.qBC8bWAq000677>