~ubuntu-branches/ubuntu/wily/grass/wily

« back to all changes in this revision

Viewing changes to gui/wxpython/nviz/Makefile

Tags: 7.0.0~rc1+ds1-1~exp1
* New upstream release candidate.
* Repack upstream tarball, remove precompiled Python objects.
* Add upstream metadata.
* Update gbp.conf and Vcs-Git URL to use the experimental branch.
* Update watch file for GRASS 7.0.
* Drop build dependencies for Tcl/Tk, add build dependencies:
  python-numpy, libnetcdf-dev, netcdf-bin, libblas-dev, liblapack-dev
* Update Vcs-Browser URL to use cgit instead of gitweb.
* Update paths to use grass70.
* Add configure options: --with-netcdf, --with-blas, --with-lapack,
  remove --with-tcltk-includes.
* Update patches for GRASS 7.
* Update copyright file, changes:
  - Update copyright years
  - Group files by license
  - Remove unused license sections
* Add patches for various typos.
* Fix desktop file with patch instead of d/rules.
* Use minimal dh rules.
* Bump Standards-Version to 3.9.6, no changes.
* Use dpkg-maintscript-helper to replace directories with symlinks.
  (closes: #776349)
* Update my email to use @debian.org address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
MODULE_TOPDIR = ../../..
2
 
 
3
 
include $(MODULE_TOPDIR)/include/Make/Lib.make
4
 
 
5
 
# substitute OSX arch flags for wxpython
6
 
ifneq ($(MACOSX_ARCHS),)
7
 
CFLAGS := $(subst $(MACOSX_ARCHS),,$(CFLAGS)) $(MACOSX_ARCHS_WXPYTHON)
8
 
CXXFLAGS := $(subst $(MACOSX_ARCHS),,$(CXXFLAGS)) $(MACOSX_ARCHS_WXPYTHON)
9
 
LDFLAGS := $(subst $(MACOSX_ARCHS),,$(LDFLAGS)) $(MACOSX_ARCHS_WXPYTHON)
10
 
endif
11
 
 
12
 
LIB_NAME = grass6_wxnviz
13
 
 
14
 
SHLIB = $(OBJDIR)/_$(LIB_NAME).so
15
 
 
16
 
ETCDIR = $(ETC)/wxpython
17
 
 
18
 
default:
19
 
 
20
 
ifneq ($(USE_WXWIDGETS),)
21
 
ifneq ($(USE_PYTHON),)
22
 
ifneq ($(strip $(CXX)),)
23
 
ifneq ($(strip $(OPENGLLIB)),)
24
 
default: install_nviz
25
 
endif
26
 
endif
27
 
endif
28
 
endif
29
 
 
30
 
$(LIB_NAME).i: nviz.i nviz_types.i nviz.h
31
 
        cat nviz.i nviz_types.i > $(LIB_NAME).i
32
 
        echo "/* auto-generated swig typedef file */" >> $(LIB_NAME).i
33
 
        cat nviz.h >> $(LIB_NAME).i
34
 
 
35
 
$(LIB_NAME).py: $(SHLIB)
36
 
 
37
 
$(SHLIB): $(LIB_NAME).i
38
 
        python setup.py build_ext --swig=$(SWIG) --swig-opts=-c++ --build-lib=$(OBJDIR) --build-temp=$(OBJDIR)
39
 
 
40
 
.NOTPARALLEL: $(LIB_NAME).py $(LIB_NAME)_wrap.cpp
41
 
 
42
 
install_nviz: $(ETCDIR)/nviz/_$(LIB_NAME).so $(ETCDIR)/nviz/$(LIB_NAME).py
43
 
 
44
 
$(ETCDIR)/nviz/_$(LIB_NAME).so: $(SHLIB)
45
 
        $(INSTALL) $< $@
46
 
 
47
 
$(ETCDIR)/nviz/$(LIB_NAME).py: $(LIB_NAME).py
48
 
        $(INSTALL_DATA) $< $@
49