~ubuntu-branches/ubuntu/precise/ipe/precise

« back to all changes in this revision

Viewing changes to src/config.mak

  • Committer: Bazaar Package Importer
  • Author(s): Steve M. Robbins
  • Date: 2009-12-11 21:22:35 UTC
  • mfrom: (4.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20091211212235-5iio4nzpra64snab
Tags: 7.0.10-1
* New upstream.  Closes: #551192.
  - New build-depends: libcairo2-dev, liblua5.1-0-dev, gsfonts
  - patches/config.diff: Remove.  Upstream build system replaced.
  - Runtime lib package changed to libipe7.0.10 from libipe1c2a
  - Devel package renamed to libipe-dev (from libipe1-dev)
  - Package ipe depends on lua5.1 due to ipe-update-master.

* rules: Re-write to use dh.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- makefile -*-
 
2
# --------------------------------------------------------------------
 
3
#
 
4
# Ipe configuration
 
5
#
 
6
# --------------------------------------------------------------------
 
7
#
 
8
# Include and linking options for libraries
 
9
#
 
10
# We just query "pkg-config" for the correct flags.  If this doesn't
 
11
# work on your system, enter the correct linker flags and directories
 
12
# directly.
 
13
#
 
14
ZLIB_CFLAGS   ?=
 
15
ZLIB_LIBS     ?= -lz
 
16
FREETYPE_CFLAGS ?= $(shell pkg-config --cflags freetype2)
 
17
FREETYPE_LIBS ?= $(shell pkg-config --libs freetype2)
 
18
CAIRO_CFLAGS  ?= $(shell pkg-config --cflags cairo)
 
19
CAIRO_LIBS    ?= $(shell pkg-config --libs cairo)
 
20
ifndef MACOS
 
21
LUA_CFLAGS    ?= $(shell pkg-config --cflags lua5.1)
 
22
LUA_LIBS      ?= $(shell pkg-config --libs lua5.1)
 
23
QT_CFLAGS     ?= $(shell pkg-config --cflags QtGui QtCore)
 
24
QT_LIBS       ?= $(shell pkg-config --libs QtGui QtCore)
 
25
#
 
26
# MOC is the Qt meta-object compiler.  On Debian/Ubuntu, it is
 
27
# installed as "moc-qt4" to resolve the name conflict with Qt3's
 
28
# "moc".  If that is not right for your system (i.e. "moc-qt4" does
 
29
# not exist), change it to "moc".
 
30
#
 
31
MOC           ?= moc-qt4
 
32
#MOC          ?= moc
 
33
else
 
34
#
 
35
# Settings for Mac OS 10.6
 
36
#
 
37
CONFIG     += x86_64
 
38
LUA_CFLAGS = $(shell pkg-config --cflags lua)
 
39
LUA_LIBS   = $(shell pkg-config --libs lua)
 
40
QT_CFLAGS  = -I/Library/Frameworks/QtCore.framework/Versions/4/Headers \
 
41
             -I/Library/Frameworks/QtGui.framework/Versions/4/Headers
 
42
QT_LIBS    = -F/Library/Frameworks -L/Library/Frameworks \
 
43
             -framework QtCore -framework ApplicationServices \
 
44
             -framework QtGui -framework AppKit -framework Cocoa -lz -lm
 
45
MOC        = moc
 
46
endif
 
47
#
 
48
# --------------------------------------------------------------------
 
49
#
 
50
# The C++ compiler (only g++ is properly tested)
 
51
#
 
52
CXX = g++
 
53
#
 
54
# Special compilation flags for compiling shared libraries
 
55
# 64-bit Linux requires shared libraries to be compiled with -fPIC
 
56
# (and it doesn't hurt on 32bit Linux)
 
57
DLL_CFLAGS = -fPIC
 
58
#
 
59
# --------------------------------------------------------------------
 
60
#
 
61
# Installing Ipe:
 
62
#
 
63
IPEVERS = 7.0.10
 
64
#
 
65
# IPEPREFIX is the global prefix for the Ipe directory structure, which
 
66
# you can override individually for any of the specific directories.
 
67
# You could choose "/usr/local" or "/opt/ipe-7.0", or
 
68
# even "/usr", or "$(HOME)/ipe-7.0" if you have to install in your home
 
69
# directory.
 
70
#
 
71
# If you are installing Ipe in a networked environment, keep in mind
 
72
# that executables, ipelets, and Ipe library are machine-dependent,
 
73
# while the documentation and fonts can be shared.
 
74
#
 
75
#IPEPREFIX  := /usr/local
 
76
#IPEPREFIX  := /usr
 
77
#IPEPREFIX  := /opt/ipe7
 
78
#
 
79
ifeq "$(IPEPREFIX)" ""
 
80
$(error You need to specify IPEPREFIX!)
 
81
endif
 
82
#
 
83
# Where Ipe executables will be installed ('ipe', 'ipetoipe' etc)
 
84
IPEBINDIR  = $(IPEPREFIX)/bin
 
85
#
 
86
# Where the Ipe libraries will be installed ('libipe.so' etc.)
 
87
IPELIBDIR  = $(IPEPREFIX)/lib
 
88
#
 
89
# Where the header files for Ipelib will be installed:
 
90
IPEHEADERDIR = $(IPEPREFIX)/include
 
91
#
 
92
# Where Ipelets will be installed:
 
93
IPELETDIR = $(IPEPREFIX)/lib/ipe/$(IPEVERS)/ipelets
 
94
#
 
95
# List of paths where Ipe will search for Ipelets:
 
96
# (Individual paths are separated by ";" on both Windows and Unix!)
 
97
IPELETPATH = $(IPELETDIR)
 
98
#
 
99
# Where Lua code will be installed
 
100
# (This is the part of the Ipe program written in the Lua language)
 
101
IPELUADIR = $(IPEPREFIX)/share/ipe/$(IPEVERS)/lua
 
102
#
 
103
# List of patterns where Ipe will search for Lua code:
 
104
# (Individual paths are separated by ";" on both Windows and Unix!)
 
105
IPELUAPATH = $(IPELUADIR)/?.lua
 
106
#
 
107
# Directory where Ipe will look for style files
 
108
# (standard Ipe styles will also be installed here)
 
109
#
 
110
IPESTYLES = $(IPEPREFIX)/share/ipe/$(IPEVERS)/styles
 
111
#
 
112
# IPEICONDIR contains the icons used in the Ipe user interface
 
113
#
 
114
IPEICONDIR = $(IPEPREFIX)/share/ipe/$(IPEVERS)/icons
 
115
#
 
116
# IPEDOCDIR contains the Ipe documentation (mostly html files)
 
117
#
 
118
IPEDOCDIR = $(IPEPREFIX)/share/ipe/$(IPEVERS)/doc
 
119
#
 
120
# The Ipe manual pages are installed into IPEMANDIR
 
121
#
 
122
IPEMANDIR = $(IPEPREFIX)/share/man/man1
 
123
#
 
124
# The full path to the Ipe fontmap
 
125
#
 
126
IPEFONTMAP = $(IPEPREFIX)/share/ipe/$(IPEVERS)/fontmap.xml
 
127
#
 
128
# --------------------------------------------------------------------