summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2021-11-26 11:59:24 +0100
committerMaciej Barć <xgqt@gentoo.org>2021-11-26 11:59:24 +0100
commiteeaef857fab48756a4ada4b70f9c02da1f5b9661 (patch)
tree3c030016a493262e5dfa2dade86c2cb61f535546 /dev-lang/clips/files
parentwww-apps/selfoss: new package; add version 2.18 (diff)
downloadgentoo-eeaef857fab48756a4ada4b70f9c02da1f5b9661.tar.gz
gentoo-eeaef857fab48756a4ada4b70f9c02da1f5b9661.tar.bz2
gentoo-eeaef857fab48756a4ada4b70f9c02da1f5b9661.zip
dev-lang/clips: new package; add version 6.40
Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-lang/clips/files')
-rw-r--r--dev-lang/clips/files/makefile.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/dev-lang/clips/files/makefile.patch b/dev-lang/clips/files/makefile.patch
new file mode 100644
index 000000000000..56d30660aaed
--- /dev/null
+++ b/dev-lang/clips/files/makefile.patch
@@ -0,0 +1,33 @@
+--- a/makefile
++++ b/makefile
+@@ -66,8 +66,10 @@ debug : CFLAGS = -std=c99 -O0 -g
+ debug : LDLIBS = -lm
+ debug : clips
+
+-release : CC = gcc
+-release : CFLAGS = -std=c99 -O3 -fno-strict-aliasing
++release : AR ?=
++release : CC ?=
++release : CFLAGS ?=
++release : LDFLAGS ?=
+ release : LDLIBS = -lm
+ release : clips
+
+@@ -88,14 +90,14 @@ release_cpp : LDLIBS = -lstdc++
+ release_cpp : clips
+
+ .c.o :
+- $(CC) -c -D$(CLIPS_OS) $(CFLAGS) $(WARNINGS) $<
++ $(CC) -c -D$(CLIPS_OS) $(CFLAGS) $(LDFLAGS) $<
+
+ clips : main.o libclips.a
+- $(CC) -o clips main.o -L. -lclips $(LDLIBS)
++ $(CC) -o clips main.o -L. -lclips $(CFLAGS) $(LDFLAGS) $(LDLIBS)
+
+ libclips.a : $(OBJS)
+ rm -f $@
+- ar cq $@ $(OBJS)
++ $(AR) cq $@ $(OBJS)
+
+ clean :
+ -rm -f main.o $(OBJS)