3 PACKAGE_VERSION = 0.9.24
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
11 # Are we running on Debian?
12 DEBIAN = $(shell test -e /etc/debian_version && echo 1 || echo 0)
15 CFLAGS ?= -O2 -fPIC -pipe
16 MACHINE = $(shell uname -m)
19 ifeq "$(MACHINE)" "x86_64"
20 LIBDIR = $(PREFIX)/lib64
22 LIBDIR = $(PREFIX)/lib
25 LIBDIR = $(PREFIX)/lib
28 # Get the version and configuration of the python interpreter.
29 PYTHON_VERSION = $(shell python -c "import platform; print '.'.join(platform.python_version_tuple()[:2])")
30 ifeq "$(PYTHON_VERSION)" ""
31 $(error Could not determine the version of the python interpreter.)
34 PYTHON_CC = $(CC) -pthread -fPIC
35 PYTHON_CFLAGS = $(shell python-config --cflags)
36 PYTHON_MODULES = pakfire pakfire/packages pakfire/repository
38 PYTHON_DIR = $(LIBDIR)/python$(PYTHON_VERSION)/dist-packages
40 PYTHON_DIR = $(LIBDIR)/python$(PYTHON_VERSION)/site-packages
42 PYTHON_FILES = $(addsuffix /*.py,$(addprefix python/,$(PYTHON_MODULES)))
43 PYTHON_FILES += tools/pakfire-multicall.py
45 # The place, where all internally used scripts and bins are copied.
46 SCRIPT_DIR = $(PREFIX)/lib/$(PACKAGE_NAME)
48 TOP := $(dir $(lastword $(MAKEFILE_LIST)))
50 # A list of all files that contain translations and need to
52 TRANS_FILES = $(PYTHON_FILES) python/src/*.c