Commit 2c734be5 authored by Ruben Undheim's avatar Ruben Undheim

Added debian dir

parent ef962f60
openems (0.0.34-1) unstable; urgency=low
* Initial release (Closes: #XXXXXX)
-- Ruben Undheim <ruben.undheim@gmail.com> Sat, 13 Dec 2014 12:38:34 +0100
Source: openems
Maintainer: Ruben Undheim <ruben.undheim@gmail.com>
Section: science
Priority: optional
Build-Depends: debhelper (>= 9),
cmake,
libhdf5-dev,
libvtk6-dev,
libboost-all-dev,
libcgal-dev,
libtinyxml-dev,
libqt4-dev,
libvtk6-qt-dev,
octave-pkg-dev
Standards-Version: 3.9.6
Package: openems
Architecture: any
Depends: ${shlibs:Depends},
${misc:Depends},
libopenems0
Recommends: octave-openems
Description: Electromagnetic simulator
Package: libopenems0
Architecture: any
Section: libs
Depends: ${shlibs:Depends},
${misc:Depends}
Description: Libraries for openems
Package: libopenems-dev
Architecture: any
Section: libdevel
Depends: libopenems0
Description: Development files for openems
Package: octave-openems
Architecture: all
Depends: openems,
octave,
epstool,
transfig
Description: Octave interface for openems
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: openEMS
Source:
#Files: *
#Copyright: 2014 Ruben Undheim <ruben.undheim@gmail.com>
#License: GPL-3+
#
#Files: debian/*
#Copyright: 2014-2015 Ruben Undheim <ruben.undheim@gmail.com>
#License: GPL-3+
#
#License: GPL-3+
# This package 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 program 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".
[DEFAULT]
pristine-tar = True
usr/lib/*/lib*.so
usr/include
usr/lib/*/lib*.so.*
#!/usr/bin/make -f
#export DH_VERBOSE=1
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
PKD = $(abspath $(dir $(MAKEFILE_LIST)))
PKG = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source))
VER ?= $(shell dpkg-parsechangelog -l$(PKD)/changelog | perl -ne 'print $$1 if m{^Version:\s+(?:\d+:)?(\d.*)(?:\-\d+.*)};')
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
%:
dh $@
override_dh_auto_configure:
override_dh_auto_build:
override_dh_auto_install:
cd fparser && cmake -DCMAKE_INSTALL_PREFIX=/usr -DLIB_SUFFIX=/$(DEB_HOST_MULTIARCH) . && make && make install DESTDIR=../debian/tmp
cd CSXCAD && cmake -DCMAKE_INSTALL_PREFIX=/usr -DFPARSER_ROOT_DIR=../debian/tmp/usr -DLIB_SUFFIX=/$(DEB_HOST_MULTIARCH) . && make && make install DESTDIR=../debian/tmp
cd QCSXCAD && cmake -DCMAKE_INSTALL_PREFIX=/usr -DFPARSER_ROOT_DIR=../debian/tmp/usr -DCSXCAD_ROOT_DIR=../debian/tmp/usr -DLIB_SUFFIX=/$(DEB_HOST_MULTIARCH) . && make && make install DESTDIR=../debian/tmp
cd openEMS && cmake -DCMAKE_INSTALL_PREFIX=/usr -DFPARSER_ROOT_DIR=../debian/tmp/usr -DCSXCAD_ROOT_DIR=../debian/tmp/usr -DLIB_SUFFIX=/$(DEB_HOST_MULTIARCH) .
cd openEMS && make
cd openEMS && make install DESTDIR=../debian/tmp
cd AppCSXCAD && cmake -DCMAKE_INSTALL_PREFIX=/usr -DFPARSER_ROOT_DIR=../debian/tmp/usr -DCSXCAD_ROOT_DIR=../debian/tmp/usr -DQCSXCAD_ROOT_DIR=../debian/tmp/usr -DLIB_SUFFIX=/$(DEB_HOST_MULTIARCH) .
cd AppCSXCAD && make
cd AppCSXCAD && make install DESTDIR=../debian/tmp
get-orig-source: $(info I: $(PKG)_$(VER))
@echo "# Downloading..."
uscan --noconf --verbose --rename --destdir=$(CURDIR) --force-download --download-version $(VER) $(PKD)
version=3
opts="pgpsigurlmangle=s/\/mrtdreader\/archive\/(\d\S+)\.tar\.(bz2|gz|xz)$/\/mrtdreader\/releases\/download\/\1\/\1\.tar\.\2\.asc/" \
https://github.com/rubund/mrtdreader/releases /rubund/mrtdreader/archive/(\d\S+)\.tar\.(?:bz2|gz|xz)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment