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

(-)Makefile (-6 / +4 lines)
Lines 2-13 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	hlextract
4
PORTNAME=	hlextract
5
PORTVERSION=	2.4.3
5
PORTVERSION=	2.4.4
6
CATEGORIES=	archivers games
6
CATEGORIES=	archivers games
7
MASTER_SITES=	http://nemesis.thewavelength.net/files/files/
7
MASTER_SITES=	http://nemesis.thewavelength.net/files/files/
8
DISTNAME=	hllib${PORTVERSION:S/.//g}
8
DISTNAME=	hllib${PORTVERSION:S/.//g}
9
9
10
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	danilogondolfo@gmail.com
11
COMMENT=	Utility to extract data from various Half-Life file formats
11
COMMENT=	Utility to extract data from various Half-Life file formats
12
12
13
LICENSE=	GPLv2
13
LICENSE=	GPLv2
Lines 17-28 Link Here
17
USE_ZIP=	yes
17
USE_ZIP=	yes
18
WRKSRC=		${WRKDIR}/HLExtract
18
WRKSRC=		${WRKDIR}/HLExtract
19
19
20
PATCH_WRKSRC=	${WRKDIR}
21
20
PLIST_FILES=	bin/${PORTNAME}
22
PLIST_FILES=	bin/${PORTNAME}
21
23
22
post-patch:
23
	@${REINPLACE_CMD} -e 's,linux/limits,sys/param, ; \
24
		s,HLExtract\.exe,${PORTNAME},' ${WRKSRC}/Main.c
25
26
do-build:
24
do-build:
27
	${CC} ${CFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib \
25
	${CC} ${CFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib \
28
		${WRKSRC}/Main.c -o ${WRKSRC}/${PORTNAME} -lhl
26
		${WRKSRC}/Main.c -o ${WRKSRC}/${PORTNAME} -lhl
(-)distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (hllib243.zip) = 2eafa706ab4cccea0c9966f45e5eabf4bad27b5b4b224cc6592ba68debd54ae0
1
SHA256 (hllib244.zip) = cb94da1c32e9577dce1aa2bbb77f283212684afcd7814d42228c9ffff71d3699
2
SIZE (hllib243.zip) = 591480
2
SIZE (hllib244.zip) = 593745
(-)files/patch-hlextract (+82 lines)
Line 0 Link Here
1
diff -ru ../orig/HLExtract/Main.c ./HLExtract/Main.c
2
--- ../orig/HLExtract/Main.c	2011-09-17 00:41:54.000000000 -0300
3
+++ ./HLExtract/Main.c	2013-02-11 18:29:02.880217165 -0200
4
@@ -52,7 +52,7 @@
5
 #	define WIN32_LEAN_AND_MEAN
6
 #	include <windows.h>
7
 #else
8
-#	include <linux/limits.h>
9
+#	include <sys/param.h>
10
 #	define MAX_PATH PATH_MAX
11
 
12
 #	define FOREGROUND_BLUE      0x0001
13
@@ -618,15 +618,15 @@
14
 	printf("\n");
15
 	printf("Example HLExtract usage:\n");
16
 #ifdef _WIN32
17
-	printf("HLExtract.exe -p \"C:\\half-life.gcf\" -d \"C:\\backup\" -e \"root\\valve\\models\" -e \"root\\valve\\config.cfg\"\n");
18
-	printf("HLExtract.exe -p \"C:\\half-life.gcf\" -c -m -v\n");
19
-	printf("HLExtract.exe -p \"C:\\half-life.gcf\" -lf \"C:\\half-life.txt\" -m -s\n");
20
-	printf("HLExtract.exe -p \"C:\\half-life.gcf\" -m -f\n");
21
+	printf("hlextract -p \"C:\\half-life.gcf\" -d \"C:\\backup\" -e \"root\\valve\\models\" -e \"root\\valve\\config.cfg\"\n");
22
+	printf("hlextract -p \"C:\\half-life.gcf\" -c -m -v\n");
23
+	printf("hlextract -p \"C:\\half-life.gcf\" -lf \"C:\\half-life.txt\" -m -s\n");
24
+	printf("hlextract -p \"C:\\half-life.gcf\" -m -f\n");
25
 #else
26
-	printf("HLExtract.exe -p \"~/half-life.gcf\" -d \"~/backup\" -e \"root/valve/models\" -e \"root/valve/config.cfg\"\n");
27
-	printf("HLExtract.exe -p \"~/half-life.gcf\" -c -m -v\n");
28
-	printf("HLExtract.exe -p \"~/half-life.gcf\" -lf \"~/half-life.txt\" -m -s\n");
29
-	printf("HLExtract.exe -p \"~/half-life.gcf\" -m -f\n");
30
+	printf("hlextract -p \"~/half-life.gcf\" -d \"~/backup\" -e \"root/valve/models\" -e \"root/valve/config.cfg\"\n");
31
+	printf("hlextract -p \"~/half-life.gcf\" -c -m -v\n");
32
+	printf("hlextract -p \"~/half-life.gcf\" -lf \"~/half-life.txt\" -m -s\n");
33
+	printf("hlextract -p \"~/half-life.gcf\" -m -f\n");
34
 #endif
35
 }
36
 
37
@@ -657,6 +657,8 @@
38
 			fprintf(pFile, "%s\n", lpPath);
39
 		}
40
 		break;
41
+	default:
42
+		;
43
 	}
44
 }
45
 
46
@@ -843,6 +845,8 @@
47
 				PrintValidation(eValidation);
48
 				printf("\n");
49
 				break;
50
+			default:
51
+				;
52
 			}
53
 		}
54
 		else
55
@@ -851,6 +855,8 @@
56
 			printf("  \n");
57
 		}
58
 		break;
59
+	default:
60
+		;
61
 	}
62
 
63
 	return eValidation;
64
@@ -882,6 +888,8 @@
65
 	case HL_ATTRIBUTE_STRING:
66
 		printf("%s%s: %s%s\n", lpPrefix, pAttribute->lpName, pAttribute->Value.String.lpValue, lpPostfix);
67
 		break;
68
+	default:
69
+		;
70
 	}
71
 }
72
 
73
@@ -1151,6 +1159,8 @@
74
 						printf("  Size: %u B\n", hlFileGetSize(pSubItem));
75
 						printf("  Size On Disk: %u B\n", hlFileGetSizeOnDisk(pSubItem));
76
 						break;
77
+					default:
78
+						;
79
 					}
80
 
81
 					uiItemCount = hlPackageGetItemAttributeCount();
82
Only in ./HLExtract: Main.c.bak

Return to bug 176042