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

(-)games/darkplaces/Makefile (-3 / +4 lines)
Lines 18-23 Link Here
18
USE_ZIP=	yes
18
USE_ZIP=	yes
19
USE_GMAKE=	yes
19
USE_GMAKE=	yes
20
USE_XORG=	xxf86dga xpm
20
USE_XORG=	xxf86dga xpm
21
USE_DOS2UNIX=	darkplaces.txt
21
MAKE_ENV=	DP_FS_BASEDIR="${Q1DIR}"
22
MAKE_ENV=	DP_FS_BASEDIR="${Q1DIR}"
22
WRKSRC=		${WRKDIR}/${PORTNAME}
23
WRKSRC=		${WRKDIR}/${PORTNAME}
23
24
Lines 68-75 Link Here
68
.endif
69
.endif
69
70
70
post-extract:
71
post-extract:
71
	@${UNZIP_CMD} -aq \
72
	@${UNZIP_CMD} ${EXTRACT_BEFORE_ARGS} \
72
		-o ${WRKDIR}/${PORTNAME}enginesource${PORTVERSION}.zip \
73
		${WRKDIR}/${PORTNAME}enginesource${PORTVERSION}.zip \
73
		-d ${WRKDIR}
74
		-d ${WRKDIR}
74
75
75
do-install:
76
do-install:
Lines 80-86 Link Here
80
	@${TOUCH} ${DATADIR}/dummy
81
	@${TOUCH} ${DATADIR}/dummy
81
.if !defined(NOPORTDOCS)
82
.if !defined(NOPORTDOCS)
82
	${MKDIR} ${DOCSDIR}
83
	${MKDIR} ${DOCSDIR}
83
	${INSTALL_DATA} ${WRKDIR}/darkplaces.txt ${DOCSDIR}
84
	${INSTALL_DATA} ${WRKSRC}/darkplaces.txt ${DOCSDIR}
84
.endif
85
.endif
85
86
86
.include <bsd.port.post.mk>
87
.include <bsd.port.post.mk>
(-)games/quake2-ctf/Makefile (-1 / +2 lines)
Lines 20-25 Link Here
20
COMMENT=	Quake II CTF (Capture The Flag) modification
20
COMMENT=	Quake II CTF (Capture The Flag) modification
21
21
22
USE_ZIP=	yes
22
USE_ZIP=	yes
23
USE_DOS2UNIX=	../../../ctf/readme.txt ../../../ctf/server.cfg
23
WRKSRC=		${WRKDIR}/${CTF_SRC:S/.tar.gz//}/src/ctf
24
WRKSRC=		${WRKDIR}/${CTF_SRC:S/.tar.gz//}/src/ctf
24
25
25
LATEST_LINK=	${PKGNAMEPREFIX}${PORTNAME}
26
LATEST_LINK=	${PKGNAMEPREFIX}${PORTNAME}
Lines 36-42 Link Here
36
	@${MKDIR} ${WRKDIR}
37
	@${MKDIR} ${WRKDIR}
37
	@${TAR} zxf ${DISTDIR}/${DIST_SUBDIR}/${CTF_SRC} -C ${WRKDIR} \
38
	@${TAR} zxf ${DISTDIR}/${DIST_SUBDIR}/${CTF_SRC} -C ${WRKDIR} \
38
		--include "${CTF_SRC:S/.tar.gz//}/src/ctf/*"
39
		--include "${CTF_SRC:S/.tar.gz//}/src/ctf/*"
39
	@${UNZIP_CMD} -aq -d ${WRKDIR}/ctf \
40
	@${UNZIP_CMD} ${EXTRACT_BEFORE_ARGS} -d ${WRKDIR}/ctf \
40
		${DISTDIR}/${DIST_SUBDIR}/${CTF_DATA} -x *.dll *.ico
41
		${DISTDIR}/${DIST_SUBDIR}/${CTF_DATA} -x *.dll *.ico
41
42
42
post-extract:
43
post-extract:
(-)games/quake2-data/Makefile (+1 lines)
Lines 19-24 Link Here
19
MAINTAINER=	alepulver@FreeBSD.org
19
MAINTAINER=	alepulver@FreeBSD.org
20
COMMENT=	Quake II data files
20
COMMENT=	Quake II data files
21
21
22
#XXX need info-unzip for q2-314-demo-x86.exe
22
USE_ZIP=	yes
23
USE_ZIP=	yes
23
NO_WRKSUBDIR=	yes
24
NO_WRKSUBDIR=	yes
24
25
(-)games/xevil/Makefile (-1 / +2 lines)
Lines 17-22 Link Here
17
17
18
USE_ZIP=	yes
18
USE_ZIP=	yes
19
USE_XORG=	xpm
19
USE_XORG=	xpm
20
USE_DOS2UNIX= makefile config.mk cmn/makefile cmn/*.cpp cmn/*.h x11/makefile x11/*.cpp
20
MAKEFILE=	makefile
21
MAKEFILE=	makefile
21
ALL_TARGET=	freebsd
22
ALL_TARGET=	freebsd
22
MAKE_JOBS_UNSAFE=	yes
23
MAKE_JOBS_UNSAFE=	yes
Lines 32-38 Link Here
32
	@${MKDIR} ${WRKDIR}/${DISTNAME}
33
	@${MKDIR} ${WRKDIR}/${DISTNAME}
33
34
34
do-extract:
35
do-extract:
35
	@unzip -aqo ${DISTDIR}/${DISTFILES} -d ${WRKSRC}
36
	@${UNZIP_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/${DISTFILES} -d ${WRKSRC}
36
37
37
do-install:
38
do-install:
38
	${INSTALL_PROGRAM} ${WRKSRC}/x11/FREEBSD/xevil ${PREFIX}/bin/xevil
39
	${INSTALL_PROGRAM} ${WRKSRC}/x11/FREEBSD/xevil ${PREFIX}/bin/xevil
(-)graphics/fli2gif/Makefile (-5 / +4 lines)
Lines 12-28 Link Here
12
MASTER_SITES=	http://jeff.bovine.net/download/fli2gif/
12
MASTER_SITES=	http://jeff.bovine.net/download/fli2gif/
13
DISTNAME=	${PORTNAME}b
13
DISTNAME=	${PORTNAME}b
14
14
15
MAINTAINER=	ports@FreeBSD.org
15
MAINTAINER=	spam@rm-rf.kiev.ua
16
COMMENT=	Automatic Flic to animated GIF convertor
16
COMMENT=	Automatic Flic to animated GIF convertor
17
17
18
NO_WRKSUBDIR=	yes
18
NO_WRKSUBDIR=	yes
19
19
20
USE_ZIP=	yes
20
USE_ZIP=	yes
21
USE_DOS2UNIX=	fli2gif.cpp FLI2GIF.TXT
21
22
22
post-extract:
23
post-extract:
23
	@cd ${WRKSRC} && unzip -q -aa source.zip \
24
	@cd ${WRKSRC} && ${UNZIP_CMD} -qL source.zip
24
		&& ${LN} -sf GIF.CPP gif.cpp \
25
		&& ${LN} -sf FLIPLAY.CPP fliplay.cpp
26
25
27
do-build:
26
do-build:
28
	@cd ${WRKSRC} && ${CXX} ${CXXFLAGS} -o ${PORTNAME} *.cpp
27
	@cd ${WRKSRC} && ${CXX} ${CXXFLAGS} -o ${PORTNAME} *.cpp
Lines 31-37 Link Here
31
	${INSTALL_PROGRAM} ${WRKSRC}/fli2gif ${PREFIX}/bin
30
	${INSTALL_PROGRAM} ${WRKSRC}/fli2gif ${PREFIX}/bin
32
.if !defined(NOPORTDOCS)
31
.if !defined(NOPORTDOCS)
33
	@${MKDIR} ${DOCSDIR}
32
	@${MKDIR} ${DOCSDIR}
34
	${INSTALL_DATA}	${WRKSRC}/*.TXT ${DOCSDIR}
33
	${INSTALL_DATA}	${WRKSRC}/FLI2GIF.TXT ${DOCSDIR}
35
.endif
34
.endif
36
35
37
.include <bsd.port.mk>
36
.include <bsd.port.mk>
(-)graphics/fli2gif/files/patch-ab (-40 lines)
Lines 1-40 Link Here
1
--- fli2gif.cpp.orig	Fri Sep  6 00:10:14 1996
2
+++ fli2gif.cpp	Fri Nov  1 06:18:18 2002
3
@@ -43,7 +43,9 @@
4
 // ******************
5
 #include <stdio.h>
6
 #include <stdlib.h>
7
-#include <malloc.h>
8
+#ifndef __STDC__
9
+# include <malloc.h>
10
+#endif
11
 #include <string.h>
12
 #if defined(__TURBOC__) || defined(_MSC_VER)
13
     #include <conio.h>
14
@@ -95,7 +97,7 @@
15
 //############################################################################
16
 //############################################################################
17
 //############################################################################
18
-void main(int argc, char *argv[])
19
+int main(int argc, char *argv[])
20
 {
21
     FILE *fp;
22
     int i, j;
23
@@ -104,7 +106,7 @@
24
     // []----------------[]
25
     // |  Initialization  |
26
     // []----------------[]
27
-    printf("FLI2GIF.EXE -- Automatic Flic to Animated GIF convertor, v1.1\n");
28
+    printf("FLI2GIF -- Automatic Flic to Animated GIF convertor, v1.1\n");
29
     printf("   by JL Enterprises, 1996.  (Compiled with "
30
         #if defined(__TURBOC__)
31
             "Borland"
32
@@ -117,6 +119,8 @@
33
             " for Windows"
34
         #elif defined(__MSDOS__) || defined(_DOS)
35
             " for MS-DOS"
36
+        #elif defined(__FreeBSD__)
37
+            " for FreeBSD"
38
         #endif    
39
         ")\n\n");
40
     {
(-)graphics/fli2gif/files/patch-fli2gif.c (+57 lines)
Line 0 Link Here
1
Index: fli2gif.cpp
2
@@ -43,7 +43,9 @@
3
 // ******************
4
 #include <stdio.h>
5
 #include <stdlib.h>
6
-#include <malloc.h>
7
+#ifndef __STDC__
8
+# include <malloc.h>
9
+#endif
10
 #include <string.h>
11
 #if defined(__TURBOC__) || defined(_MSC_VER)
12
     #include <conio.h>
13
@@ -81,7 +83,7 @@
14
 // ***  Function prototypes  ***
15
 // *****************************
16
 void handle_error(int errorcode);
17
-char *add_extension(char *filename, char *extension, BOOL enforce);
18
+char *add_extension(char *filename, const char *extension, BOOL enforce);
19
 
20
 
21
 // **************************
22
@@ -95,7 +97,7 @@
23
 //############################################################################
24
 //############################################################################
25
 //############################################################################
26
-void main(int argc, char *argv[])
27
+int main(int argc, char *argv[])
28
 {
29
     FILE *fp;
30
     int i, j;
31
@@ -104,7 +106,7 @@
32
     // []----------------[]
33
     // |  Initialization  |
34
     // []----------------[]
35
-    printf("FLI2GIF.EXE -- Automatic Flic to Animated GIF convertor, v1.1\n");
36
+    printf("FLI2GIF -- Automatic Flic to Animated GIF convertor, v1.1\n");
37
     printf("   by JL Enterprises, 1996.  (Compiled with "
38
         #if defined(__TURBOC__)
39
             "Borland"
40
@@ -117,6 +119,8 @@
41
             " for Windows"
42
         #elif defined(__MSDOS__) || defined(_DOS)
43
             " for MS-DOS"
44
+        #elif defined(__FreeBSD__)
45
+            " for FreeBSD"
46
         #endif    
47
         ")\n\n");
48
     {
49
@@ -389,7 +393,7 @@
50
 // Takes a user-entered filename and adds the specified extension if an
51
 // entension is not explicitly stated in the passed filename.  A pointer
52
 // to a static buffer is returned.
53
-char *add_extension(char *filename, char *extension, BOOL enforce)
54
+char *add_extension(char *filename, const char *extension, BOOL enforce)
55
 {
56
     static char Path[_MAX_PATH];
57
 
(-)misc/astrolog/Makefile (-1 / +2 lines)
Lines 22-27 Link Here
22
COMMENT=	An astrology program for X11 and alpha-numeric terminals
22
COMMENT=	An astrology program for X11 and alpha-numeric terminals
23
23
24
USE_ZIP=	yes
24
USE_ZIP=	yes
25
USE_DOS2UNIX=	ephem/EPHINDEX.TXT
25
.if !defined(WITHOUT_X11)
26
.if !defined(WITHOUT_X11)
26
USE_XORG=	x11
27
USE_XORG=	x11
27
MAKE_ARGS=	-DX11
28
MAKE_ARGS=	-DX11
Lines 35-41 Link Here
35
36
36
post-extract:
37
post-extract:
37
	-@${MKDIR} ${WRKDIR}/ephem
38
	-@${MKDIR} ${WRKDIR}/ephem
38
	${UNZIP_CMD} -qao ${_DISTDIR}/${EPHEM} -d ${WRKDIR}/ephem
39
	${UNZIP_CMD} ${EXTRACT_BEFORE_ARGS} ${_DISTDIR}/${EPHEM} -d ${WRKDIR}/ephem
39
40
40
post-patch:
41
post-patch:
41
	@${REINPLACE_CMD} -e "s@malloc.h@stdlib.h@g" \
42
	@${REINPLACE_CMD} -e "s@malloc.h@stdlib.h@g" \
(-)misc/projectionlib/Makefile (-2 / +1 lines)
Lines 16-26 Link Here
16
16
17
LIB_DEPENDS=	gctpc.1:${PORTSDIR}/misc/gctpc
17
LIB_DEPENDS=	gctpc.1:${PORTSDIR}/misc/gctpc
18
18
19
EXTRACT_CMD=	unzip -a
20
21
WRKSRC=		${WRKDIR}/dlgv32/ProjectionLib
19
WRKSRC=		${WRKDIR}/dlgv32/ProjectionLib
22
20
23
USE_ZIP=	yes
21
USE_ZIP=	yes
22
USE_DOS2UNIX=	*.cpp *.h
24
USE_LDCONFIG=	yes
23
USE_LDCONFIG=	yes
25
MAKEFILE=	${FILESDIR}/Makefile
24
MAKEFILE=	${FILESDIR}/Makefile
26
25
(-)print/acrobatviewer/Makefile (+1 lines)
Lines 16-21 Link Here
16
MAINTAINER=	ports@FreeBSD.org
16
MAINTAINER=	ports@FreeBSD.org
17
COMMENT=	Viewer for the PDF files written in Java(TM)
17
COMMENT=	Viewer for the PDF files written in Java(TM)
18
18
19
#XXX need info-unzip for archive.zip
19
USE_ZIP=	yes
20
USE_ZIP=	yes
20
USE_JAVA=	yes
21
USE_JAVA=	yes
21
JAVA_VERSION=	1.3+
22
JAVA_VERSION=	1.3+
(-)sysutils/megarc/Makefile (-1 / +2 lines)
Lines 15-20 Link Here
15
COMMENT=	LSI Logic's MegaRAID controlling software
15
COMMENT=	LSI Logic's MegaRAID controlling software
16
16
17
USE_ZIP=	yes
17
USE_ZIP=	yes
18
USE_DOS2UNIX=	Release\ History.txt
18
NO_BUILD=	yes
19
NO_BUILD=	yes
19
NO_WRKSUBDIR=	yes
20
NO_WRKSUBDIR=	yes
20
21
Lines 25-31 Link Here
25
PORTDOCS=	*
26
PORTDOCS=	*
26
27
27
post-extract:
28
post-extract:
28
	@cd ${WRKSRC} && ${UNZIP_CMD} -aqo 'MegaRC 1.04.zip'
29
	@cd ${WRKSRC} && ${UNZIP_CMD} ${EXTRACT_BEFORE_ARGS} 'MegaRC 1.04.zip'
29
30
30
do-install:
31
do-install:
31
	${INSTALL_PROGRAM} ${WRKSRC}/megarc ${PREFIX}/sbin
32
	${INSTALL_PROGRAM} ${WRKSRC}/megarc ${PREFIX}/sbin
(-)textproc/docbook-420/Makefile (-2 / +1 lines)
Lines 20-26 Link Here
20
RUN_DEPENDS=	${ISOCAT}:${PORTSDIR}/textproc/iso8879 \
20
RUN_DEPENDS=	${ISOCAT}:${PORTSDIR}/textproc/iso8879 \
21
		${XMLCATMGR}:${PORTSDIR}/textproc/xmlcatmgr
21
		${XMLCATMGR}:${PORTSDIR}/textproc/xmlcatmgr
22
22
23
BUILD_DEPENDS=	unzip:${PORTSDIR}/archivers/unzip
24
USE_ZIP=	yes
23
USE_ZIP=	yes
25
NO_MTREE=	yes
24
NO_MTREE=	yes
26
NO_BUILD=	yes
25
NO_BUILD=	yes
Lines 41-47 Link Here
41
	@[ -d ${INSTDIR}/${PORTVERSION} ] || ${MKDIR} ${INSTDIR}/${PORTVERSION}
40
	@[ -d ${INSTDIR}/${PORTVERSION} ] || ${MKDIR} ${INSTDIR}/${PORTVERSION}
42
41
43
do-install:
42
do-install:
44
	@unzip -a -q -o ${DISTDIR}/${DISTFILES} -d ${INSTDIR}/${PORTVERSION}
43
	@${UNZIP_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/${DISTFILES} -d ${INSTDIR}/${PORTVERSION}
45
	@${INSTALL_DATA} ${FILESDIR}/catalog ${INSTDIR}/${PORTVERSION}/catalog
44
	@${INSTALL_DATA} ${FILESDIR}/catalog ${INSTDIR}/${PORTVERSION}/catalog
46
	@${ECHO_CMD} "CATALOG \"${ISOCAT}\"" >> ${INSTDIR}/${PORTVERSION}/catalog
45
	@${ECHO_CMD} "CATALOG \"${ISOCAT}\"" >> ${INSTDIR}/${PORTVERSION}/catalog
47
	@${CHMOD} ${SHAREMODE} ${INSTDIR}/${PORTVERSION}/*
46
	@${CHMOD} ${SHAREMODE} ${INSTDIR}/${PORTVERSION}/*
(-)textproc/iso8879/Makefile (-3 / +2 lines)
Lines 12-26 Link Here
12
MASTER_SITES=	${MASTER_SITE_LOCAL}
12
MASTER_SITES=	${MASTER_SITE_LOCAL}
13
MASTER_SITE_SUBDIR=	kuriyama
13
MASTER_SITE_SUBDIR=	kuriyama
14
DISTNAME=	isoENTS
14
DISTNAME=	isoENTS
15
EXTRACT_SUFX=	.zip
16
15
17
MAINTAINER=	kuriyama@FreeBSD.org
16
MAINTAINER=	kuriyama@FreeBSD.org
18
COMMENT=	Character entity sets from ISO 8879:1986 (SGML)
17
COMMENT=	Character entity sets from ISO 8879:1986 (SGML)
19
18
20
BUILD_DEPENDS=	unzip:${PORTSDIR}/archivers/unzip
21
RUN_DEPENDS=	${XMLCATMGR}:${PORTSDIR}/textproc/xmlcatmgr
19
RUN_DEPENDS=	${XMLCATMGR}:${PORTSDIR}/textproc/xmlcatmgr
22
20
23
EXTRACT_ONLY=	# empty
21
EXTRACT_ONLY=	# empty
22
USE_ZIP=	yes
24
NO_BUILD=	yes
23
NO_BUILD=	yes
25
NO_WRKSUBDIR=	yes
24
NO_WRKSUBDIR=	yes
26
PLIST_SUB=	DTD_NAME=${PORTNAME} XMLCATMGR=${XMLCATMGR}
25
PLIST_SUB=	DTD_NAME=${PORTNAME} XMLCATMGR=${XMLCATMGR}
Lines 34-40 Link Here
34
	@[ -d ${INSTDIR} ] || ${MKDIR} ${INSTDIR}
33
	@[ -d ${INSTDIR} ] || ${MKDIR} ${INSTDIR}
35
34
36
do-install:
35
do-install:
37
	@unzip -a -q -o ${DISTDIR}/${DISTFILES} -d ${INSTDIR}
36
	@${UNZIP_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/${DISTFILES} -d ${INSTDIR}
38
	@${INSTALL_DATA} ${FILESDIR}/catalog ${INSTDIR}/catalog
37
	@${INSTALL_DATA} ${FILESDIR}/catalog ${INSTDIR}/catalog
39
	@${CHMOD} ${SHAREMODE} ${INSTDIR}/*
38
	@${CHMOD} ${SHAREMODE} ${INSTDIR}/*
40
	@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${INSTDIR}
39
	@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${INSTDIR}

Return to bug 146533