diff options
author | dmcmahill <dmcmahill@pkgsrc.org> | 2003-05-07 11:55:03 +0000 |
---|---|---|
committer | dmcmahill <dmcmahill@pkgsrc.org> | 2003-05-07 11:55:03 +0000 |
commit | 64ae3e34288471cfaa52195171d9cdc12de2f02c (patch) | |
tree | cb12c766e6c9a535ac994fee92eca2c9b0d94f43 | |
parent | b3233491684ce29a4f45922257e021916669d419 (diff) | |
download | pkgsrc-64ae3e34288471cfaa52195171d9cdc12de2f02c.tar.gz |
import cmake-1.6.6
CMake is an extensible, open-source system that manages the build
process in an operating system and compiler independent manner. Unlike
many cross-platform systems, CMake is designed to be used in
conjunction with the native build environment. Simple configuration
files placed in each source directory (called CMakeLists.txt files)
are used to generate standard build files (e.g., makefiles on Unix and
projects/workspaces in Windows MSVC) which are used in the usual
way. CMake can compile source code, create libraries, generate
wrappers, and build executables in arbitrary combinations. CMake
supports in-place and out-of-place builds, and can therefore support
multiple builds from a single source tree. CMake also supports static
and dynamic library builds. Another nice feature of CMake is that it
generates a cache file that is designed to be used with a graphical
editor. For example, when CMake runs, it locates include files,
libraries, and executable, and may encounter optional build
directives. This information is gathered into the cache, which may be
changed by the user prior to the generation of the native build files.
-rw-r--r-- | devel/cmake/DESCR | 17 | ||||
-rw-r--r-- | devel/cmake/Makefile | 23 | ||||
-rw-r--r-- | devel/cmake/PLIST | 137 | ||||
-rw-r--r-- | devel/cmake/distinfo | 7 | ||||
-rw-r--r-- | devel/cmake/patches/patch-aa | 28 | ||||
-rw-r--r-- | devel/cmake/patches/patch-ab | 24 | ||||
-rw-r--r-- | devel/cmake/patches/patch-ac | 28 |
7 files changed, 264 insertions, 0 deletions
diff --git a/devel/cmake/DESCR b/devel/cmake/DESCR new file mode 100644 index 00000000000..ac00980bebf --- /dev/null +++ b/devel/cmake/DESCR @@ -0,0 +1,17 @@ +CMake is an extensible, open-source system that manages the build +process in an operating system and compiler independent manner. Unlike +many cross-platform systems, CMake is designed to be used in +conjunction with the native build environment. Simple configuration +files placed in each source directory (called CMakeLists.txt files) +are used to generate standard build files (e.g., makefiles on Unix and +projects/workspaces in Windows MSVC) which are used in the usual +way. CMake can compile source code, create libraries, generate +wrappers, and build executables in arbitrary combinations. CMake +supports in-place and out-of-place builds, and can therefore support +multiple builds from a single source tree. CMake also supports static +and dynamic library builds. Another nice feature of CMake is that it +generates a cache file that is designed to be used with a graphical +editor. For example, when CMake runs, it locates include files, +libraries, and executable, and may encounter optional build +directives. This information is gathered into the cache, which may be +changed by the user prior to the generation of the native build files. diff --git a/devel/cmake/Makefile b/devel/cmake/Makefile new file mode 100644 index 00000000000..bcdbb33a225 --- /dev/null +++ b/devel/cmake/Makefile @@ -0,0 +1,23 @@ +# $NetBSD: Makefile,v 1.1.1.1 2003/05/07 11:55:03 dmcmahill Exp $ +# + +DISTNAME= cmake-1.6.6 +CATEGORIES= devel +MASTER_SITES= http://www.cmake.org/files/ + +MAINTAINER= packages@netbsd.org +HOMEPAGE= http://www.cmake.org +COMMENT= cross platform make + +GNU_CONFIGURE= YES +USE_BUILDLINK2= YES +USE_GMAKE= YES +USE_NCURSES= YES + +post-patch: + ${MV} ${WRKSRC}/Modules/FindCurses.cmake ${WRKSRC}/Modules/FindCurses.cmake.bak + ${SED} 's;@prefix@;${PREFIX};g' ${WRKSRC}/Modules/FindCurses.cmake.bak > \ + ${WRKSRC}/Modules/FindCurses.cmake + +.include "../../devel/ncurses/buildlink2.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/devel/cmake/PLIST b/devel/cmake/PLIST new file mode 100644 index 00000000000..edc2bf49d80 --- /dev/null +++ b/devel/cmake/PLIST @@ -0,0 +1,137 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2003/05/07 11:55:03 dmcmahill Exp $ +bin/ccmake +bin/cmake +bin/cmaketest +bin/ctest +man/man1/cmake.1 +share/CMake/Modules/CMakeBackwardCompatibilityC.cmake +share/CMake/Modules/CMakeBackwardCompatibilityCXX.cmake +share/CMake/Modules/CMakeBorlandFindMake.cmake +share/CMake/Modules/CMakeBuildSettings.cmake.in +share/CMake/Modules/CMakeCCompiler.cmake.in +share/CMake/Modules/CMakeCXXCompiler.cmake.in +share/CMake/Modules/CMakeDefaultMakeRuleVariables.cmake +share/CMake/Modules/CMakeDetermineCCompiler.cmake +share/CMake/Modules/CMakeDetermineCXXCompiler.cmake +share/CMake/Modules/CMakeDetermineJavaCompiler.cmake +share/CMake/Modules/CMakeDetermineSystem.cmake +share/CMake/Modules/CMakeExportBuildSettings.cmake +share/CMake/Modules/CMakeImportBuildSettings.cmake +share/CMake/Modules/CMakeJavaCompiler.cmake.in +share/CMake/Modules/CMakeNMakeFindMake.cmake +share/CMake/Modules/CMakePrintSystemInformation.cmake +share/CMake/Modules/CMakeSystem.cmake.in +share/CMake/Modules/CMakeSystemSpecificInformation.cmake +share/CMake/Modules/CMakeTestCCompiler.cmake +share/CMake/Modules/CMakeTestCXXCompiler.cmake +share/CMake/Modules/CMakeTestGNU.c +share/CMake/Modules/CMakeUnixFindMake.cmake +share/CMake/Modules/CMakeVS6BackwardCompatibility.cmake +share/CMake/Modules/CMakeVS6FindMake.cmake +share/CMake/Modules/CMakeVS7BackwardCompatibility.cmake +share/CMake/Modules/CMakeVS7FindMake.cmake +share/CMake/Modules/CheckFunctionExists.c +share/CMake/Modules/CheckFunctionExists.cmake +share/CMake/Modules/CheckIncludeFile.c.in +share/CMake/Modules/CheckIncludeFile.cmake +share/CMake/Modules/CheckIncludeFile.cxx.in +share/CMake/Modules/CheckIncludeFileCXX.cmake +share/CMake/Modules/CheckIncludeFiles.cmake +share/CMake/Modules/CheckLibraryExists.cmake +share/CMake/Modules/CheckLibraryExists.lists.in +share/CMake/Modules/CheckSizeOf.cmake +share/CMake/Modules/CheckSymbolExists.cmake +share/CMake/Modules/CheckTypeSize.c +share/CMake/Modules/CheckTypeSize.cmake +share/CMake/Modules/CheckVariableExists.c +share/CMake/Modules/CheckVariableExists.cmake +share/CMake/Modules/Dart.cmake +share/CMake/Modules/Documentation.cmake +share/CMake/Modules/DummyCXXFile.cxx +share/CMake/Modules/FindAVIFile.cmake +share/CMake/Modules/FindCABLE.cmake +share/CMake/Modules/FindCurses.cmake +share/CMake/Modules/FindCygwin.cmake +share/CMake/Modules/FindDart.cmake +share/CMake/Modules/FindDoxygen.cmake +share/CMake/Modules/FindFLTK.cmake +share/CMake/Modules/FindGCCXML.cmake +share/CMake/Modules/FindGLU.cmake +share/CMake/Modules/FindGLUT.cmake +share/CMake/Modules/FindGTK.cmake +share/CMake/Modules/FindGnuplot.cmake +share/CMake/Modules/FindHTMLHelp.cmake +share/CMake/Modules/FindITK.cmake +share/CMake/Modules/FindImageMagick.cmake +share/CMake/Modules/FindJNI.cmake +share/CMake/Modules/FindJPEG.cmake +share/CMake/Modules/FindJava.cmake +share/CMake/Modules/FindLATEX.cmake +share/CMake/Modules/FindMFC.cmake +share/CMake/Modules/FindMPEG.cmake +share/CMake/Modules/FindMPEG2.cmake +share/CMake/Modules/FindMPI.cmake +share/CMake/Modules/FindOpenGL.cmake +share/CMake/Modules/FindPNG.cmake +share/CMake/Modules/FindPerl.cmake +share/CMake/Modules/FindPythonLibs.cmake +share/CMake/Modules/FindQt.cmake +share/CMake/Modules/FindSDL.cmake +share/CMake/Modules/FindSelfPackers.cmake +share/CMake/Modules/FindTCL.cmake +share/CMake/Modules/FindTIFF.cmake +share/CMake/Modules/FindTclsh.cmake +share/CMake/Modules/FindThreads.cmake +share/CMake/Modules/FindUnixCommands.cmake +share/CMake/Modules/FindVTK.cmake +share/CMake/Modules/FindWget.cmake +share/CMake/Modules/FindWish.cmake +share/CMake/Modules/FindX11.cmake +share/CMake/Modules/FindZLIB.cmake +share/CMake/Modules/FindwxWindows.cmake +share/CMake/Modules/Platform/AIX.cmake +share/CMake/Modules/Platform/BSDOS.cmake +share/CMake/Modules/Platform/CYGWIN.cmake +share/CMake/Modules/Platform/Darwin.cmake +share/CMake/Modules/Platform/FreeBSD.cmake +share/CMake/Modules/Platform/HP-UX.cmake +share/CMake/Modules/Platform/IRIX.cmake +share/CMake/Modules/Platform/IRIX64.cmake +share/CMake/Modules/Platform/Linux-como.cmake +share/CMake/Modules/Platform/Linux.cmake +share/CMake/Modules/Platform/MP-RAS.cmake +share/CMake/Modules/Platform/${OPSYS}.cmake +share/CMake/Modules/Platform/OSF1.cmake +share/CMake/Modules/Platform/OpenBSD.cmake +share/CMake/Modules/Platform/RISCos.cmake +share/CMake/Modules/Platform/SCO_SV.cmake +share/CMake/Modules/Platform/SINIX.cmake +share/CMake/Modules/Platform/SunOS.cmake +share/CMake/Modules/Platform/True64.cmake +share/CMake/Modules/Platform/ULTRIX.cmake +share/CMake/Modules/Platform/UNIX_SV.cmake +share/CMake/Modules/Platform/UnixWare.cmake +share/CMake/Modules/Platform/Windows-bcc32.cmake +share/CMake/Modules/Platform/Windows-cl.cmake +share/CMake/Modules/Platform/Windows.cmake +share/CMake/Modules/Platform/Xenix.cmake +share/CMake/Modules/Platform/gcc.cmake +share/CMake/Modules/TestBigEndian.c +share/CMake/Modules/TestBigEndian.cmake +share/CMake/Modules/TestCXXAcceptsFlag.cmake +share/CMake/Modules/TestForANSIForScope.cmake +share/CMake/Modules/TestForANSIStreamHeaders.cmake +share/CMake/Modules/TestForANSIStreamHeaders.cxx +share/CMake/Modules/TestForAnsiForScope.cxx +share/CMake/Modules/TestForSTDNamespace.cmake +share/CMake/Modules/TestForSTDNamespace.cxx +share/CMake/Modules/UseVTK40.cmake +share/CMake/Modules/UseVTKBuildSettings40.cmake +share/CMake/Modules/UseVTKConfig40.cmake +share/CMake/Templates/install-sh +share/CMake/include/cmCPluginAPI.h +@dirrm share/CMake/include +@dirrm share/CMake/Templates +@dirrm share/CMake/Modules/Platform +@dirrm share/CMake/Modules +@dirrm share/CMake diff --git a/devel/cmake/distinfo b/devel/cmake/distinfo new file mode 100644 index 00000000000..ead6e70c572 --- /dev/null +++ b/devel/cmake/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2003/05/07 11:55:03 dmcmahill Exp $ + +SHA1 (cmake-1.6.6.tar.gz) = 83cf24584a47883a7316a7cfe30cf713ee373d1d +Size (cmake-1.6.6.tar.gz) = 1101594 bytes +SHA1 (patch-aa) = 1ed1996ba7ccd2cc1d0d921cbed05f09d6a6aa09 +SHA1 (patch-ab) = e807fcf531e12fac185fa322b23c908681a8cda0 +SHA1 (patch-ac) = 2c8ec3ac81a46a4cdfe7907b9628f4b0bea94b3e diff --git a/devel/cmake/patches/patch-aa b/devel/cmake/patches/patch-aa new file mode 100644 index 00000000000..669b15dbf42 --- /dev/null +++ b/devel/cmake/patches/patch-aa @@ -0,0 +1,28 @@ +$NetBSD: patch-aa,v 1.1.1.1 2003/05/07 11:55:03 dmcmahill Exp $ + +--- Source/Makefile.in.orig Sun May 4 20:37:42 2003 ++++ Source/Makefile.in +@@ -4,13 +4,15 @@ VPATH = @srcdir@ + CMAKE_CONFIG_DIR = @CMAKE_CONFIG_DIR@ + CXX = @CXX@ + CXXFLAGS = @CMAKE_ANSI_CXXFLAGS@ -DCMAKE_ROOT_DIR='"@CMAKE_ROOT_DIR@"' @CXXFLAGS@ -DCMAKE_HAS_AUTOCONF -I${CMAKE_CONFIG_DIR}/Source ++LDFLAGS= @LDFLAGS@ ++CPPFLAGS= @CPPFLAGS@ + + .SUFFIXES: .cxx .java .class + + all: cmake + + .cxx.o: +- ${CXX} ${CXXFLAGS} -c $< -o $@ ++ ${CXX} ${CPPFLAGS} ${CXXFLAGS} -c $< -o $@ + + + OBJS = \ +@@ -61,5 +63,5 @@ cmVariableWatch.o : $(DEPENDS) + + + cmake: ${OBJS} +- ${CXX} ${OBJS} ${CXXFLAGS} -o cmake ++ ${CXX} ${OBJS} ${CXXFLAGS} -o cmake ${LDFLAGS} + diff --git a/devel/cmake/patches/patch-ab b/devel/cmake/patches/patch-ab new file mode 100644 index 00000000000..26be66fc975 --- /dev/null +++ b/devel/cmake/patches/patch-ab @@ -0,0 +1,24 @@ +$NetBSD: patch-ab,v 1.1.1.1 2003/05/07 11:55:03 dmcmahill Exp $ + +--- Source/bootstrap/Makefile.in.orig Sun May 4 20:37:42 2003 ++++ Source/bootstrap/Makefile.in +@@ -3,8 +3,9 @@ srcdir = @srcdir@/.. + + CMAKE_CONFIG_DIR = @CMAKE_CONFIG_DIR@ + CXX = @CXX@ +-CXXFLAGS = @CMAKE_ANSI_CXXFLAGS@ -DCMAKE_ROOT_DIR='"@CMAKE_ROOT_DIR@"' @CXXFLAGS@ \ ++CXXFLAGS = @CMAKE_ANSI_CXXFLAGS@ -DCMAKE_ROOT_DIR='"@CMAKE_ROOT_DIR@"' @CXXFLAGS@ @CPPFLAGS@ \ + -DCMAKE_HAS_AUTOCONF -I${CMAKE_CONFIG_DIR}/Source ++LDFLAGS= @LDFLAGS@ + + .SUFFIXES: .cxx .java .class + +@@ -67,7 +68,7 @@ cmakewizard.o : ${srcdir}/cmakewizard.cx + ${CXX} ${CXXFLAGS} -c ${srcdir}/cmakewizard.cxx -o cmakewizard.o + + cmake: ${OBJS} +- ${CXX} ${OBJS} ${CXXFLAGS} -o cmake ++ ${CXX} ${OBJS} ${CXXFLAGS} -o cmake ${LDFLAGS} + + .PHONY: clean + diff --git a/devel/cmake/patches/patch-ac b/devel/cmake/patches/patch-ac new file mode 100644 index 00000000000..d370c78d045 --- /dev/null +++ b/devel/cmake/patches/patch-ac @@ -0,0 +1,28 @@ +$NetBSD: patch-ac,v 1.1.1.1 2003/05/07 11:55:03 dmcmahill Exp $ + +--- Modules/FindCurses.cmake.orig Wed Dec 12 12:05:20 2001 ++++ Modules/FindCurses.cmake +@@ -3,18 +3,18 @@ + # + + FIND_PATH(CURSES_INCLUDE_PATH curses.h +-/usr/local/include /usr/include ++@prefix@/include /usr/include + ) + +-FIND_LIBRARY(CURSES_LIBRARY curses +-PATHS /usr/local/lib /usr/lib /lib ++FIND_LIBRARY(CURSES_LIBRARY ncurses ++PATHS @prefix@/lib /usr/lib /lib + ) + + FIND_LIBRARY(CURSES_EXTRA_LIBRARY cur_colr +-PATHS /usr/local/lib /usr/lib /lib ++PATHS @prefix@/lib /usr/lib /lib + ) + + FIND_LIBRARY(FORM_LIBRARY form +-PATHS /usr/local/lib /usr/lib /lib ++PATHS @prefix@/lib /usr/lib /lib + ) + |