aboutsummaryrefslogtreecommitdiffstats
path: root/russian/xcyrBGR
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2002-09-09 09:01:26 +0800
committerkris <kris@FreeBSD.org>2002-09-09 09:01:26 +0800
commitcfa14c8d0350efcea90663e0f9556f3ee8369b50 (patch)
tree95cc8545532b2e3ab3c17e9c1f0536079e2eee50 /russian/xcyrBGR
parent3aa9c9c1cb2fef8e9cefda71149d12d69d2f87f7 (diff)
downloadfreebsd-ports-gnome-cfa14c8d0350efcea90663e0f9556f3ee8369b50.tar.gz
freebsd-ports-gnome-cfa14c8d0350efcea90663e0f9556f3ee8369b50.tar.zst
freebsd-ports-gnome-cfa14c8d0350efcea90663e0f9556f3ee8369b50.zip
Fix build in -current (build/link C++ code with ${CXX})
Diffstat (limited to 'russian/xcyrBGR')
-rw-r--r--russian/xcyrBGR/Makefile2
-rw-r--r--russian/xcyrBGR/files/patch-ab26
2 files changed, 27 insertions, 1 deletions
diff --git a/russian/xcyrBGR/Makefile b/russian/xcyrBGR/Makefile
index 5d39ea1c3a66..ad59c3ecab16 100644
--- a/russian/xcyrBGR/Makefile
+++ b/russian/xcyrBGR/Makefile
@@ -19,7 +19,7 @@ NO_INSTALL_MANPAGES= yes
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 400012
-MAKE_ENV= COPT="-fpermissive"
+MAKE_ENV= COPT="${CXXFLAGS} -fpermissive"
.endif
post-extract:
diff --git a/russian/xcyrBGR/files/patch-ab b/russian/xcyrBGR/files/patch-ab
new file mode 100644
index 000000000000..dfe07a78a239
--- /dev/null
+++ b/russian/xcyrBGR/files/patch-ab
@@ -0,0 +1,26 @@
+--- Makefile.orig Sun Sep 8 17:09:50 2002
++++ Makefile Sun Sep 8 17:10:42 2002
+@@ -1,18 +1,19 @@
+ I = -I${X11BASE}/include -I${LOCALBASE}/include
+ L = -L${LOCALBASE}/lib -L${X11BASE}/lib -L/usr/lib -lXpm -lX11 -lXext
+
+-CC+= ${CFLAGS} ${COPT} $I -DXLIB_ILLEGAL_ACCESS
++CXX?= c++
++CXXFLAGS=${COPT} $I -DXLIB_ILLEGAL_ACCESS
+
+ all: xcyrBGR
+
+ xcyrBGR: xcyrBGR.o cyrmapper.o
+- $(CC) xcyrBGR.o cyrmapper.o -o xcyrBGR $L
++ $(CXX) $(CXXFLAGS) xcyrBGR.o cyrmapper.o -o xcyrBGR $L
+
+ xcyrBGR.o: xcyrBGR.cc
+- $(CC) xcyrBGR.cc -c -o xcyrBGR.o
++ $(CXX) $(CXXFLAGS) xcyrBGR.cc -c -o xcyrBGR.o
+
+ cyrmapper.o: cyrmapper.cc cyrmapper.h
+- $(CC) cyrmapper.cc -c -o cyrmapper.o
++ $(CXX) $(CXXFLAGS) cyrmapper.cc -c -o cyrmapper.o
+
+ clean:
+ rm *.o xcyrBGR