diff options
author | Alexey Dokuchaev <danfe@FreeBSD.org> | 2012-12-12 08:37:32 +0000 |
---|---|---|
committer | Alexey Dokuchaev <danfe@FreeBSD.org> | 2012-12-12 08:37:32 +0000 |
commit | 80892d428fcb7f88220febf52ef27e8b7ff150b8 (patch) | |
tree | 42d992701317aa2a8cd4b49e32e9ece6c4ab1a19 /devel | |
parent | d993d1bcae5f8fb1ffeae8029ff687e5013c175e (diff) | |
download | ports-80892d428fcb7f88220febf52ef27e8b7ff150b8.tar.gz ports-80892d428fcb7f88220febf52ef27e8b7ff150b8.zip |
Notes
Diffstat (limited to 'devel')
-rw-r--r-- | devel/qross/Makefile | 25 | ||||
-rw-r--r-- | devel/qross/files/CMakeLists.txt | 9 | ||||
-rw-r--r-- | devel/qross/pkg-plist | 2 |
3 files changed, 30 insertions, 6 deletions
diff --git a/devel/qross/Makefile b/devel/qross/Makefile index a8ea2d390444..dc4903f8a209 100644 --- a/devel/qross/Makefile +++ b/devel/qross/Makefile @@ -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 diff --git a/devel/qross/files/CMakeLists.txt b/devel/qross/files/CMakeLists.txt new file mode 100644 index 000000000000..3bd62cb90abd --- /dev/null +++ b/devel/qross/files/CMakeLists.txt @@ -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) diff --git a/devel/qross/pkg-plist b/devel/qross/pkg-plist index 733294768390..b4393f532583 100644 --- a/devel/qross/pkg-plist +++ b/devel/qross/pkg-plist @@ -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 |