ports/76627: textproc/dictfmt: fix compilation on sparc64
Johan van Selst
johans at stack.nl
Mon Jan 24 19:30:26 UTC 2005
>Number: 76627
>Category: ports
>Synopsis: textproc/dictfmt: fix compilation on sparc64
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Mon Jan 24 19:30:25 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Johan van Selst
>Release: FreeBSD 6.0-CURRENT i386
>Organization:
>Environment:
System:
FreeBSD weber.stack.nl 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov 5 19:30:40 UTC 2004 root at bobbi.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC sparc64
>Description:
Make sure that FreeBSD isn't treated as "old braindamaged SunOS"
>How-To-Repeat:
>Fix:
diff -uNr dictfmt/Makefile dictfmt/Makefile
--- dictfmt/Makefile Fri Dec 31 01:32:00 2004
+++ dictfmt/Makefile Mon Jan 24 18:47:56 2005
@@ -7,6 +7,7 @@
PORTNAME= dictfmt
PORTVERSION= 1.9.15
+PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= dict
@@ -32,10 +33,4 @@
CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} == "sparc64"
-BROKEN= "Does not compile on sparc64"
-.endif
-
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -uNr dictfmt/files/patch-decl.h dictfmt/files/patch-decl.h
--- dictfmt/files/patch-decl.h Thu Jan 1 00:00:00 1970
+++ dictfmt/files/patch-decl.h Mon Jan 24 18:45:18 2005
@@ -0,0 +1,11 @@
+--- decl.h Mon Jan 24 18:44:03 2005
++++ decl.h Mon Jan 24 18:32:44 2005
+@@ -28,7 +28,7 @@
+ declarations for standard library calls. We provide them here for
+ situations that we know about. */
+
+-#if defined(__sparc__) && !defined(__linux__)
++#if defined(__sparc__) && !defined(__linux__) && !defined(__FreeBSD__)
+ /* Both SunOS and Solaris */
+ extern int getrusage( int who, struct rusage * );
+ extern void bcopy( const void *, void *, int );
diff -uNr dictfmt/files/patch-libmaa::decl.h dictfmt/files/patch-libmaa::decl.h
--- dictfmt/files/patch-libmaa::decl.h Thu Jan 1 00:00:00 1970
+++ dictfmt/files/patch-libmaa::decl.h Mon Jan 24 18:45:18 2005
@@ -0,0 +1,11 @@
+--- libmaa/decl.h Mon Jan 24 18:39:34 2005
++++ libmaa/decl.h Mon Jan 24 18:38:24 2005
+@@ -28,7 +28,7 @@
+ declarations for standard library calls. We provide them here for
+ situations that we know about. */
+
+-#if defined(__sparc__) && !defined(linux)
++#if defined(__sparc__) && !defined(linux) && !defined(__FreeBSD__)
+ #include <sys/resource.h>
+ /* Both SunOS and Solaris */
+ extern int getrusage( int who, struct rusage * );
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list