~ubuntu-branches/ubuntu/quantal/tclcl/quantal

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): YunQiang Su
  • Date: 2011-11-12 14:36:52 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20111112143652-trkozukeo60ftzq1
Tags: 1.20-1
* New upstream stable release.
* debian/watch: to sf.net.
* rm config.status and override lintian warning.
* Rewrite build system with cmake.
* Generate shared library, packages renamed to libtclcl1 and libtclcl1-dev;
  libtclcl1-dev provides libtclcl1-dev; New debug package tclcl-dbg.
* New pkg-config file: tclcl.pc.
* Multiarch these packages.
* Symbols file for libtclcl1.
* tclcl: install otcldoc: 
  simple script for translating otcl classes into an html hyperlinked document

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
# -*- makefile -*-
3
 
# Sample debian/rules that uses debhelper.
4
 
# This file was originally written by Joey Hess and Craig Small.
5
 
# As a special exception, when this file is copied by dh-make into a
6
 
# dh-make output file, you may use that output file without restriction.
7
 
# This special exception was added by Craig Small in version 0.37 of dh-make.
 
2
export DH_VERBOSE=1
8
3
 
9
 
# Uncomment this to turn on verbose mode.
10
 
#export DH_VERBOSE=1
 
4
LDFLAGS+=-Wl,--as-needed
 
5
DEB_HOST_MULTIARCH?=$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
11
6
 
12
7
%:
13
8
        dh  $@
14
9
 
15
 
override_dh_auto_build:
16
 
        dh_auto_build
17
 
# upstream doesn't use -fPIC, fail
18
 
#       gcc -shared -Wl,-soname,libtclcl.so.1 -o libtclcl.so.1.20 *.o
19
 
#       ln -s libtclcl.so.1.20 libtclcl.so.1
20
 
#       ln -s libtclcl.so.1.20 libtclcl.so
21
 
        
22
 
override_dh_auto_install:
 
10
override_dh_auto_configure:
 
11
        cp debian/CMakeLists.txt .
 
12
        cp debian/tclcl.pc.cmake .
 
13
        cp debian/config-tclcl.h.cmake .
 
14
        dh_auto_configure -Scmake -- -DLIB_INSTALL_DIR=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)
23
15
 
24
16
override_dh_installchangelogs:
25
17
        dh_installchangelogs CHANGES.html
26
18
 
 
19
override_dh_strip:
 
20
        dh_strip --dbg-package=tclcl-dbg
 
21