]> git.ipfire.org Git - people/ms/pakfire.git/blob - Makeconfig
Bump version to 0.9.12.
[people/ms/pakfire.git] / Makeconfig
1
2 PACKAGE_NAME = pakfire
3 PACKAGE_VERSION = 0.9.12
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 PYTHON_CC = $(CC) -pthread -fPIC
27 PYTHON_CFLAGS = $(shell python-config --cflags)
28 PYTHON_MODULES = pakfire pakfire/packages pakfire/repository
29 ifeq "$(DEBIAN)" "1"
30 PYTHON_DIR = $(LIBDIR)/python$(PYTHON_VERSION)/dist-packages
31 else
32 PYTHON_DIR = $(LIBDIR)/python$(PYTHON_VERSION)/site-packages
33 endif
34
35 # The place, where all internally used scripts and bins are copied.
36 SCRIPT_DIR = $(PREFIX)/lib/$(PACKAGE_NAME)
37
38 TOP := $(dir $(lastword $(MAKEFILE_LIST)))
39
40 # A list of all files that contain translations and need to
41 # be indexed.
42 TRANS_FILES = $(addsuffix /*.py,$(addprefix python/,$(PYTHON_MODULES)))
43 TRANS_FILES += python/src/*.c scripts/pakfire-multicall.py