From nobody@FreeBSD.org  Wed Sep 12 09:00:47 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 455BB37B40B
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 12 Sep 2001 09:00:47 -0700 (PDT)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.4/8.11.4) id f8CG0lx47375;
	Wed, 12 Sep 2001 09:00:47 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200109121600.f8CG0lx47375@freefall.freebsd.org>
Date: Wed, 12 Sep 2001 09:00:47 -0700 (PDT)
From: KATO Tsuguru <tkato@prontomail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Update port: print/ghostscript-afpl
X-Send-Pr-Version: www-1.0

>Number:         30523
>Category:       ports
>Synopsis:       Update port: print/ghostscript-afpl
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    knu
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 12 09:10:00 PDT 2001
>Closed-Date:    Thu Sep 13 02:07:49 JST 2001
>Last-Modified:  Thu Sep 13 02:08:04 JST 2001
>Originator:     KATO Tsuguru
>Release:        4.3-RELEASE i386
>Organization:
>Environment:
>Description:
- Fix compilation error when A4 is defined

>How-To-Repeat:

>Fix:
diff -urN /usr/ports/print/ghostscript-afpl/Makefile print/ghostscript-afpl/Makefile
--- /usr/ports/print/ghostscript-afpl/Makefile	Wed Sep 12 05:22:01 2001
+++ print/ghostscript-afpl/Makefile	Wed Sep 12 22:36:33 2001
@@ -50,7 +50,7 @@
 		ps2ps.1 eps2eps.1
 
 .if defined(A4)
-CFLAGS+=	-DA4
+MAKE_ENV+=	A4=${A4}
 .endif
 
 .if !defined(WITHOUT_X11)
diff -urN /usr/ports/print/ghostscript-afpl/files/patch-src:unix-gcc.mak print/ghostscript-afpl/files/patch-src:unix-gcc.mak
--- /usr/ports/print/ghostscript-afpl/files/patch-src:unix-gcc.mak	Wed Sep 12 04:24:31 2001
+++ print/ghostscript-afpl/files/patch-src:unix-gcc.mak	Wed Sep 12 22:56:13 2001
@@ -1,5 +1,5 @@
 --- src/unix-gcc.mak.orig	Mon Apr  9 14:52:57 2001
-+++ src/unix-gcc.mak	Fri Jun 15 21:47:42 2001
++++ src/unix-gcc.mak	Wed Sep 12 22:54:27 2001
 @@ -26,14 +26,15 @@
  # source, generated intermediate file, and object directories
  # for the graphics library (GL) and the PostScript/PDF interpreter (PS).
@@ -83,16 +83,21 @@
  
  # Define the name of the linker for the final link step.
  # Normally this is the same as the C compiler.
-@@ -222,7 +222,7 @@
+@@ -220,9 +220,11 @@
+ # We don't include -ansi, because this gets in the way of the platform-
+ #   specific stuff that <math.h> typically needs; nevertheless, we expect
  #   gcc to accept ANSI-style function prototypes and function definitions.
- XCFLAGS=
+-XCFLAGS=
++ifdef A4
++XCFLAGS=-DA4
++endif
  
 -CFLAGS=$(CFLAGS_STANDARD) $(GCFLAGS) $(XCFLAGS)
-+#CFLAGS=$(CFLAGS_STANDARD) $(GCFLAGS) $(XCFLAGS)
++CFLAGS+=$(XCFLAGS)
  
  # Define platform flags for ld.
  # SunOS 4.n may need -Bstatic.
-@@ -231,7 +231,7 @@
+@@ -231,7 +233,7 @@
  #	-R /usr/local/xxx/lib:/usr/local/lib
  # giving the full path names of the shared library directories.
  # XLDFLAGS can be set from the command line.
@@ -101,7 +106,7 @@
  
  LDFLAGS=$(XLDFLAGS) -fno-common
  
-@@ -264,7 +264,7 @@
+@@ -264,7 +266,7 @@
  # Note that x_.h expects to find the header files in $(XINCLUDE)/X11,
  # not in $(XINCLUDE).
  
@@ -110,7 +115,7 @@
  
  # Define the directory/ies and library names for the X11 library files.
  # XLIBDIRS is for ld and should include -L; XLIBDIR is for LD_RUN_PATH
-@@ -277,11 +277,16 @@
+@@ -277,11 +279,16 @@
  #XLIBDIRS=-L/usr/openwin/lib -R/usr/openwin/lib
  # X11R6 (on any platform) may need
  #XLIBS=Xt SM ICE Xext X11
@@ -128,3 +133,4 @@
 +#XLIBS=Xt Xext X11
  
  # Define whether this platform has floating point hardware:
+ #	FPU_TYPE=2 means floating point is faster than fixed point.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->knu 
Responsible-Changed-By: knu 
Responsible-Changed-When: Thu Sep 13 01:38:08 JST 2001 
Responsible-Changed-Why:  
I'll take care of this. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=30523 
State-Changed-From-To: open->closed 
State-Changed-By: knu 
State-Changed-When: Thu Sep 13 02:07:49 JST 2001 
State-Changed-Why:  
Commited, thanks! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=30523 
>Unformatted:
