Commit 43799b6a authored by makc's avatar makc
Browse files

Merge from area51 repository:

- Update ports:
	KDevelop to 4.4.1
	KDevPlatform and KDevelop-PHP to 1.4.1
- Trim Makefile header
- Convert to new options framework
- Add NSL option
- Add new port devel/kdevelop-custom-buildsystem

Courtesy of:	avilla
parent ce1969bc
......@@ -79,7 +79,7 @@ KDE4_VERSION?= 4.9.5
KDE4_BRANCH?= stable
CALLIGRA_VERSION?= 2.5.5
CALLIGRA_BRANCH?= stable
KDEVELOP_VERSION?= 4.3.1
KDEVELOP_VERSION?= 4.4.1
KDEVELOP_BRANCH?= stable
#
......
......@@ -872,6 +872,7 @@
SUBDIR += kdesdk4
SUBDIR += kdesvn-kde4
SUBDIR += kdevelop
SUBDIR += kdevelop-custom-buildsystem
SUBDIR += kdevelop-kde4
SUBDIR += kdevelop-pg-qt
SUBDIR += kdevelop-php
......
# $FreeBSD$
PORTNAME= kdevelop-custom-buildsystem
PORTVERSION= 1.2.2
CATEGORIES= devel kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= ${KDEVELOP_BRANCH}/${PORTNAME:S,-,/,}/${PORTVERSION}/src
DIST_SUBDIR= KDE
MAINTAINER= kde@FreeBSD.org
COMMENT= KDevelop custom build system plugin
LIB_DEPENDS= kdevplatforminterfaces:${PORTSDIR}/devel/kdevplatform
USE_KDE4= kdehier kdelibs kdeprefix automoc4
USE_QT4= moc_build qmake_build rcc_build uic_build
USE_BZIP2= yes
USE_CMAKE= yes
MAKE_JOBS_SAFE= yes
PLIST_FILES= lib/kde4/kcm_kdevcustombuildsystem.so \
lib/kde4/kdevcustombuildsystem.so \
share/kde4/services/kcm_kdevcustombuildsystem.desktop \
share/kde4/services/kdevcustombuildsystem.desktop
.include <bsd.port.mk>
SHA256 (KDE/kdevelop-custom-buildsystem-1.2.2.tar.bz2) = 95dcc6b01713116c14e65c8ba72161563dd4b59dd8877f36549a5da061234ae1
SIZE (KDE/kdevelop-custom-buildsystem-1.2.2.tar.bz2) = 33569
This plugin allows to handle arbitrary custom build systems with
KDevelop.
It supports setting up commands and arguments to build, configure,
clean, 'dist-clean' and install the project, so that KDevelop's
actions work as expected.
Additionally, it allows to setup include directories (or
import-directories) and defines for the project on a per-directory
basis. This allows the C++ support and other language plugins to
find file-references without manually adding them via the
include-assistant.
This should help all those that have a special build setup to still
be able to embrace the features that KDevelop has to offer.
WWW: http://www.kdevelop.org
# New ports collection makefile for: kdevelop
# Date created: Sun Aug 23 17:14:39 UTC 2009
# Whom: Golyashov Sergei <svvord@mail.ru>
#
# Created by: Golyashov Sergei <svvord@mail.ru>
# $FreeBSD$
PORTNAME= kdevelop
DISTVERSION= ${KDEVELOP_VERSION}
PORTREVISION= 2
CATEGORIES= devel kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= ${KDEVELOP_BRANCH}/kdevelop/${DISTVERSION}/src
DIST_SUBDIR= KDE
MAINTAINER= kde@FreeBSD.org
COMMENT= Opensource IDE based on KDevPlatform, KDE, and Qt libraries
COMMENT= Plugin extensible IDE for KDE
LIB_DEPENDS+= kdevplatforminterfaces.5:${PORTSDIR}/devel/kdevplatform
LIB_DEPENDS= kdevplatforminterfaces:${PORTSDIR}/devel/kdevplatform
RUN_DEPENDS= gmake:${PORTSDIR}/devel/gmake
LATEST_LINK= ${PORTNAME}-kde4
USE_KDE4= kdehier kdelibs kdeprefix sharedmime workspace automoc4
USE_QT4= qmake_build moc_build uic_build rcc_build
USE_BZIP2= yes
USE_CMAKE= yes
USE_GMAKE= yes
USE_KDE4= automoc4 kdehier kdelibs kdeprefix workspace
USE_QT4= qmake_build moc_build uic_build rcc_build
MAKE_JOBS_SAFE= yes
OPTIONS= OKTETA "Install Okteta plugin" on \
PHP "Install PHP support" on
OPTIONS_DEFINE= OKTETA PHP NLS
OPTIONS_DEFAULT= ${OPTIONS_DEFINE}
LATEST_LINK= ${PORTNAME}-kde4
OKTETA_DESC= Hex editing support via Okteta
.include <bsd.port.options.mk>
.ifndef(WITHOUT_OKTETA)
.if ${PORT_OPTIONS:MOKTETA}
LIB_DEPENDS+= okteta1core:${PORTSDIR}/devel/kdesdk4
PLIST_SUB+= OKTETA=""
.else
......@@ -39,8 +38,23 @@ CMAKE_ARGS+= WITH_LibOkteta:BOOL=FALSE
PLIST_SUB+= OKTETA="@comment "
.endif
.ifndef(WITHOUT_PHP)
RUN_DEPENDS+= ${PREFIX}/lib/kde4/kdevphplanguagesupport.so:${PORTSDIR}/devel/kdevelop-php
.if ${PORT_OPTIONS:MPHP}
RUN_DEPENDS+= ${KDE4_PREFIX}/lib/kde4/kdevphplanguagesupport.so:${PORTSDIR}/devel/kdevelop-php
.endif
.if ${PORT_OPTIONS:MNLS}
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.else
CMAKE_ARGS+= -DBUILD_po:BOOL=FALSE
PLIST_SUB+= NLS="@comment "
.endif
post-patch:
${REINPLACE_CMD} -e '/^update_xdg_mimetypes/ d; /SharedMimeInfo/ d' \
${PATCH_WRKSRC}/app/CMakeLists.txt
post-install:
@-update-mime-database ${PREFIX}/share/mime
.include <bsd.port.mk>
SHA256 (KDE/kdevelop-4.3.1.tar.bz2) = ba77977718a898a67f695b2ba106bb85124d4fa7c5706978c01ee29cc6862500
SIZE (KDE/kdevelop-4.3.1.tar.bz2) = 6189139
SHA256 (KDE/kdevelop-4.4.1.tar.bz2) = 7efac56e0390910247e8d3c4a80ce215a1dc4c75b0a1ecc5b594d8de35acde0c
SIZE (KDE/kdevelop-4.4.1.tar.bz2) = 6228685
commit 934b7b7b7571cec0e0f4affdc181807080a999cf
Author: Raphael Kubo da Costa <rakuco@FreeBSD.org>
Date: Tue May 29 16:14:00 2012 -0300
Fix finding the unordered_map header.
Apply the fix made in kdevplatform commit
d756d28f4b000d2b7af12822c935dd13754876b4.
Including unordered_map generates a warning when the compiler is not
passed the -std=c++0x option, which made the check fail when the
compilation CMake tried in check_include_file_cxx did not use it.
commit e37294eaa6694e4cf93012569f5ef947651f50e3
Author: Raphael Kubo da Costa <rakuco@FreeBSD.org>
Date: Mon May 28 15:40:15 2012 -0300
Look for ext/hash_map and unordered_map instead of checking gcc's version.
Follow-up to commits 9f8e8f662974a1035ea64f0ab9404b8858a02a57 and
5c59bd61b1df1b963959f086c5202689c084e0f3. The decision of whether to
include <ext/hash_map> or <unordered_map> for gcc/clang was based on
whether gcc > 4.3 was installed or whether clang was being used. The
latter implicitly assumed a recent enough libstdc++ version (ie. >=
4.3) was being used, which might not be the case on systems such as
FreeBSD and possibly OS X.
Instead of checking for compiler versions, we now look for these
headers: CMake first detects whether <unordered_map> is present and,
in case it is not, it looks for <ext/hash_map>. The checks in
languages/cpp/parser/parser.h have been updated as well. This should
cover all the cases being previously detected, as well as fix the
checks for FreeBSD and other systems where the build was failing
before with clang.
Reviewed-by: Millian Wolff
REVIEW: 105067
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8a3be21..bd79a69 100644
--- ./CMakeLists.txt
+++ ./CMakeLists.txt
@@ -34,6 +34,22 @@ add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
include_directories(${KDevelop_SOURCE_DIR} ${KDevelop_BINARY_DIR} ${KDE4_INCLUDES} )
+# TODO: Remove when LTS for g++ < 4.3 has ended.
+# See also: languages/cpp/parser/parser.h
+if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
+ include(CheckIncludeFileCXX)
+ set(CMAKE_REQUIRED_FLAGS "-std=c++0x")
+ check_include_file_cxx(unordered_map HAVE_UNORDERED_MAP)
+ set(CMAKE_REQUIRED_FLAGS "")
+
+ if(HAVE_UNORDERED_MAP)
+ message(STATUS "Enabling c++0x support for unordered map")
+ add_definitions( -std=c++0x ) # For unordered_map
+ else(HAVE_UNORDERED_MAP)
+ check_include_file_cxx(ext/hash_map HAVE_EXT_HASH_MAP)
+ endif(HAVE_UNORDERED_MAP)
+endif(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
+
# create config.h
include (ConfigureChecks.cmake)
configure_file (config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h )
diff --git a/config.h.cmake b/config.h.cmake
index 0c41fe4..d76b3df 100644
--- ./config.h.cmake
+++ ./config.h.cmake
@@ -8,4 +8,10 @@
/* Valgrind presence */
#cmakedefine HAVE_VALGRIND_H 1
+/* Whether <unordered_map> exists */
+#cmakedefine HAVE_UNORDERED_MAP 1
+
+/* Whether <ext/hash_map> exists */
+#cmakedefine HAVE_EXT_HASH_MAP 1
+
#endif // KDEVELOP_CONFIG_H
diff --git a/languages/cpp/CMakeLists.txt b/languages/cpp/CMakeLists.txt
index 1577a7b..94a9bec 100644
--- ./languages/cpp/CMakeLists.txt
+++ ./languages/cpp/CMakeLists.txt
@@ -9,22 +9,6 @@ include_directories(
add_definitions( -DKDE_DEFAULT_DEBUG_AREA=9007 )
-if(CMAKE_COMPILER_IS_GNUCXX)
- # TODO: Remove when LTS for g++ < 4.3 has ended.
- # See also: languages/cpp/parser/parser.h
- macro_ensure_version("4.3.0" "${_gcc_version}" GCC_IS_NEWER_THAN_4_3)
- if (GCC_IS_NEWER_THAN_4_3)
- message(STATUS "Enabling c++0x support for unordered map")
- add_definitions( -std=c++0x ) # For unordered_map
- else(GCC_IS_NEWER_THAN_4_3)
- add_definitions( -DGXX_LT_4_3 )
- endif (GCC_IS_NEWER_THAN_4_3)
-endif(CMAKE_COMPILER_IS_GNUCXX)
-if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
- # TODO: version check?
- add_definitions( -std=c++0x )
-endif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
-
add_subdirectory(parser)
add_subdirectory(cppduchain)
add_subdirectory(tests)
diff --git a/languages/cpp/parser/parser.h b/languages/cpp/parser/parser.h
index c519891..f498868 100644
--- ./languages/cpp/parser/parser.h
+++ ./languages/cpp/parser/parser.h
@@ -20,6 +20,8 @@
#ifndef PARSER_H
#define PARSER_H
+#include "config.h"
+
#include "ast.h"
#include "lexer.h"
#include "commentparser.h"
@@ -30,18 +32,18 @@
#include <cppparserexport.h>
#include "commentformatter.h"
-#ifdef Q_CC_MSVC
-#include <hash_map>
-using namespace stdext;
+#if defined(HAVE_UNORDERED_MAP) // CXX-0
+#include <unordered_map>
+template <class Key, class Data>
+class hash_map : public std::unordered_map<Key, Data> { };
-#elif defined GXX_LT_4_3
+#elif defined(HAVE_EXT_HASH_MAP)
#include <ext/hash_map>
using namespace __gnu_cxx;
-#else // CXX-0
-#include <unordered_map>
-template <class Key, class Data>
-class hash_map : public std::unordered_map<Key, Data> { };
+#elif defined(Q_CC_MSVC)
+#include <hash_map>
+using namespace stdext;
#endif
class TokenStream;
commit 6b95b832d72696df0278ac7b9d290c96b798ef07
Author: Milian Wolff <mail@milianw.de>
Date: Tue Apr 17 11:14:02 2012 +0200
Fix gcc include-path and macro computation on machines with old GCC.
Whe default to calling GCC with -std=c++0x and fallback to a call
without that argument when the former fails.
BUG: 298252
diff --git a/languages/cpp/setuphelpers.cpp b/languages/cpp/setuphelpers.cpp
index d3ced10..59bb850 100644
--- languages/cpp/setuphelpers.cpp
+++ languages/cpp/setuphelpers.cpp
@@ -31,12 +31,13 @@
using namespace KDevelop;
namespace CppTools {
-QStringList gccSetupStandardIncludePaths();
-const QVector<rpp::pp_macro*>& gccStandardMacros();
#ifdef _MSC_VER
QStringList msvcSetupStandardIncludePaths();
const QVector<rpp::pp_macro*>& msvcStandardMacros();
+#else
+QStringList gccSetupStandardIncludePaths();
+const QVector<rpp::pp_macro*>& gccStandardMacros();
#endif
QStringList setupStandardIncludePaths()
diff --git a/languages/cpp/setuphelpers_gcc.cpp b/languages/cpp/setuphelpers_gcc.cpp
index 5b8fdda..83c6052 100644
--- languages/cpp/setuphelpers_gcc.cpp
+++ languages/cpp/setuphelpers_gcc.cpp
@@ -40,7 +40,7 @@ using namespace KDevelop;
namespace CppTools {
-QStringList gccSetupStandardIncludePaths()
+QStringList gccSetupStandardIncludePaths(bool withStdCpp0x)
{
QStringList includePaths;
@@ -59,7 +59,12 @@ QStringList gccSetupStandardIncludePaths()
// /usr/lib/gcc/i486-linux-gnu/4.1.2/include
// /usr/include
// End of search list.
- proc <<"gcc" << "-std=c++0x" <<"-xc++" <<"-E" <<"-v" <<NULL_DEVICE;
+ proc << "gcc";
+ if (withStdCpp0x) {
+ // see also: https://bugs.kde.org/show_bug.cgi?id=298252
+ proc << "-std=c++0x";
+ }
+ proc << "-xc++" << "-E" << "-v" << NULL_DEVICE;
// We'll use the following constants to know what we're currently parsing.
const short parsingInitial = 0;
@@ -100,6 +105,9 @@ QStringList gccSetupStandardIncludePaths()
}
}
}
+ } else if (withStdCpp0x) {
+ // fallback to include-path computation without -std=c++0x arg for old gcc versions
+ return gccSetupStandardIncludePaths(false);
} else {
kDebug(9007) <<"Unable to read standard c++ macro definitions from gcc:" <<QString(proc.readAll()) ;
}
@@ -107,7 +115,12 @@ QStringList gccSetupStandardIncludePaths()
return includePaths;
}
-QVector<rpp::pp_macro*> computeGccStandardMacros()
+QStringList gccSetupStandardIncludePaths()
+{
+ return gccSetupStandardIncludePaths(true);
+}
+
+QVector<rpp::pp_macro*> computeGccStandardMacros(bool withStdCpp0x = true)
{
QVector<rpp::pp_macro*> ret;
//Get standard macros from gcc
@@ -117,7 +130,12 @@ QVector<rpp::pp_macro*> computeGccStandardMacros()
// The output of the following gcc commands is several line in the format:
// "#define MACRO [definition]", where definition may or may not be present.
// Parsing each line sequentially, we can easily build the macro set.
- proc <<"gcc" << "-std=c++0x" <<"-xc++" <<"-E" <<"-dM" <<NULL_DEVICE;
+ proc << "gcc";
+ if (withStdCpp0x) {
+ // see also: https://bugs.kde.org/show_bug.cgi?id=298252
+ proc << "-std=c++0x";
+ }
+ proc << "-xc++" << "-E" << "-dM" <<NULL_DEVICE;
if (proc.execute(5000) == 0) {
QString line;
@@ -141,6 +159,9 @@ QVector<rpp::pp_macro*> computeGccStandardMacros()
}
}
}
+ } else if (withStdCpp0x) {
+ // fallback to macro computation without -std=c++0x arg for old gcc versions
+ return computeGccStandardMacros(false);
} else {
kDebug(9007) <<"Unable to read standard c++ macro definitions from gcc:" <<QString(proc.readAll()) ;
}
--- ./languages/cpp/includepathresolver.cpp.orig 2012-08-01 12:42:36.000000000 -0700
+++ ./languages/cpp/includepathresolver.cpp 2012-09-26 18:24:36.912829509 -0700
@@ -198,7 +198,7 @@
return "unsermake -k --no-real-compare -n " + makeParameters;
} else {
QString relativeFile = KUrl::relativePath(workingDirectory, absoluteFile);
- return "make -k --no-print-directory -W \'" + absoluteFile + "\' -W \'" + relativeFile + "\' -n " + makeParameters;
+ return "gmake -k --no-print-directory -W \'" + absoluteFile + "\' -W \'" + relativeFile + "\' -n " + makeParameters;
}
}
A free, opensource IDE (Integrated Development Environment) for MS
Windows, Mac OS X, Linux, Solaris and FreeBSD. It is a feature-full,
plugin extendable IDE for C/C++ and other programming languages. It is
based on KDevPlatform, KDE and Qt libraries and it's under development
since 1998.
Open source, feature-full, plugin extensible IDE for C/C++ and other
programming languages. It is based on KDevPlatform and the KDE and
Qt libraries, and it's under development since 1998.
WWW: http://www.kdevelop.org/
WWW: http://www.kdevelop.org
This diff is collapsed.
# New ports collection makefile for: kdevelop-pg-qt
# Date created: Thu Nov 4 13:35:29 UTC 2010
# Whom: Douglas Carmichael <dcarmich@dcarmichael.net>
#
# Created by: Douglas Carmichael <dcarmich@dcarmichael.net>
# $FreeBSD$
PORTNAME= kdevelop
......@@ -19,12 +16,12 @@ COMMENT= Parser-generator from KDevplatform
BUILD_DEPENDS= ${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex
USE_GCC= 4.6+
USE_GCC= 4.6+
USE_BZIP2= yes
USE_BISON= build
USE_KDE4= automoc4 kdehier kdelibs kdeprefix
KDE4_BUILDENV= yes
USE_QT4= corelib qmake_build moc_build uic_build rcc_build
USE_QT4= qmake_build moc_build uic_build rcc_build
MAKE_JOBS_SAFE= yes
.include <bsd.port.mk>
# New ports collection makefile for: kdevelop-php-docs
# Date created: 4 April 2010
# Whom: Alberto Villa <avilla@FreeBSD.org>
#
# $FreeBSD$
PORTNAME= kdevelop
PORTNAME= kdevelop-php-docs
PORTVERSION= ${KDEVELOP_VERSION:S/4./1./}
PORTREVISION= 1
CATEGORIES= devel kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= ${KDEVELOP_BRANCH}/kdevelop/${KDEVELOP_VERSION}/src
PKGNAMESUFFIX= -php-docs
DISTNAME= ${PORTNAME}${PKGNAMESUFFIX}-${PORTVERSION}
DIST_SUBDIR= KDE
MAINTAINER= kde@FreeBSD.org
COMMENT= PHP documentation for KDevelop
LIB_DEPENDS= kdevplatforminterfaces.5:${PORTSDIR}/devel/kdevplatform
LIB_DEPENDS= kdevplatforminterfaces:${PORTSDIR}/devel/kdevplatform
USE_BZIP2= yes
USE_KDE4= automoc4 kdehier kdelibs kdeprefix
KDE4_BUILDENV= yes
USE_KDE4= kdehier kdelibs kdeprefix automoc4
USE_QT4= moc_build qmake_build rcc_build uic_build
USE_BZIP2= yes
USE_CMAKE= yes
MAKE_JOBS_SAFE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
USE_GETTEXT= yes
PLIST_SUB+= NLS=""
.else
CMAKE_ARGS+= -DBUILD_po:BOOL=Off
PLIST_SUB+= NLS="@comment "
.endif
.include <bsd.port.mk>
SHA256 (KDE/kdevelop-php-docs-1.3.1.tar.bz2) = 2180e22fa6697e90fce4027334c79ca982d8ecec853643473b7548193acf1c57
SIZE (KDE/kdevelop-php-docs-1.3.1.tar.bz2) = 30644
SHA256 (KDE/kdevelop-php-docs-1.4.1.tar.bz2) = 24600e66ccd1298640106d02b02b71ddd27e14b6c013f78a6d2b2404c63d66c9
SIZE (KDE/kdevelop-php-docs-1.4.1.tar.bz2) = 32024
A free, opensource IDE (Integrated Development Environment) for MS
Windows, Mac OS X, Linux, Solaris and FreeBSD. It is a feature-full,
plugin extendable IDE for C/C++ and other programming languages. It is
based on KDevPlatform, KDE and Qt libraries and it's under development
since 1998.
Open source, feature-full, plugin extensible IDE for C/C++ and other
programming languages. It is based on KDevPlatform and the KDE and
Qt libraries, and it's under development since 1998.
This package integrates PHP.net online documentation.
WWW: http://www.kdevelop.org/
WWW: http://www.kdevelop.org
......@@ -3,26 +3,27 @@ lib/kde4/kdevphpdocs_config.so
share/config.kcfg/phpdocssettings.kcfg
share/kde4/services/kdevphpdocs.desktop
share/kde4/services/kdevphpdocs_config.desktop
share/locale/ca/LC_MESSAGES/kdevphpdocs.mo
share/locale/ca@valencia/LC_MESSAGES/kdevphpdocs.mo
share/locale/da/LC_MESSAGES/kdevphpdocs.mo
share/locale/de/LC_MESSAGES/kdevphpdocs.mo
share/locale/en_GB/LC_MESSAGES/kdevphpdocs.mo
share/locale/es/LC_MESSAGES/kdevphpdocs.mo
share/locale/et/LC_MESSAGES/kdevphpdocs.mo
share/locale/fi/LC_MESSAGES/kdevphpdocs.mo
share/locale/fr/LC_MESSAGES/kdevphpdocs.mo
share/locale/gl/LC_MESSAGES/kdevphpdocs.mo
share/locale/it/LC_MESSAGES/kdevphpdocs.mo
share/locale/nb/LC_MESSAGES/kdevphpdocs.mo
share/locale/nds/LC_MESSAGES/kdevphpdocs.mo
share/locale/nl/LC_MESSAGES/kdevphpdocs.mo
share/locale/pl/LC_MESSAGES/kdevphpdocs.mo
share/locale/pt/LC_MESSAGES/kdevphpdocs.mo
share/locale/pt_BR/LC_MESSAGES/kdevphpdocs.mo
share/locale/ru/LC_MESSAGES/kdevphpdocs.mo
share/locale/sk/LC_MESSAGES/kdevphpdocs.mo
share/locale/sv/LC_MESSAGES/kdevphpdocs.mo
share/locale/uk/LC_MESSAGES/kdevphpdocs.mo
share/locale/zh_CN/LC_MESSAGES/kdevphpdocs.mo
share/locale/zh_TW/LC_MESSAGES/kdevphpdocs.mo
%%NLS%%share/locale/ca/LC_MESSAGES/kdevphpdocs.mo
%%NLS%%share/locale/ca@valencia/LC_MESSAGES/kdevphpdocs.mo
%%NLS%%share/locale/da/LC_MESSAGES/kdevphpdocs.mo
%%NLS%%share/locale/de/LC_MESSAGES/kdevphpdocs.mo
%%NLS%%share/locale/en_GB/LC_MESSAGES/kdevphpdocs.mo
%%NLS%%share/locale/es/LC_MESSAGES/kdevphpdocs.mo
%%NLS%%share/locale/et/LC_MESSAGES/kdevphpdocs.mo
%%NLS%%share/locale/fi/LC_MESSAGES/kdevphpdocs.mo
%%NLS%%share/locale/fr/LC_MESSAGES/kdevphpdocs.mo
%%NLS%%share/locale/gl/LC_MESSAGES/kdevphpdocs.mo
%%NLS%%share/locale/hu/LC_MESSAGES/kdevphpdocs.mo
%%NLS%%share/locale/it/LC_MESSAGES/kdevphpdocs.mo
%%NLS%%share/locale/nb/LC_MESSAGES/kdevphpdocs.mo
%%NLS%%share/locale/nds/LC_MESSAGES/kdevphpdocs.mo
%%NLS%%share/locale/nl/LC_MESSAGES/kdevphpdocs.mo
%%NLS%%share/locale/pl/LC_MESSAGES/kdevphpdocs.mo
%%NLS%%share/locale/pt/LC_MESSAGES/kdevphpdocs.mo
%%NLS%%share/locale/pt_BR/LC_MESSAGES/kdevphpdocs.mo
%%NLS%%share/locale/ru/LC_MESSAGES/kdevphpdocs.mo
%%NLS%%share/locale/sk/LC_MESSAGES/kdevphpdocs.mo
%%NLS%%share/locale/sv/LC_MESSAGES/kdevphpdocs.mo
%%NLS%%share/locale/uk/LC_MESSAGES/kdevphpdocs.mo
%%NLS%%share/locale/zh_CN/LC_MESSAGES/kdevphpdocs.mo
%%NLS%%share/locale/zh_TW/LC_MESSAGES/kdevphpdocs.mo
# New ports collection makefile for: kdevelop-php
# Date created: 4 April 2010
# Whom: Alberto Villa <avilla@FreeBSD.org>
#
# $FreeBSD$
PORTNAME= kdevelop
PORTNAME= kdevelop-php
PORTVERSION= ${KDEVELOP_VERSION:S/4./1./}
PORTREVISION= 1
CATEGORIES= devel kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= ${KDEVELOP_BRANCH}/kdevelop/${KDEVELOP_VERSION}/src
PKGNAMESUFFIX= -php
DISTNAME= ${PORTNAME}${PKGNAMESUFFIX}-${PORTVERSION}
DIST_SUBDIR= KDE
MAINTAINER= kde@FreeBSD.org
COMMENT= PHP support for KDevelop
LIB_DEPENDS= kdevplatforminterfaces:${PORTSDIR}/devel/kdevplatform
BUILD_DEPENDS= ${KDE4_PREFIX}/bin/kdev-pg-qt:${PORTSDIR}/devel/kdevelop-pg-qt
LIB_DEPENDS= kdevplatforminterfaces.5:${PORTSDIR}/devel/kdevplatform
USE_KDE4= kdehier kdelibs kdeprefix automoc4
USE_QT4= moc_build qmake_build rcc_build uic_build
USE_BZIP2= yes
USE_CMAKE= yes
USE_GMAKE= yes
USE_KDE4= automoc4 kdehier kdelibs kdeprefix
USE_QT4= moc_build qmake_build rcc_build uic_build
MAKE_JOBS_UNSAFE= yes
OPTIONS= DOCS "Integrate with PHP.net online documentation" on
OPTIONS_DEFINE= PHPDOCS NLS
OPTIONS_DEFAULT= ${OPTIONS_DEFINE}
PHPDOCS_DESC= Integrate with PHP.net documentation
.include <bsd.port.options.mk>
.ifdef(WITH_DOCS)
.if ${PORT_OPTIONS:MPHPDOCS}
RUN_DEPENDS+= ${KDE4_PREFIX}/lib/kde4/kdevphpdocs.so:${PORTSDIR}/devel/kdevelop-php-docs
.endif
.if ${PORT_OPTIONS:MNLS}
USE_GETTEXT= yes
PLIST_SUB+= NLS=""