Add a native Debian package.

pull/3/head
whitequark 2015-03-20 13:49:52 +03:00
parent d3dbf23725
commit 0807c2fdfe
16 changed files with 148 additions and 1 deletions

8
.gitignore vendored
View File

@ -1,3 +1,11 @@
/CMakeCache.txt /CMakeCache.txt
/cbuild/ /cbuild/
*.trace # OpenGL apitrace files *.trace # OpenGL apitrace files
/debian/tmp/
/debian/*.log
/debian/*.substvars
/debian/files
/debian/solvespace/
/debian/libslvs1/
/debian/libslvs1-dev/
/obj-*/

View File

@ -36,6 +36,10 @@ if(WIN32)
-DWIN32_LEAN_AND_MEAN=1) -DWIN32_LEAN_AND_MEAN=1)
endif() endif()
if((CMAKE_CXX_PLATFORM_ID STREQUAL "Linux") AND CMAKE_COMPILER_IS_GNUCC)
set(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed ${CMAKE_EXE_LINKER_FLAGS}")
endif()
# dependencies # dependencies
CHECK_INCLUDE_FILE("stdint.h" HAVE_STDINT_H) CHECK_INCLUDE_FILE("stdint.h" HAVE_STDINT_H)

5
debian/changelog vendored Normal file
View File

@ -0,0 +1,5 @@
solvespace (2.1) unstable; urgency=low
* Initial Release.
-- whitequark <whitequark@whitequark.org> Fri, 20 Mar 2015 12:39:28 +0300

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
9

53
debian/control vendored Normal file
View File

@ -0,0 +1,53 @@
Source: solvespace
Section: graphics
Priority: optional
Maintainer: whitequark <whitequark@whitequark.org>
Build-Depends: debhelper (>= 9), cmake, libpng12-dev, zlib1g-dev, libjson-c-dev,
libfontconfig1-dev, libgtkmm-2.4-dev, libpangomm-1.4-dev,
libgl-dev, libglu-dev, libglew-dev,
libgd-perl
Standards-Version: 3.9.5
Homepage: http://solvespace.com
Vcs-Git: git://github.com/whitequark/solvespace
Vcs-Browser: https://github.com/whitequark/solvespace
Package: solvespace
Architecture: any
Multi-Arch: foreign
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: SolveSpace is a parametric 2d/3d CAD
SolveSpace is a parametric 2d/3d CAD program. Applications include:
.
* modeling 3d parts — draw with extrudes, revolves, and Boolean
(union / difference) operations;
* modeling 2d parts — draw the part as a single section, and export DXF,
PDF, SVG; use 3d assembly to verify fit;
* 3d-printed parts — export the STL or other triangle mesh expected by
most 3d printers;
* preparing CAM data — export 2d vector art for a waterjet machine or
laser cutter; or generate STEP or STL, for import into third-party
CAM software for machining;
* mechanism design — use the constraint solver to simulate planar or
spatial linkages, with pin, ball, or slide joints;
* plane and solid geometry — replace hand-solved trigonometry and
spreadsheets with a live dimensioned drawing.
Package: libslvs1
Section: libs
Architecture: any
Multi-Arch: same
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: SolveSpace geometric kernel
SolveSpace is a parametric 2d/3d CAD. libslvs contains the geometric
kernel of SolveSpace, built as a library.
Package: libslvs1-dev
Section: libs
Architecture: any
Multi-Arch: same
Depends: libslvs1, ${misc:Depends}
Description: SolveSpace geometric kernel (development files)
SolveSpace is a parametric 2d/3d CAD. libslvs contains the geometric
kernel of SolveSpace, built as a library.
.
This package includes development files for libslvs.

33
debian/copyright vendored Normal file
View File

@ -0,0 +1,33 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: solvespace
Source: https://github.com/whitequark/solvespace
Files: *
Copyright: 2008-2013 Jonathan Westhues.
License: GPL-3.0+
Files: debian/*
Copyright: 2015 Peter Zotov <whitequark@whitequark.org>
License: GPL-3.0+
License: GPL-3.0+
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
.
On Debian systems, the complete text of the GNU General
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
# Please also look if there are files or directories which have a
# different copyright/license attached and list them here.
# Please avoid to pick license terms that are more restrictive than the
# packaged work, as it may make Debian's contributions unacceptable upstream.

1
debian/docs vendored Normal file
View File

@ -0,0 +1 @@
COPYING.txt

1
debian/libslvs1-dev.install vendored Normal file
View File

@ -0,0 +1 @@
usr/include/slvs.h

1
debian/libslvs1.install vendored Normal file
View File

@ -0,0 +1 @@
usr/lib/**/libslvs.so*

7
debian/menu vendored Normal file
View File

@ -0,0 +1,7 @@
?package(solvespace):needs="X11" section="Applications/Graphics" \
title="SolveSpace" command="/usr/bin/solvespace" \
hints="CAD" \
icon16x16="/usr/share/pixmaps/solvespace-16x16.xpm" \
icon24x24="/usr/share/pixmaps/solvespace-24x24.xpm" \
icon32x32="/usr/share/pixmaps/solvespace-32x32.xpm" \
icon48x48="/usr/share/pixmaps/solvespace-48x48.xpm"

18
debian/rules vendored Executable file
View File

@ -0,0 +1,18 @@
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#DH_VERBOSE = 1
# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk
# main packaging script based on dh7 syntax
%:
dh $@
# debmake generated override targets
# This is example for Cmake (See http://bugs.debian.org/641051 )
override_dh_auto_configure:
dh_auto_configure -- \
-DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)

3
debian/solvespace.install vendored Normal file
View File

@ -0,0 +1,3 @@
usr/bin/solvespace
usr/share/icons
usr/share/applications

8
debian/solvespace.sharedmimeinfo vendored Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0"?>
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
<mime-type type="application/x-solvespace">
<comment>SolveSpace sketch</comment>
<glob pattern="*.slvs"/>
<generic-icon name="x-office-document"/>
</mime-type>
</mime-info>

1
debian/source/format vendored Normal file
View File

@ -0,0 +1 @@
3.0 (native)

3
debian/source/options vendored Normal file
View File

@ -0,0 +1,3 @@
tar-ignore = "*.sublime-*"
tar-ignore = "cbuild"
tar-ignore = ".git"

View File

@ -76,7 +76,7 @@ set_target_properties(slvs PROPERTIES
if(NOT WIN32) if(NOT WIN32)
install(TARGETS slvs install(TARGETS slvs
LIBRARY DESTINATION lib LIBRARY DESTINATION lib/${CMAKE_LIBRARY_PATH} # multiarch
PUBLIC_HEADER DESTINATION include) PUBLIC_HEADER DESTINATION include)
endif() endif()