From owner-ports-jp@jp.freebsd.org  Thu Oct 22 23:17:37 1998
Received: (from daemon@localhost)
	by jaz.jp.freebsd.org (8.9.1+3.1W/8.7.3) id XAA01622;
	Thu, 22 Oct 1998 23:17:37 +0900 (JST)
	(envelope-from owner-ports-jp@jp.FreeBSD.org)
Received: from diana.infonets.hiroshima-u.ac.jp (diana.infonets.hiroshima-u.ac.jp [133.41.33.53])
	by jaz.jp.freebsd.org (8.9.1+3.1W/8.7.3) with ESMTP id XAA01615
	for <ports-jp@jp.freebsd.org>; Thu, 22 Oct 1998 23:17:32 +0900 (JST)
	(envelope-from taoka@infonets.hiroshima-u.ac.jp)
Received: from cal.infonets.hiroshima-u.ac.jp (cal.infonets.hiroshima-u.ac.jp [133.41.33.61])
	by diana.infonets.hiroshima-u.ac.jp (8.8.8/3.6W) with ESMTP id XAA04935
	for <ports-jp@jp.freebsd.org>; Thu, 22 Oct 1998 23:17:31 +0900 (JST)
Received: from localhost (localhost.infonets.hiroshima-u.ac.jp [127.0.0.1]) by cal.infonets.hiroshima-u.ac.jp (8.8.8/3.6W) with ESMTP
	id XAA20887 for <ports-jp@jp.freebsd.org>; Thu, 22 Oct 1998 23:17:31 +0900 (JST)
To: ports-jp@jp.freebsd.org
From: TAOKA Satoshi <taoka@infonets.hiroshima-u.ac.jp>
In-Reply-To: Your message of "Thu, 22 Oct 1998 21:41:59 +0900"
	<19981022214159X.taoka@infonets.hiroshima-u.ac.jp>
References: <19981022214159X.taoka@infonets.hiroshima-u.ac.jp>
X-Mailer: Mew version 1.93 on XEmacs 20.4 (Emerald)
X-URL: http://www.infonets.hiroshima-u.ac.jp/~taoka/
Mime-Version: 1.0
Content-Type: Multipart/Mixed;
	boundary="--Next_Part(Thu_Oct_22_23:17:25_1998_809)--"
Content-Transfer-Encoding: 7bit
Message-Id: <19981022231730P.taoka@infonets.hiroshima-u.ac.jp>
Date: Thu, 22 Oct 1998 23:17:30 +0900
X-Dispatcher: imput version 980905(IM100)
Lines: 232
Reply-To: ports-jp@jp.freebsd.org
Precedence: bulk
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+980914
X-Sequence: ports-jp 4890
Subject: [ports-jp 4890] Re: BROKEN_ELF vfghostscript, ....
Errors-To: owner-ports-jp@jp.freebsd.org
Sender: owner-ports-jp@jp.freebsd.org

----Next_Part(Thu_Oct_22_23:17:25_1998_809)--
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit


> 
> $B$N0c$$$N$h$&$G$9!#$G$O!"%Q%C%A:n$j$^$9!#(B

$B;n$7$F$/$@$5$$!#;0ED$5$s$N0U;W$KH?$7$F$$$k$+$bCN$l$^$;$s$,!"K\2H(Bgs$B$K$J$k(B
$B$Y$/6a$E$1$^$7$?!#(B

$BNc$($P!"(Bjpge, png$B$NE83+J}K!$J$I$G$9!#$"$H!"$3$NJQ99$G(B
jpeg-6a$B"*(Bjpeg-6b$B!"(Blipng-0.96$B"*(Blibpng-1.0.2$B$H$J$j$^$9!#(B

 $BED2,(B $BCR;V(B    $B9-EgBg3X9)3XItBhFsN`2sO)%7%9%F%`9)3X(B
             taoka@infonets.hiroshima-u.ac.jp

----Next_Part(Thu_Oct_22_23:17:25_1998_809)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Description: patch for vfghostscript5
Content-Disposition: attachment; filename=patch.gs

diff -ru /usr/ports.current/japanese/vfghostscript5/Makefile japanese/vfghostscript5/Makefile
--- /usr/ports.current/japanese/vfghostscript5/Makefile	Sat Oct 17 08:32:03 1998
+++ japanese/vfghostscript5/Makefile	Thu Oct 22 23:15:42 1998
@@ -27,11 +27,12 @@
 
 MAINTAINER=	mita@jp.FreeBSD.org
 
-BROKEN_ELF=	yes
 
 LIB_DEPENDS=	VFlib2.23:${PORTSDIR}/japanese/vflib
+BUILD_DEPENDS=	/nonexistent:${PORTSDIR}/graphics/jpeg:extract \
+		/nonexistent:${PORTSDIR}/graphics/png:extract
 
-EXTRACT_ONLY=	ghostscript-5.10.tar.gz jpegsrc.v6a.tar.gz libpng-0.96.tgz
+EXTRACT_ONLY=	ghostscript-5.10.tar.gz
 WRKSRC=		${WRKDIR}/gs5.10
 MAKEFILE=	unix-gcc.mak
 MAKE_FLAGS=	prefix=${PREFIX} zlibc_=-lz CFLAGS="${CFLAGS}" -f
@@ -42,8 +43,6 @@
 DOC_DIR=	${GSINST_DIR}/doc
 PRINTER=	${WRKSRC}/jp-printers
 GS_SOURCES=	ghostscript-5.10.tar.gz
-GS_SOURCES+=	jpegsrc.v6a.tar.gz
-GS_SOURCES+=	libpng-0.96.tgz
 GS_DRIVERS=	gs5.10-vflib-1.2.tar.gz
 GS_DRIVERS+=	gs5.10-jpdf-0.2.tar.gz
 GS_DRIVERS+=	gs5.10-VFlibBM-PL2.diff.gz
@@ -66,6 +65,11 @@
 	@${ECHO_MSG} "NOTE: You can have encrypted PDF support by adding "
 	@${ECHO_MSG} "\"PDFENCRYPT=yes\" to argument of make."
 .endif
+
+post-extract:
+	ln -s ${PORTSDIR}/graphics/jpeg/work/jpeg-6b ${WRKSRC}/jpeg-6b
+	ln -s ${PORTSDIR}/graphics/png/work/libpng-1.0.2 ${WRKSRC}/libpng
+
 
 pre-patch:
 	@(cd ${WRKSRC} ; tar xzf ${DISTDIR}/gs5.10-vflib-1.2.tar.gz )
diff -ru /usr/ports.current/japanese/vfghostscript5/files/md5 japanese/vfghostscript5/files/md5
--- /usr/ports.current/japanese/vfghostscript5/files/md5	Sun Aug  2 03:07:17 1998
+++ japanese/vfghostscript5/files/md5	Thu Oct 22 23:10:04 1998
@@ -1,6 +1,4 @@
 MD5 (ghostscript-5.10.tar.gz) = 47fbc4f6402c98374c61bf3e64e59e9a
-MD5 (jpegsrc.v6a.tar.gz) = 5360e0aa47b415daa44623196f7e6160
-MD5 (libpng-0.96.tgz) = 285eac49f334e8c82a7dad41c2850115
 MD5 (gs5.10-vflib-1.2.tar.gz) = 98a36048a0e1b79ed21dc03e43d8fb5e
 MD5 (gs5.10-jpdf-0.2.tar.gz) = 36f6d346014dba3cede7fbd3bdb723a8
 MD5 (gs5.10-VFlibBM-PL2.diff.gz) = c933555772177092fe3e96bf3f28dad9
diff -ru /usr/ports.current/japanese/vfghostscript5/patches/patch-aa japanese/vfghostscript5/patches/patch-aa
--- /usr/ports.current/japanese/vfghostscript5/patches/patch-aa	Sun Aug  2 03:07:17 1998
+++ japanese/vfghostscript5/patches/patch-aa	Thu Oct 22 22:05:08 1998
@@ -1,5 +1,56 @@
-*** unix-gcc.mak.orig	Wed Jul 15 21:55:59 1998
---- unix-gcc.mak	Wed Jul 15 21:57:23 1998
+*** unix-gcc.mak.orig	Thu Oct 22 22:02:05 1998
+--- unix-gcc.mak	Thu Oct 22 22:04:00 1998
+***************
+*** 133,139 ****
+  # You may need to change this if the IJG library version changes.
+  # See jpeg.mak for more information.
+  
+! JSRCDIR=jpeg-6a
+  JVERSION=6
+  
+  # Define the directory where the PNG library sources are stored,
+--- 133,139 ----
+  # You may need to change this if the IJG library version changes.
+  # See jpeg.mak for more information.
+  
+! JSRCDIR=jpeg-6b
+  JVERSION=6
+  
+  # Define the directory where the PNG library sources are stored,
+***************
+*** 154,160 ****
+  # Define the directory where the zlib sources are stored.
+  # See zlib.mak for more information.
+  
+! ZSRCDIR=zlib
+  
+  # Choose whether to use a shared version of the zlib library, and if so,
+  # what its name is (usually libz, but sometimes libgz).
+--- 154,160 ----
+  # Define the directory where the zlib sources are stored.
+  # See zlib.mak for more information.
+  
+! ZSRCDIR=.
+  
+  # Choose whether to use a shared version of the zlib library, and if so,
+  # what its name is (usually libz, but sometimes libgz).
+***************
+*** 179,185 ****
+  
+  # Define the name of the C compiler.
+  
+! CC=gcc
+  
+  # Define the name of the linker for the final link step.
+  # Normally this is the same as the C compiler.
+--- 179,185 ----
+  
+  # Define the name of the C compiler.
+  
+! CC=cc
+  
+  # Define the name of the linker for the final link step.
+  # Normally this is the same as the C compiler.
 ***************
 *** 213,219 ****
   # XLDFLAGS can be set from the command line.
@@ -35,6 +86,42 @@
   # Define the include switch(es) for the X11 header files.
   # This can be null if handled in some other way (e.g., the files are
 ***************
+*** 231,237 ****
+  # Note that x_.h expects to find the header files in $(XINCLUDE)/X11,
+  # not in $(XINCLUDE).
+  
+! XINCLUDE=-I/usr/local/X/include
+  
+  # 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
+--- 231,237 ----
+  # Note that x_.h expects to find the header files in $(XINCLUDE)/X11,
+  # not in $(XINCLUDE).
+  
+! XINCLUDE=-I/usr/X11R6/include
+  
+  # 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
+***************
+*** 246,253 ****
+  #XLIBS=Xt SM ICE Xext X11
+  
+  #XLIBDIRS=-L/usr/local/X/lib
+! XLIBDIRS=-L/usr/X11/lib
+! XLIBDIR=
+  XLIBS=Xt Xext X11
+  
+  # Define whether this platform has floating point hardware:
+--- 246,253 ----
+  #XLIBS=Xt SM ICE Xext X11
+  
+  #XLIBDIRS=-L/usr/local/X/lib
+! XLIBDIRS=-L/usr/X11R6/lib
+! XLIBDIR=/usr/X11R6/lib
+  XLIBS=Xt Xext X11
+  
+  # Define whether this platform has floating point hardware:
+***************
 *** 3679,3686 ****
   libpng95.dev: $(LIBPNG_MAK) $(ECHOGS_XE) pngwio.$(OBJ) crc32.dev
   	$(SETMOD) libpng95 pngwio.$(OBJ) -include crc32
@@ -48,8 +135,8 @@
   libpng95.dev: $(LIBPNG_MAK) $(ECHOGS_XE) pngwio.$(OBJ) crc32.dev
   	$(SETMOD) libpng95 pngwio.$(OBJ) -include crc32
   
-! libpng96.dev: $(LIBPNG_MAK) $(ECHOGS_XE) pngwio.$(OBJ) # crc32.dev
-! 	$(SETMOD) libpng96 pngwio.$(OBJ) # -include crc32
+! libpng96.dev: $(LIBPNG_MAK) $(ECHOGS_XE) pngwio.$(OBJ)
+! 	$(SETMOD) libpng96 pngwio.$(OBJ)
   #    Copyright (C) 1995, 1996, 1997 Aladdin Enterprises.  All rights reserved.
   # 
   # This file is part of Aladdin Ghostscript.
@@ -87,7 +174,7 @@
   
   zlibd1_=infblock.$(OBJ) infcodes.$(OBJ) inffast.$(OBJ)
   zlibd2_=inflate.$(OBJ) inftrees.$(OBJ) infutil.$(OBJ)
-! zlibd_=
+! zlibd_ =
 ! zlibd_0.dev: $(ZLIB_MAK) $(ECHOGS_XE) zlibc.dev
 ! 	$(SETMOD) zlibd_0
 ! 	$(ADDMOD) zlibd_0
diff -ru /usr/ports.current/japanese/vfghostscript5/scripts/configure japanese/vfghostscript5/scripts/configure
--- /usr/ports.current/japanese/vfghostscript5/scripts/configure	Sat Jun  6 14:38:35 1998
+++ japanese/vfghostscript5/scripts/configure	Thu Oct 22 22:29:29 1998
@@ -6,13 +6,7 @@
 
 PRINTER_JAPAN=' epag.dev mjc180.dev mjc360.dev mjc720.dev mj500c.dev lips3.dev lips4.dev lips4c.dev rpdlA3.dev rpdlA4.dev rpdlB4.dev rpdlB5.dev bj10v.dev bj10vh.dev dmprt.dev npdl.dev'
 
-sed -e "s;XINCLUDE=-I/usr/local/X/include;XINCLUDE=-I/usr/X11R6/include;" \
-    -e "s;XLIBDIRS=-L/usr/X11/lib;XLIBDIRS=-L/usr/X11R6/lib;" \
-    -e "s;JSRCDIR=jpeg-6a;JSRCDIR=${WRKDIR}/jpeg-6a;" \
-    -e "s;PSRCDIR=libpng;PSRCDIR=${WRKDIR}/libpng-0.96;" \
-    -e "s;ZSRCDIR=zlib;ZSRCDIR=.;" \
-    -e "s;CC=gcc;CC=cc;" \
-    -e "s;DEVICE_DEVS15=pdfwrite.dev;DEVICE_DEVS15=pdfwrite.dev stcolor.dev st800.dev uniprint.dev ${PRINTER_JAPAN};" \
+sed -e "s;DEVICE_DEVS15=pdfwrite.dev;DEVICE_DEVS15=pdfwrite.dev stcolor.dev st800.dev uniprint.dev ${PRINTER_JAPAN};" \
     < ${WRKSRC}/unix-gcc.mak > ${WRKSRC}/unix-gcc.mak.bak && \
     mv ${WRKSRC}/unix-gcc.mak.bak ${WRKSRC}/unix-gcc.mak
 touch ${WRKSRC}/makefile
@@ -21,13 +15,7 @@
 
 # Define the directories for the X11 library files.
 # This can be null if these files are in the default linker search path.
-sed -e "s;XINCLUDE=-I/usr/local/X/include;XINCLUDE=-I/usr/X11R6/include;" \
-    -e "s;XLIBDIRS=-L/usr/X11/lib;XLIBDIRS=-L/usr/X11R6/lib;" \
-    -e "s;JSRCDIR=jpeg-6a;JSRCDIR=${WRKDIR}/jpeg-6a;" \
-    -e "s;PSRCDIR=libpng;PSRCDIR=${WRKDIR}/libpng-0.96;" \
-    -e "s;ZSRCDIR=zlib;ZSRCDIR=.;" \
-    -e "s;CC=gcc;CC=cc;" \
-    -e "s;^DEVICE_DEVS=.*;;" \
+sed -e "s;^DEVICE_DEVS=.*;;" \
     -e "s;^DEVICE_DEVS1=.*;DEVICE_DEVS1=;" \
     -e "s;^DEVICE_DEVS2=.*;DEVICE_DEVS2=;" \
     -e "s;^DEVICE_DEVS3=.*;DEVICE_DEVS3=;" \

----Next_Part(Thu_Oct_22_23:17:25_1998_809)----
