57 lines
1.5 KiB
Diff
57 lines
1.5 KiB
Diff
|
--- metis-5.0.3/GKlib/Makefile.orig 2013-03-11 20:50:42.000000000 +0100
|
||
|
+++ metis-5.0.3/GKlib/Makefile 2013-03-17 14:26:23.632867727 +0100
|
||
|
@@ -41,10 +41,10 @@
|
||
|
CONFIG_FLAGS += -DPCRE=$(pcre)
|
||
|
endif
|
||
|
ifneq ($(gkregex), not-set)
|
||
|
- CONFIG_FLAGS += -DGKREGEX=$(pcre)
|
||
|
+ CONFIG_FLAGS += -DGKREGEX=$(gkregex)
|
||
|
endif
|
||
|
ifneq ($(gkrand), not-set)
|
||
|
- CONFIG_FLAGS += -DGKRAND=$(pcre)
|
||
|
+ CONFIG_FLAGS += -DGKRAND=$(gkrand)
|
||
|
endif
|
||
|
ifneq ($(prefix), not-set)
|
||
|
CONFIG_FLAGS += -DCMAKE_INSTALL_PREFIX=$(prefix)
|
||
|
|
||
|
--- metis-5.0.3/Makefile.orig 2013-03-11 20:50:09.000000000 +0100
|
||
|
+++ metis-5.0.3/Makefile 2013-03-17 18:30:50.634301059 +0100
|
||
|
@@ -9,7 +9,10 @@
|
||
|
gklib_path = not-set
|
||
|
shared = not-set
|
||
|
cc = not-set
|
||
|
-
|
||
|
+libsuffix = not-set
|
||
|
+pcre = not-set
|
||
|
+gkregex = not-set
|
||
|
+gkrand = not-set
|
||
|
|
||
|
# Basically proxies everything to the builddir cmake.
|
||
|
|
||
|
@@ -23,6 +26,9 @@
|
||
|
ifeq ($(gklib_path), not-set)
|
||
|
gklib_path = GKlib
|
||
|
endif
|
||
|
+ifneq ($(libsuffix), not-set)
|
||
|
+ CONFIG_FLAGS += -DLIB_SUFFIX=$(libsuffix)
|
||
|
+endif
|
||
|
CONFIG_FLAGS += -DGKLIB_PATH=$(abspath $(gklib_path))
|
||
|
ifneq ($(gdb), not-set)
|
||
|
CONFIG_FLAGS += -DGDB=$(gdb)
|
||
|
@@ -51,6 +57,15 @@
|
||
|
ifneq ($(cc), not-set)
|
||
|
CONFIG_FLAGS += -DCMAKE_C_COMPILER=$(cc)
|
||
|
endif
|
||
|
+ifneq ($(pcre), not-set)
|
||
|
+ CONFIG_FLAGS += -DPCRE=$(pcre)
|
||
|
+endif
|
||
|
+ifneq ($(gkregex), not-set)
|
||
|
+ CONFIG_FLAGS += -DGKREGEX=$(gkregex)
|
||
|
+endif
|
||
|
+ifneq ($(gkrand), not-set)
|
||
|
+ CONFIG_FLAGS += -DGKRAND=$(gkrand)
|
||
|
+endif
|
||
|
|
||
|
VERNUM=5.0.3
|
||
|
PKGNAME=metis-$(VERNUM)
|