Fix building on DragonflyBSD and FreeBSD; courtesy of Steve O'Hara-Smith

This commit is contained in:
adam 2005-09-07 14:10:56 +00:00
parent a5f075525c
commit b15fa5bf78
3 changed files with 24 additions and 18 deletions

View file

@ -1,16 +1,15 @@
# $NetBSD: Makefile,v 1.27 2005/05/22 20:08:29 jlam Exp $
#
# $NetBSD: Makefile,v 1.28 2005/09/07 14:10:56 adam Exp $
DISTNAME= transfig.3.2.4
PKGNAME= transfig-3.2.4
PKGREVISION= 2
CATEGORIES= graphics print
MASTER_SITES= ftp://epb.lbl.gov/xfig/
DISTNAME= transfig.3.2.4
PKGNAME= transfig-3.2.4
PKGREVISION= 2
CATEGORIES= graphics print
MASTER_SITES= ftp://epb.lbl.gov/xfig/
MAINTAINER= root@garbled.net
COMMENT= TeX document creation tool utilizing portable graphics
MAINTAINER= root@garbled.net
COMMENT= TeX document creation tool utilizing portable graphics
USE_IMAKE= YES
USE_IMAKE= yes
.include "../../mk/bsd.prefs.mk"
@ -26,5 +25,4 @@ USE_TOOLS+= gmake
.include "../../graphics/png/buildlink3.mk"
.include "../../graphics/xpm/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.10 2005/02/24 12:51:45 agc Exp $
$NetBSD: distinfo,v 1.11 2005/09/07 14:10:56 adam Exp $
SHA1 (transfig.3.2.4.tar.gz) = edfec1865dbfe9e7a06ae8be016f1a489b3d307d
RMD160 (transfig.3.2.4.tar.gz) = 7b1238f3d36c6dc30033dca43348e3c7d3116610
@ -7,4 +7,4 @@ SHA1 (patch-aa) = efc4eb298f4c5871432569c041226127ee0527c1
SHA1 (patch-ab) = f1193557969ca7f6cc9d507710348d38dbfb7bf6
SHA1 (patch-ac) = ac0823470d4de6df7bd5e3ff0f87decf8b4c44b8
SHA1 (patch-ad) = b3a0d55eca4defbec4276f9aa4ce8f1352c3f1fb
SHA1 (patch-ae) = 55f6db3bd8fa02a47d759ff77fa2b6de1f554149
SHA1 (patch-ae) = 6afb961c66ce594ac9044fb74364998219669d3f

View file

@ -1,7 +1,7 @@
$NetBSD: patch-ae,v 1.2 2004/05/20 21:04:17 wiz Exp $
$NetBSD: patch-ae,v 1.3 2005/09/07 14:10:57 adam Exp $
--- fig2dev/fig2dev.h.orig Wed Dec 18 22:45:28 2002
+++ fig2dev/fig2dev.h
--- fig2dev/fig2dev.h.orig 2002-12-18 22:45:28.000000000 +0000
+++ fig2dev/fig2dev.h 2005-09-02 14:20:02.000000000 +0100
@@ -22,7 +22,6 @@
#include <sys/file.h>
#include <signal.h>
@ -10,12 +10,20 @@ $NetBSD: patch-ae,v 1.2 2004/05/20 21:04:17 wiz Exp $
#include <pwd.h>
#include <errno.h>
#include <time.h>
@@ -210,7 +209,7 @@ struct Cmap {
@@ -210,13 +209,14 @@
#endif /* MAXPATHLEN */
#endif /* PATH_MAX */
-#if ( !defined(__NetBSD__) && !defined(__DARWIN__))
+#if ( !defined(__NetBSD__) && !defined(__DARWIN__) && !defined(__FreeBSD__))
+#if ( !defined(__NetBSD__) && !defined(__DARWIN__) && !defined(__FreeBSD__) &&!defined(__DragonFly__))
extern int sys_nerr, errno;
#endif
#if ( !(defined(BSD) && (BSD >= 199306)) && !defined(__NetBSD__) && \
!defined(__GNU_LIBRARY__) && !defined(__FreeBSD__) && \
- !defined(__GLIBC__) && !defined(__CYGWIN__) && !defined(__DARWIN__))
+ !defined(__GLIBC__) && !defined(__CYGWIN__) && \
+ !defined(__DARWIN__) && !defined(__DragonFly__))
extern char *sys_errlist[];
#endif