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

(-)graphics/xtexcad/Makefile (-10 / +5 lines)
Lines 1-24 Link Here
1
# ex:ts=8
1
# Created by: ijliao
2
# Ports collection makefile for:	xtexcad
3
# Date created:			May 20, 2003
4
# Whom:				ijliao
5
#
6
# $FreeBSD: head/graphics/xtexcad/Makefile 300896 2012-07-14 13:54:48Z beat $
2
# $FreeBSD: head/graphics/xtexcad/Makefile 300896 2012-07-14 13:54:48Z beat $
7
#
8
3
9
PORTNAME=	xtexcad
4
PORTNAME=	xtexcad
10
PORTVERSION=	2.4.1
5
PORTVERSION=	2.4.1
11
PORTREVISION=	2
6
PORTREVISION=	2
12
CATEGORIES=	graphics
7
CATEGORIES=	graphics
13
MASTER_SITES=	${MASTER_SITE_TEX_CTAN}
8
MASTER_SITES=	TEX_CTAN/graphics/xtexcad
14
MASTER_SITE_SUBDIR=	graphics/xtexcad
15
9
16
MAINTAINER=	ports@FreeBSD.org
10
MAINTAINER=	ports@FreeBSD.org
17
COMMENT=	Simple drawing program enforcing limited slopes and diameters
11
COMMENT=	Simple drawing program enforcing limited slopes and diameters
18
12
19
USE_IMAKE=	yes
20
USE_XORG=	ice sm x11 xaw xext xmu xpm xt
13
USE_XORG=	ice sm x11 xaw xext xmu xpm xt
14
USE_IMAKE=	yes
21
15
22
MAN1=	xtexcad.1
16
MAN1=		xtexcad.1
17
PLIST_FILES=	bin/xtexcad lib/X11/app-defaults/XTeXcad
23
18
24
.include <bsd.port.mk>
19
.include <bsd.port.mk>
(-)graphics/xtexcad/files/patch-FileNom.c (+30 lines)
Line 0 Link Here
1
--- FileNom.c.orig
2
+++ FileNom.c
3
@@ -377,6 +377,13 @@ ClassInitialize()
4
     CLASS(selectTranslations) = XtParseTranslationTable(selectTranslations);
5
 }
6
 
7
+#if defined(SYSV) || defined(__linux__) || defined(__FreeBSD__)
8
+    extern char *getcwd();
9
+#define getwd(buf) getcwd(buf,MAXPATHLEN)
10
+#else
11
+    extern char *getwd();
12
+#endif
13
+
14
 /* ARGSUSED */
15
 static void
16
 Initialize(req, new, args, num_args)
17
@@ -391,13 +398,6 @@ Initialize(req, new, args, num_args)
18
     String dir, menuList, p, q;
19
     Dimension width, height;
20
 
21
-#ifdef SYSV
22
-    extern char *getcwd();
23
-#define getwd(buf) getcwd(buf,MAXPATHLEN)
24
-#else
25
-    extern char *getwd();
26
-#endif
27
-
28
     List(new) = NULL;
29
     Nomination(new).directoryPart = NULL;
30
     Nomination(new).filenamePart = NULL;
(-)graphics/xtexcad/files/patch-match.c (+11 lines)
Line 0 Link Here
1
--- match.c.orig
2
+++ match.c
3
@@ -34,6 +34,8 @@
4
  *    "awf" copyright notice.]
5
  */
6
 
7
+#include <string.h>
8
+
9
 /* match.c: pattern matching routines */
10
 
11
 
(-)graphics/xtexcad/files/patch-oberfl.c (+11 lines)
Line 0 Link Here
1
--- oberfl.c.orig
2
+++ oberfl.c
3
@@ -161,7 +161,7 @@
4
 static void SetTitle(void);
5
 static void SetNewZoom(void);
6
 
7
-void main(int argc, char *argv[])
8
+int main(int argc, char *argv[])
9
 {
10
 	Widget topForm;
11
 	Pixel background;
(-)graphics/xtexcad/files/patch-yyscan.l (+21 lines)
Line 0 Link Here
1
--- yyscan.l.orig
2
+++ yyscan.l
3
@@ -35,8 +35,6 @@
4
 #include "objects.h"
5
 #include "yyscan.h"
6
 
7
-#define yywrap() 1
8
-
9
 float yyfloatval;		/* value of a TOK_FLOAT */
10
 char yystrval[MAX_TEXT_LEN+1];	/* text of a text argument or align argument */
11
 Unit yyunit;			/* value of a TOK_UNIT */
12
@@ -66,6 +64,9 @@
13
 
14
 %}
15
 
16
+%option nounput
17
+%option noyywrap
18
+%option noyymore
19
 
20
 %s  inPictEnv  inPut  lookOut
21
 
(-)graphics/xtexcad/pkg-plist (-2 lines)
Lines 1-2 Link Here
1
bin/xtexcad
2
lib/X11/app-defaults/XTeXcad

Return to bug 179584