]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
python-satsolver: Make package working.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 13 May 2011 17:56:18 +0000 (19:56 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 13 May 2011 17:56:18 +0000 (19:56 +0200)
lfs/python-satsolver

index b549af7a221a18aea1b35981d895f5dfd42a8a71..0974a151d0d61fe27ed164595cbdcd9b50794557 100644 (file)
@@ -32,6 +32,10 @@ DL_FROM    = http://source.ipfire.org/source-3.x
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 
+PROG       = python-satsolver
+DEPS       = "libsatsolver"
+PAK_VER    = 1
+
 ###############################################################################
 # Top-level Rules
 ###############################################################################
@@ -50,6 +54,9 @@ download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
 md5 : $(subst %,%_MD5,$(objects))
 
+dist :
+       $(PAK)
+
 ###############################################################################
 # Downloading, checking, md5sum
 ###############################################################################
@@ -75,11 +82,17 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/python-satsover-fix-building-without-rpm.patch
        cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/python-satsolver-only-python-bindings.patch
 
+       # Aaaahh!
+       cd $(DIR_APP) && sed -e "s/-Werror//g" -i CMakeLists.txt
+
        cd $(DIR_APP) && mkdir build
        cd $(DIR_APP)/build && cmake .. -DDEBIAN=1 \
                -DCMAKE_INSTALL_PREFIX=/usr \
                -DCMAKE_BUILD_TYPE=Release \
-               -DCMAKE_SKIP_RPATH=1
+               -DCMAKE_SKIP_RPATH=1 \
+               -DPYTHON_LIBRARY=/usr/lib/libpython2.7.so \
+               -DPYTHON_INCLUDE_PATH=/usr/include/python2.7
+
        cd $(DIR_APP)/build && make $(PARALELLISMFLAGS)
 
        # Install only the python bindings. That's all we need.