View | Details | Raw Unified | Return to bug 19307
Collapse All | Expand All

(-)qrash/Makefile (+9 lines)
Lines 22-25 Link Here
22
ALL_TARGET=	qrash
22
ALL_TARGET=	qrash
23
USE_X_PREFIX=	yes
23
USE_X_PREFIX=	yes
24
24
25
post-patch:
26
	@${SED} s=PREFIX=${PREFIX}=g ${WRKSRC}/resource.cc >${WRKSRC}/resource-sed.cc
27
	${MV} ${WRKSRC}/resource-sed.cc ${WRKSRC}/resource.cc
28
	@${SED} s=PREFIX=${PREFIX}=g ${WRKSRC}/Makefile.in >${WRKSRC}/Makefile-sed.in
29
	${MV} ${WRKSRC}/Makefile-sed.in ${WRKSRC}/Makefile.in
30
	@${SED} s=/usr/X11=${PREFIX}=g ${WRKSRC}/configure >${WRKSRC}/configure-sed
31
	${MV} ${WRKSRC}/configure-sed ${WRKSRC}/configure
32
	${CHMOD} +x ${WRKSRC}/configure
33
25
.include <bsd.port.mk>
34
.include <bsd.port.mk>
(-)qrash/patches/patch-ab (-10 / +3 lines)
Lines 1-5 Link Here
1
--- configure.orig	Wed Sep 24 11:50:18 1997
1
--- configure.orig	Wed Sep 24 11:50:18 1997
2
+++ configure	Sun Oct 24 05:48:05 1999
2
+++ configure	Thu Jun 15 10:25:16 2000
3
@@ -9,7 +9,7 @@
3
@@ -9,7 +9,7 @@
4
 echo "what CPU has your box inside?"
4
 echo "what CPU has your box inside?"
5
 echo "1) i386-compatible"
5
 echo "1) i386-compatible"
Lines 9-15 Link Here
9
 case $cpu in
9
 case $cpu in
10
   1)	echo "CPU=_g" > options ;
10
   1)	echo "CPU=_g" > options ;
11
 	echo "CXXFLAGS += -Di386" >> options ;;
11
 	echo "CXXFLAGS += -Di386" >> options ;;
12
@@ -32,13 +33,13 @@
12
@@ -32,7 +32,7 @@
13
 echo "3) Vesa (dos only)"
13
 echo "3) Vesa (dos only)"
14
 #echo "4) Win32 DirectDraw"
14
 #echo "4) Win32 DirectDraw"
15
 #echo "5) OS/2 DIVE"
15
 #echo "5) OS/2 DIVE"
Lines 18-31 Link Here
18
 case $gfx in
18
 case $gfx in
19
   1)	echo "GFX=vga" >> options ;
19
   1)	echo "GFX=vga" >> options ;
20
 	echo "LIBS += -lvga" >> options ;;
20
 	echo "LIBS += -lvga" >> options ;;
21
 
21
@@ -68,7 +68,7 @@
22
   2)	echo "GFX=x11" >> options ;
23
-	echo "LIBS += -L/usr/X11/lib -lX11" >> options ;;
24
+	echo "LIBS += -L/usr/X11R6/lib -lX11" >> options ;;
25
 
26
   3)	echo "GFX=dos" >> options ;
27
 	echo "LIBS += -Lsvgakit -lsvga -lpmode -lztime" >> options ;;
28
@@ -68,7 +70,7 @@
29
 echo "10) none of the above"
22
 echo "10) none of the above"
30
 #echo "11) Win32"
23
 #echo "11) Win32"
31
 #echo "12) OS/2"
24
 #echo "12) OS/2"
(-)qrash/patches/patch-ae (-2 / +2 lines)
Lines 1-9 Link Here
1
--- Makefile.in.orig	Wed Sep 24 09:49:16 1997
1
--- Makefile.in.orig	Wed Sep 24 09:49:16 1997
2
+++ Makefile.in	Sun Oct 24 06:59:51 1999
2
+++ Makefile.in	Thu Jun 15 10:42:37 2000
3
@@ -1,5 +1,5 @@
3
@@ -1,5 +1,5 @@
4
 # Maximum optimization
4
 # Maximum optimization
5
-CXXFLAGS += -O6 -ffast-math -funroll-loops -w
5
-CXXFLAGS += -O6 -ffast-math -funroll-loops -w
6
+CXXFLAGS += -O6 -ffast-math -funroll-loops -w -I /usr/X11R6/include/
6
+CXXFLAGS += -O6 -ffast-math -funroll-loops -w -I PREFIX/include/
7
 
7
 
8
 # Debugging options
8
 # Debugging options
9
 #CXXFLAGS += -g
9
 #CXXFLAGS += -g
(-)qrash/patches/patch-ag (-1 / +1 lines)
Lines 5-11 Link Here
5
 void resInit( char* name )
5
 void resInit( char* name )
6
 {
6
 {
7
-  strcpy( resource_name, my_strlwr(name) );
7
-  strcpy( resource_name, my_strlwr(name) );
8
+  strcpy( resource_name, "/usr/X11R6/share/qrash/qrash.dat" );
8
+  strcpy( resource_name, "PREFIX/share/qrash/qrash.dat" );
9
   FILE* f = fopen( resource_name, "rb" );
9
   FILE* f = fopen( resource_name, "rb" );
10
   if(f) {
10
   if(f) {
11
     fseek( f, -4, SEEK_END );
11
     fseek( f, -4, SEEK_END );

Return to bug 19307