summaryrefslogtreecommitdiff
path: root/japanese/xjtext/files/patch-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'japanese/xjtext/files/patch-Makefile')
-rw-r--r--japanese/xjtext/files/patch-Makefile56
1 files changed, 56 insertions, 0 deletions
diff --git a/japanese/xjtext/files/patch-Makefile b/japanese/xjtext/files/patch-Makefile
new file mode 100644
index 000000000000..d81230894bb1
--- /dev/null
+++ b/japanese/xjtext/files/patch-Makefile
@@ -0,0 +1,56 @@
+--- Makefile.orig 1999-09-04 22:45:16.000000000 +0900
++++ Makefile 2012-09-11 04:28:11.000000000 +0900
+@@ -1,27 +1,27 @@
+ CC =g++
+-CFLAGS =-c -g -O
+-INCDIRS =-I/usr/X11R6/include -I/usr/local/include
++CFLAGS =${CXXFLAGS} -c
++INCDIRS =-I${LOCALBASE}/include `imlib-config --cflags`
+ LIBS =-lX11 -lXext -lm -lfl
+-IMLIBS =-ljpeg -lpng -ltiff -lz -lgif -lImlib
+-LIBDIRS =-L/usr/X11R6/lib/ -L/usr/local/lib
++IMLIBS =`imlib-config --libs`
++LIBDIRS =-L${LOCALBASE}/lib
+ OBJS =xwindow.o xfont.o xtext.o xjtext.o lex.yy.o parser.tab.o xjtext-main.o
+
+ all: xjtext
+
+ xwindow.o: xwindow.h xwindow.c
+- ${CC} ${CFLAGS} ${INCDIRS} xwindow.c
++ ${CXX} ${CFLAGS} ${INCDIRS} xwindow.c
+
+ xfont.o: xwindow.h xfont.h xfont.c
+- ${CC} ${CFLAGS} ${INCDIRS} xfont.c
++ ${CXX} ${CFLAGS} ${INCDIRS} xfont.c
+
+ xtext.o: xwindow.h xfont.h xtext.h xtext.c
+- ${CC} ${CFLAGS} ${INCDIRS} xtext.c
++ ${CXX} ${CFLAGS} ${INCDIRS} xtext.c
+
+ xjtext.o: xwindow.h xfont.h xtext.h xjtext.h xjtext.c
+- ${CC} ${CFLAGS} ${INCDIRS} xjtext.c
++ ${CXX} ${CFLAGS} ${INCDIRS} xjtext.c
+
+ xjtext-main.o: xwindow.h xfont.h xtext.h xjtext.h xjtext-main.c
+- ${CC} ${CFLAGS} ${INCDIRS} xjtext-main.c
++ ${CXX} ${CFLAGS} ${INCDIRS} xjtext-main.c
+
+ parser.tab.c: xwindow.h xfont.h xtext.h xjtext.h parsing.h parser.y
+ bison -dv parser.y
+@@ -33,13 +33,13 @@
+ flex lex.l
+
+ parser.tab.o: parser.tab.c
+- ${CC} ${CFLAGS} ${INCDIRS} parser.tab.c
++ ${CXX} ${CFLAGS} ${INCDIRS} parser.tab.c
+
+ lex.yy.o: xwindow.h xfont.h xtext.h xjtext.h parsing.h parser.tab.h lex.yy.c
+- ${CC} ${CFLAGS} ${INCDIRS} lex.yy.c
++ ${CXX} ${CFLAGS} ${INCDIRS} lex.yy.c
+
+ xjtext: ${OBJS}
+- LD_RUN_PATH=/usr/X11R6/lib/ ${CC} ${OBJS} ${LIBDIRS} ${LIBS} ${IMLIBS}\
++ LD_RUN_PATH=${LOCALBASE}/lib/ ${CXX} ${OBJS} ${LIBDIRS} ${LIBS} ${IMLIBS}\
+ -o xjtext
+
+ clean: