2008-05-28 00:12:09 +02:00
|
|
|
#-*- mode: Makefile; tab-width: 4; -*-
|
|
|
|
# ex:ts=4
|
|
|
|
#
|
|
|
|
# USE_CMAKE - If set, this port uses cmake.
|
|
|
|
#
|
|
|
|
# CMAKE_ENV - Environment passed to cmake.
|
|
|
|
# Default: ${CONFIGURE_ENV}
|
|
|
|
# CMAKE_ARGS - Arguments passed to cmake
|
|
|
|
# Default: see below
|
2009-01-30 20:25:22 +01:00
|
|
|
# CMAKE_USE_PTHREAD - Instruct cmake to use pthreads when
|
2008-05-28 00:12:09 +02:00
|
|
|
# compiling/linking
|
|
|
|
# Default: not set
|
The KDE FreeBSD team is proud to announce the release of KDE 4.2.0
for FreeBSD. The official KDE 4.2.0 (Codename: "The Answer") release
notes can be found at:
http://kde.org/announcements/4.2/index.php.
New supported languages include Arabic, Icelandic, Basque,
Hebrew, Romanian, Tajik and several Indian languages (Bengali India,
Gujarati, Kannada, Maithili, Marathi) indicating a rise in popularity in
this part of Asia.
New ports for KDE 4.2.0:
arabic/kde4-l10n Arabic
hebrew/kde4-l10n Hebrew
misc/kde4-l10n-bn_IN Bengali (India)
misc/kde4-l10n-eu Basque
misc/kde4-l10n-gu Gujarati
misc/kde4-l10n-is Icelandic
misc/kde4-l10n-kn Kannada
misc/kde4-l10n-mai Maithili
misc/kde4-l10n-mr Marathi
misc/kde4-l10n-ro Romanian
misc/kde4-l10n-tg Tajik
math/eigen2 Lightweight library for vector and matrix math
graphics/kipi-plugins-kde4 KDE4 kipi graphics plugins
sysutils/policykit-kde PolicyKit manager for KDE
Unfortunately FreeBSD 6.4 support is dropped.
We'd like to say thanks for feedback and help to:
Matt Tosto, Kris Moore, stickibit, David Johnson, Markus Brueffer,
David Naylor, Thomas Schlesinger, Warren Liddell, Thomas Abthorpe,
Diego Depaoli, Mats Andreassen, portmgr for exp-run and repocopies.
2009-02-08 21:23:45 +01:00
|
|
|
# CMAKE_BUILD_TYPE - Type of build (cmake predefined build types),
|
2010-03-31 20:07:05 +02:00
|
|
|
# affects on CFLAGS and thus should not be set.
|
The KDE FreeBSD team is proud to announce the release of KDE 4.2.0
for FreeBSD. The official KDE 4.2.0 (Codename: "The Answer") release
notes can be found at:
http://kde.org/announcements/4.2/index.php.
New supported languages include Arabic, Icelandic, Basque,
Hebrew, Romanian, Tajik and several Indian languages (Bengali India,
Gujarati, Kannada, Maithili, Marathi) indicating a rise in popularity in
this part of Asia.
New ports for KDE 4.2.0:
arabic/kde4-l10n Arabic
hebrew/kde4-l10n Hebrew
misc/kde4-l10n-bn_IN Bengali (India)
misc/kde4-l10n-eu Basque
misc/kde4-l10n-gu Gujarati
misc/kde4-l10n-is Icelandic
misc/kde4-l10n-kn Kannada
misc/kde4-l10n-mai Maithili
misc/kde4-l10n-mr Marathi
misc/kde4-l10n-ro Romanian
misc/kde4-l10n-tg Tajik
math/eigen2 Lightweight library for vector and matrix math
graphics/kipi-plugins-kde4 KDE4 kipi graphics plugins
sysutils/policykit-kde PolicyKit manager for KDE
Unfortunately FreeBSD 6.4 support is dropped.
We'd like to say thanks for feedback and help to:
Matt Tosto, Kris Moore, stickibit, David Johnson, Markus Brueffer,
David Naylor, Thomas Schlesinger, Warren Liddell, Thomas Abthorpe,
Diego Depaoli, Mats Andreassen, portmgr for exp-run and repocopies.
2009-02-08 21:23:45 +01:00
|
|
|
# Default: none (which respects CFLAGS)
|
2008-05-28 00:12:09 +02:00
|
|
|
# CMAKE_VERBOSE - Verbose build
|
|
|
|
# Default: not set
|
2010-03-03 08:48:30 +01:00
|
|
|
# CMAKE_OUTSOURCE - Instruct to perform an out-of-source build
|
|
|
|
# Default: not set
|
2008-05-28 00:12:09 +02:00
|
|
|
# CMAKE_SOURCE_PATH - Path to sourcedir for cmake
|
2010-03-03 08:48:30 +01:00
|
|
|
# Default: ${WRKSRC}
|
2008-05-28 00:12:09 +02:00
|
|
|
# CMAKE_INSTALL_PREFIX - prefix for cmake to use for installation.
|
|
|
|
# Default: ${PREFIX}
|
|
|
|
#
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
2009-09-02 00:19:47 +02:00
|
|
|
CMAKE_MAINTAINER= kde@FreeBSD.org
|
2008-05-28 00:12:09 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# CMAKE_BIN is the location where the cmake port installs the cmake
|
|
|
|
# executable
|
|
|
|
#
|
|
|
|
# CMAKE_PORT is where the cmake port is located in the ports tree
|
|
|
|
#
|
|
|
|
CMAKE_BIN= ${LOCALBASE}/bin/cmake
|
|
|
|
CMAKE_PORT= ${PORTSDIR}/devel/cmake
|
|
|
|
|
|
|
|
#
|
|
|
|
# Make sure we depend on cmake
|
|
|
|
#
|
|
|
|
BUILD_DEPENDS+= ${CMAKE_BIN}:${CMAKE_PORT}
|
|
|
|
|
|
|
|
#
|
|
|
|
# Default environment and arguments to cmake
|
|
|
|
#
|
|
|
|
CMAKE_ENV?= ${CONFIGURE_ENV}
|
|
|
|
CMAKE_ARGS+= -DCMAKE_C_COMPILER:STRING="${CC}" \
|
|
|
|
-DCMAKE_CXX_COMPILER:STRING="${CXX}" \
|
|
|
|
-DCMAKE_C_FLAGS:STRING="${CFLAGS}" \
|
|
|
|
-DCMAKE_CXX_FLAGS:STRING="${CXXFLAGS}" \
|
|
|
|
-DCMAKE_INSTALL_PREFIX:PATH="${CMAKE_INSTALL_PREFIX}" \
|
2009-03-24 20:11:23 +01:00
|
|
|
-DCMAKE_BUILD_TYPE:STRING="${CMAKE_BUILD_TYPE}" \
|
|
|
|
-DTHREADS_HAVE_PTHREAD_ARG:BOOL=YES
|
2008-05-28 00:12:09 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Default build type and sourcedir
|
|
|
|
#
|
2010-03-03 08:48:30 +01:00
|
|
|
CMAKE_SOURCE_PATH?= ${WRKSRC}
|
|
|
|
.if defined(CMAKE_OUTSOURCE)
|
|
|
|
CONFIGURE_WRKSRC= ${WRKDIR}/.build
|
|
|
|
BUILD_WRKSRC= ${CONFIGURE_WRKSRC}
|
|
|
|
INSTALL_WRKSRC= ${CONFIGURE_WRKSRC}
|
|
|
|
.endif
|
2008-05-28 00:12:09 +02:00
|
|
|
CMAKE_INSTALL_PREFIX?= ${PREFIX}
|
The KDE FreeBSD team is proud to announce the release of KDE 4.2.0
for FreeBSD. The official KDE 4.2.0 (Codename: "The Answer") release
notes can be found at:
http://kde.org/announcements/4.2/index.php.
New supported languages include Arabic, Icelandic, Basque,
Hebrew, Romanian, Tajik and several Indian languages (Bengali India,
Gujarati, Kannada, Maithili, Marathi) indicating a rise in popularity in
this part of Asia.
New ports for KDE 4.2.0:
arabic/kde4-l10n Arabic
hebrew/kde4-l10n Hebrew
misc/kde4-l10n-bn_IN Bengali (India)
misc/kde4-l10n-eu Basque
misc/kde4-l10n-gu Gujarati
misc/kde4-l10n-is Icelandic
misc/kde4-l10n-kn Kannada
misc/kde4-l10n-mai Maithili
misc/kde4-l10n-mr Marathi
misc/kde4-l10n-ro Romanian
misc/kde4-l10n-tg Tajik
math/eigen2 Lightweight library for vector and matrix math
graphics/kipi-plugins-kde4 KDE4 kipi graphics plugins
sysutils/policykit-kde PolicyKit manager for KDE
Unfortunately FreeBSD 6.4 support is dropped.
We'd like to say thanks for feedback and help to:
Matt Tosto, Kris Moore, stickibit, David Johnson, Markus Brueffer,
David Naylor, Thomas Schlesinger, Warren Liddell, Thomas Abthorpe,
Diego Depaoli, Mats Andreassen, portmgr for exp-run and repocopies.
2009-02-08 21:23:45 +01:00
|
|
|
CMAKE_BUILD_TYPE?= #none
|
2008-05-28 00:12:09 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Instruct cmake to compile/link with pthreads
|
|
|
|
#
|
|
|
|
.if defined(CMAKE_USE_PTHREAD)
|
|
|
|
CFLAGS+= ${PTHREAD_CFLAGS}
|
|
|
|
CXXFLAGS+= ${PTHREAD_CFLAGS}
|
|
|
|
|
|
|
|
CMAKE_ARGS+= -DCMAKE_THREAD_LIBS:STRING="${PTHREAD_LIBS}" \
|
|
|
|
-DCMAKE_USE_PTHREADS:BOOL=ON \
|
|
|
|
-DCMAKE_EXE_LINKER_FLAGS:STRING="${PTHREAD_LIBS}"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
#
|
2009-01-30 20:25:22 +01:00
|
|
|
# Strip binaries
|
2008-05-28 00:12:09 +02:00
|
|
|
#
|
2009-01-30 20:25:22 +01:00
|
|
|
.if !defined(WITH_DEBUG)
|
2009-03-24 20:11:23 +01:00
|
|
|
INSTALL_TARGET?= install/strip
|
2008-05-28 00:12:09 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
#
|
|
|
|
# Force makefile verbosity if needed
|
|
|
|
#
|
2008-08-10 17:43:46 +02:00
|
|
|
.if defined(CMAKE_VERBOSE) || defined(BATCH)
|
2008-05-28 00:12:09 +02:00
|
|
|
CMAKE_ARGS+= -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
|
|
|
|
.endif
|
|
|
|
|
|
|
|
#
|
|
|
|
# Redefine do-configure target
|
|
|
|
#
|
|
|
|
.if !target(do-configure)
|
|
|
|
do-configure:
|
2010-03-03 08:48:30 +01:00
|
|
|
${MKDIR} ${CONFIGURE_WRKSRC}
|
2009-01-30 20:25:22 +01:00
|
|
|
@cd ${CONFIGURE_WRKSRC}; ${SETENV} ${CMAKE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} ${CMAKE_SOURCE_PATH}
|
2008-05-28 00:12:09 +02:00
|
|
|
.endif
|