]> git.ipfire.org Git - pakfire.git/blobdiff - Makeconfig
packages: Add function to read files from the package payload.
[pakfire.git] / Makeconfig
index 65314fc58656281dc2f8acff643f87784c9dea6c..b5da553a844cf6e404630fa12ad2deb8172e2899 100644 (file)
@@ -1,6 +1,6 @@
 
 PACKAGE_NAME    = pakfire
-PACKAGE_VERSION = 0.9.10
+PACKAGE_VERSION = 0.9.23
 PACKAGE_AUTHOR  = IPFire.org Team
 PACKAGE_AUTHOR_EMAIL = info@ipfire.org
 PACKAGE_URL     = http://redmine.ipfire.org/projects/buildsystem3
@@ -12,20 +12,28 @@ PREFIX ?= /usr
 DEBIAN = $(shell test -e /etc/debian_version && echo 1 || echo 0)
 
 CC = gcc
-CFLAGS ?= -O2 -pipe
+CFLAGS ?= -O2 -fPIC -pipe
 MACHINE = $(shell uname -m)
 
-ifeq "$(MACHINE)" "x86_64"
+ifeq "$(DEBIAN)" "0"
+ ifeq "$(MACHINE)" "x86_64"
        LIBDIR = $(PREFIX)/lib64
-else
+ else
        LIBDIR = $(PREFIX)/lib
+ endif
+else
+ LIBDIR = $(PREFIX)/lib
 endif
 
 # Get the version and configuration of the python interpreter.
 PYTHON_VERSION = $(shell python -c "import platform; print '.'.join(platform.python_version_tuple()[:2])")
+ifeq "$(PYTHON_VERSION)" ""
+  $(error Could not determine the version of the python interpreter.)
+endif
+
 PYTHON_CC      = $(CC) -pthread -fPIC
 PYTHON_CFLAGS  = $(shell python-config --cflags)
-PYTHON_MODULES = pakfire pakfire/packages pakfire/repository
+PYTHON_MODULES = pakfire pakfire/client pakfire/packages pakfire/repository
 ifeq "$(DEBIAN)" "1"
        PYTHON_DIR = $(LIBDIR)/python$(PYTHON_VERSION)/dist-packages
 else
@@ -40,4 +48,4 @@ TOP := $(dir $(lastword $(MAKEFILE_LIST)))
 # A list of all files that contain translations and need to
 # be indexed.
 TRANS_FILES  = $(addsuffix /*.py,$(addprefix python/,$(PYTHON_MODULES)))
-TRANS_FILES += python/src/*.c scripts/pakfire-multicall.py
+TRANS_FILES += python/src/*.c tools/pakfire-multicall.py