diff options
author | Max Brazhnikov <makc@FreeBSD.org> | 2009-05-09 19:38:16 +0000 |
---|---|---|
committer | Max Brazhnikov <makc@FreeBSD.org> | 2009-05-09 19:38:16 +0000 |
commit | c4efb99db9a863fc5634862ec14c82f8eeeae58f (patch) | |
tree | 93caf9fe09ed5fca76b36388a4fe15de2b67e9e3 /devel/kdebindings4 | |
parent | b1df87c2ed3148118da4eb634135e84b097a5983 (diff) | |
download | ports-c4efb99db9a863fc5634862ec14c82f8eeeae58f.tar.gz ports-c4efb99db9a863fc5634862ec14c82f8eeeae58f.zip |
Notes
Diffstat (limited to 'devel/kdebindings4')
-rw-r--r-- | devel/kdebindings4/Makefile | 49 | ||||
-rw-r--r-- | devel/kdebindings4/files/Makefile.kdebindings | 69 | ||||
-rw-r--r-- | devel/kdebindings4/pkg-descr | 3 |
3 files changed, 121 insertions, 0 deletions
diff --git a/devel/kdebindings4/Makefile b/devel/kdebindings4/Makefile new file mode 100644 index 000000000000..732809591ca1 --- /dev/null +++ b/devel/kdebindings4/Makefile @@ -0,0 +1,49 @@ +# New ports collection makefile for: kdebindings4 +# Date created: 2008-08-19 +# Whom: Max Brazhnikov <makc@issp.ac.ru> +# +# $FreeBSD$ +# + +PORTNAME= kdebindings +PORTVERSION= ${KDE4_VERSION} +CATEGORIES= devel kde +MASTER_SITES= # empty +DISTFILES= # none + +MAINTAINER= kde@FreeBSD.org +COMMENT= KDE bindings meta port + +USE_KDE4= kdeprefix +NO_BUILD= yes +NO_INSTALL= yes + +# OPTIONS+= CSHARP "C# bindings" on +# OPTIONS+= JAVA "Java bindings" on +# OPTIONS+= PHP "PHP bindings" on +OPTIONS+= PYTHON "Python bindings" on +# OPTIONS+= RUBY "Ruby bindings" on + +.include <bsd.port.pre.mk> + +# .if !defined(WITHOUT_CSHARP) +# RUN_DEPENDS+= kdebindings-csharp>=4.1.0:${PORTSDIR}/devel/kdebindings4-csharp +# .endif +# +# .if !defined(WITHOUT_JAVA) +# RUN_DEPENDS+= kdebindings-java>=4.1.0:${PORTSDIR}/devel/kdebindings4-java +# .endif +# +# .if !defined(WITHOUT_PHP) +# RUN_DEPENDS+= kdebindings-php>=4.1.0:${PORTSDIR}/devel/kdebindings4-php +# .endif + +.if !defined(WITHOUT_PYTHON) +RUN_DEPENDS+= kdebindings-python>=4.1.0:${PORTSDIR}/devel/kdebindings4-python +.endif + +# .if !defined(WITHOUT_RUBY) +# RUN_DEPENDS+= kdebindings-ruby>=4.1.0:${PORTSDIR}/devel/kdebindings4-ruby +# .endif + +.include <bsd.port.post.mk> diff --git a/devel/kdebindings4/files/Makefile.kdebindings b/devel/kdebindings4/files/Makefile.kdebindings new file mode 100644 index 000000000000..b545e8e216b0 --- /dev/null +++ b/devel/kdebindings4/files/Makefile.kdebindings @@ -0,0 +1,69 @@ +# New ports collection makefile for: kdebindings4 +# Date created: 2008-08-19 +# Whom: Max Brazhnikov <makc@issp.ac.ru> +# +# $FreeBSD$ +# + +MASTER_SITES= ${MASTER_SITE_KDE} +MASTER_SITE_SUBDIR= ${KDE4_BRANCH}/${PORTVERSION}/src +PKGNAMEPREFIX?= ${${BINDLANG}_PKGNAMEPREFIX} +PKGNAMESUFFIX?= ${${BINDLANG}_PKGNAMESUFFIX} +DIST_SUBDIR= KDE + +COMMENT?= ${${BINDLANG}_COMMENT} + +USE_BZIP2= yes +USE_CMAKE= yes +USE_KDE4+= kdelibs automoc4 kdehier kdeprefix +USE_QT_VER= 4 +QT_COMPONENTS+= corelib qmake_build moc_build uic_build rcc_build + +BUILD_WRKSRC?= ${WRKSRC}/${BINDLANG}/${BINDMODULE} +INSTALL_WRKSRC?=${BUILD_WRKSRC} + +# Available languages +_BINDLANG_ALL= csharp java php python ruby smoke + +# csharp_COMMENT= C\# bindings for Qt/KDE: ${BINDMODULE} module +# java_COMMENT= Java bindings for Qt/KDE: ${BINDMODULE} module +# php_COMMENT= PHP bindings for Qt/KDE: ${BINDMODULE} module +python_COMMENT= Python bindings for Qt/KDE: ${BINDMODULE} module +ruby_COMMENT= Ruby bindings for Qt/KDE: ${BINDMODULE} module +smoke_COMMENT= SMOKE bindings for Qt/KDE: ${BINDMODULE} module + +python_PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +ruby_PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} + +python_PKGNAMESUFFIX= -${BINDMODULE} +ruby_PKGNAMESUFFIX= -${BINDMODULE} +smoke_PKGNAMESUFFIX= -${BINDLANG}-${BINDMODULE} + +# Don't extract unnecessary stuff +DO_NOT_EXTRACT?=${_BINDLANG_ALL:S/${BINDLANG}//} + +EXTRACT_AFTER_ARGS= | ${TAR} -xf - +.for dne in ${DO_NOT_EXTRACT} +EXTRACT_AFTER_ARGS+= --exclude '${DISTNAME}/${dne}' +.endfor + +#should this be moved to bsd.cmake.mk ? +CMAKE_ARGS+= -DDEFAULT_PYTHON_EXECUTABLE=${PYTHON_VERSION} + +#keep syncing this with devel/py-sip +SIPDIR_REL= share/py-sip + +# additional targets +pre-configure: kdebindings-${BINDLANG}-pre-configure + +kdebindings-python-pre-configure: + @${DO_NADA} + +kdebindings-ruby-pre-configure: + @${DO_NADA} + +kdebindings-smoke-pre-configure: + ${CP} ${.CURDIR}/../../devel/kdebindings4-${BINDLANG}/files/CMakeLists.txt \ + ${WRKSRC}/${BINDLANG} + ${REINPLACE_CMD} -e 's|moduledir|${BINDMODULE}|' \ + ${WRKSRC}/${BINDLANG}/CMakeLists.txt diff --git a/devel/kdebindings4/pkg-descr b/devel/kdebindings4/pkg-descr new file mode 100644 index 000000000000..6f3f76a0a82d --- /dev/null +++ b/devel/kdebindings4/pkg-descr @@ -0,0 +1,3 @@ +This is a meta port of KDE bindings for C#, Java, PHP, Python and Ruby. + +WWW: http://www.kde.org/ |