]> git.ipfire.org Git - pakfire.git/blob - Makeconfig
Merge branch 'master' of ssh://git.ipfire.org/pub/git/oddments/pakfire
[pakfire.git] / Makeconfig
1
2 PACKAGE_NAME = pakfire
3 PACKAGE_VERSION = 0.9.17
4 PACKAGE_AUTHOR = IPFire.org Team
5 PACKAGE_AUTHOR_EMAIL = info@ipfire.org
6 PACKAGE_URL = http://redmine.ipfire.org/projects/buildsystem3
7 PACKAGE_VERSION_FILE = pakfire/__version__.py
8
9 PREFIX ?= /usr
10
11 # Are we running on Debian?
12 DEBIAN = $(shell test -e /etc/debian_version && echo 1 || echo 0)
13
14 CC = gcc
15 CFLAGS ?= -O2 -pipe
16 MACHINE = $(shell uname -m)
17
18 ifeq "$(MACHINE)" "x86_64"
19 LIBDIR = $(PREFIX)/lib64
20 else
21 LIBDIR = $(PREFIX)/lib
22 endif
23
24 # Get the version and configuration of the python interpreter.
25 PYTHON_VERSION = $(shell python -c "import platform; print '.'.join(platform.python_version_tuple()[:2])")
26 ifeq "$(PYTHON_VERSION)" ""
27 $(error Could not determine the version of the python interpreter.)
28 endif
29
30 PYTHON_CC = $(CC) -pthread -fPIC
31 PYTHON_CFLAGS = $(shell python-config --cflags)
32 PYTHON_MODULES = pakfire pakfire/packages pakfire/repository
33 ifeq "$(DEBIAN)" "1"
34 PYTHON_DIR = $(LIBDIR)/python$(PYTHON_VERSION)/dist-packages
35 else
36 PYTHON_DIR = $(LIBDIR)/python$(PYTHON_VERSION)/site-packages
37 endif
38
39 # The place, where all internally used scripts and bins are copied.
40 SCRIPT_DIR = $(PREFIX)/lib/$(PACKAGE_NAME)
41
42 TOP := $(dir $(lastword $(MAKEFILE_LIST)))
43
44 # A list of all files that contain translations and need to
45 # be indexed.
46 TRANS_FILES = $(addsuffix /*.py,$(addprefix python/,$(PYTHON_MODULES)))
47 TRANS_FILES += python/src/*.c scripts/pakfire-multicall.py