aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lang/picoc/Makefile1
-rw-r--r--textproc/libsoldout/files/patch-BSDmakefile16
-rw-r--r--textproc/libupskirt/files/patch-BSDmakefile16
3 files changed, 33 insertions, 0 deletions
diff --git a/lang/picoc/Makefile b/lang/picoc/Makefile
index d9d9b78309a7..9c3076e3682b 100644
--- a/lang/picoc/Makefile
+++ b/lang/picoc/Makefile
@@ -25,6 +25,7 @@ WRKSRC= ${WRKDIR}/${PORTNAME}
post-patch:
@${REINPLACE_CMD} -e "/-include/d" \
-e "s/^CFLAGS=.*/CFLAGS=${CFLAGS} -DUNIX_HOST/" \
+ -e "s/gcc/${CC}/" \
${WRKSRC}/Makefile
do-install:
diff --git a/textproc/libsoldout/files/patch-BSDmakefile b/textproc/libsoldout/files/patch-BSDmakefile
new file mode 100644
index 000000000000..61920e801535
--- /dev/null
+++ b/textproc/libsoldout/files/patch-BSDmakefile
@@ -0,0 +1,16 @@
+--- ./BSDmakefile.orig 2011-05-22 15:52:03.000000000 +0200
++++ ./BSDmakefile 2011-06-20 19:22:57.278509671 +0200
+@@ -16,9 +16,10 @@
+
+ DEPDIR=depends
+ ALLDEPS=$(DEPDIR)/all
+-CFLAGS=-c -g -O3 -Wall -Werror -fPIC
+-LDFLAGS=-g -O3 -Wall -Werror
+-CC=gcc
++CFLAGS?=-c -g -O3 -Wall -Werror
++CFLAGS+= -c -fPIC
++LDFLAGS?=-g -O3 -Wall -Werror
++CC?=gcc
+
+ all: libupskirt.so lace kilt
+
diff --git a/textproc/libupskirt/files/patch-BSDmakefile b/textproc/libupskirt/files/patch-BSDmakefile
new file mode 100644
index 000000000000..61920e801535
--- /dev/null
+++ b/textproc/libupskirt/files/patch-BSDmakefile
@@ -0,0 +1,16 @@
+--- ./BSDmakefile.orig 2011-05-22 15:52:03.000000000 +0200
++++ ./BSDmakefile 2011-06-20 19:22:57.278509671 +0200
+@@ -16,9 +16,10 @@
+
+ DEPDIR=depends
+ ALLDEPS=$(DEPDIR)/all
+-CFLAGS=-c -g -O3 -Wall -Werror -fPIC
+-LDFLAGS=-g -O3 -Wall -Werror
+-CC=gcc
++CFLAGS?=-c -g -O3 -Wall -Werror
++CFLAGS+= -c -fPIC
++LDFLAGS?=-g -O3 -Wall -Werror
++CC?=gcc
+
+ all: libupskirt.so lace kilt
+