-
Notifications
You must be signed in to change notification settings - Fork 0
/
cmake.cygport
63 lines (57 loc) · 1.92 KB
/
cmake.cygport
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
inherit emacs qt5
NAME="cmake"
VERSION=3.6.2
RELEASE=1
CATEGORY="Devel"
SUMMARY="Cross-platform makefile generation system"
DESCRIPTION="CMake is used to control the software compilation process using
simple platform and compiler independent configuration files. CMake generates
native makefiles and workspaces that can be used in the compiler environment
of your choice. CMake is quite sophisticated: it is possible to support
complex environments requiring system configuration, pre-processor generation,
code generation, and template instantiation."
HOMEPAGE="http://www.cmake.org/"
SRC_URI="http://www.cmake.org/files/v3.6/cmake-${VERSION}.tar.gz"
PATCH_URI="
3.6.2-case-sensitivity.patch
3.6.2-cpuinfo.patch
3.6.2-cygwin-paths.patch
2.8.9-perl-libs.patch
3.6.2-ruby.patch
2.8.12-opengl.patch
3.0.2-tclsh.patch
"
PKG_NAMES="${NAME} ${NAME}-gui ${NAME}-doc emacs-cmake"
cmake_CONTENTS="--exclude=cmake-gui.* usr/bin/ usr/share/aclocal/
usr/share/cmake*/ usr/share/man/"
cmake_gui_SUMMARY="${SUMMARY} (GUI)"
cmake_gui_REQUIRES=${NAME}
cmake_gui_CONTENTS="etc/ usr/bin/cmake-gui.exe usr/share/applications/
usr/share/man/man1/cmake-gui.*
usr/share/cmake*/Help/manual/cmake-gui.1.rst
usr/share/icons/ usr/share/mime/"
cmake_doc_SUMMARY="${SUMMARY} (documentation)"
cmake_doc_CONTENTS="usr/share/doc/"
emacs_cmake_CATEGORY="Editors"
emacs_cmake_SUMMARY="${SUMMARY} (Emacs mode)"
emacs_cmake_REQUIRES=${NAME}
emacs_cmake_CONTENTS="usr/share/emacs/"
src_compile() {
cd ${B}
export CC CXX
${S}/bootstrap \
--prefix=/usr \
--datadir=/share/${NAME}-${VERSION} \
--docdir=/share/doc/${NAME} \
--mandir=/share/man \
--qt-gui --qt-qmake=${QT5_QMAKE} \
--system-libs --no-system-jsoncpp \
--sphinx-man --sphinx-html \
|| error "bootstrap failed"
cygmake
}
src_install() {
cd ${B}
cyginstall
doemacs ${D}/usr/share/${NAME}-${VERSION}/editors/emacs/cmake-mode.el
}