]> git.ipfire.org Git - pakfire.git/blob - Makeconfig
Fix downloading source when creating source packages.
[pakfire.git] / Makeconfig
1
2 PACKAGE_NAME = pakfire
3 PACKAGE_VERSION = 0.9.9
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 CC = gcc
12 CFLAGS ?= -O2 -pipe
13 MACHINE = $(shell uname -m)
14
15 ifeq "$(MACHINE)" "x86_64"
16 LIBDIR = $(PREFIX)/lib64
17 else
18 LIBDIR = $(PREFIX)/lib
19 endif
20
21 # Get the version and configuration of the python interpreter.
22 PYTHON_VERSION = $(shell python -c "import platform; print '.'.join(platform.python_version_tuple()[:2])")
23 PYTHON_CC = $(CC) -pthread
24 PYTHON_CFLAGS = $(shell python-config --cflags)
25 PYTHON_DIR = $(LIBDIR)/python$(PYTHON_VERSION)/site-packages
26 PYTHON_MODULES = pakfire pakfire/packages pakfire/repository
27
28 # The place, where all internally used scripts and bins are copied.
29 SCRIPT_DIR = $(PREFIX)/lib/$(PACKAGE_NAME)
30
31 TOP := $(dir $(lastword $(MAKEFILE_LIST)))
32
33 # A list of all files that contain translations and need to
34 # be indexed.
35 TRANS_FILES = $(addsuffix /*.py,$(addprefix python/,$(PYTHON_MODULES)))
36 TRANS_FILES += python/src/*.c scripts/pakfire-multicall.py