Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Oct 2001 13:06:18 -0700 (PDT)
From:      KATO Tsuguru <tkato@prontomail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/31077: Update port: print/ghostscript-afpl
Message-ID:  <200110052006.f95K6IY62445@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         31077
>Category:       ports
>Synopsis:       Update port: print/ghostscript-afpl
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 05 13:10:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        4.4-RELEASE i386
>Organization:
>Environment:
>Description:
- Use <machine/endian.h> for checking byte order
- Utilize DATADIR/DOCSDIR

New file:
files/patch-hpijs:platform.h



>How-To-Repeat:

>Fix:
diff -urN /usr/ports/print/ghostscript-afpl/Makefile print/ghostscript-afpl/Makefile
--- /usr/ports/print/ghostscript-afpl/Makefile	Thu Oct  4 19:06:12 2001
+++ print/ghostscript-afpl/Makefile	Thu Oct  4 19:11:51 2001
@@ -51,14 +51,14 @@
 		ps2ps.1 eps2eps.1
 
 .if defined(A4)
-MAKE_ENV+=	A4=${A4}
+MAKE_ENV+=	A4="${A4}"
 .endif
 
 .if !defined(WITHOUT_X11)
 USE_XLIB=	yes
 .else
 PKGNAMESUFFIX:=	${PKGNAMESUFFIX}-nox11
-MAKE_ENV+=	WITHOUT_X11=${WITHOUT_X11}
+MAKE_ENV+=	WITHOUT_X11="${WITHOUT_X11}"
 .endif
 
 GS_SOURCES=	${DISTNAME}${EXTRACT_SUFX}
@@ -121,12 +121,6 @@
 # replacement for pdf_sec.ps, that allows you to read encrypted PDF files
 DECRYPT_PDF=	pdf_sec.ps
 
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} == "i386"
-CFLAGS+=	-D_LITTLE_ENDIAN
-.endif
-
 .SILENT:
 
 pre-everything::
@@ -239,10 +233,10 @@
 pre-install:
 	${ECHO_MSG} ">>> in pre-install ..."
 	${ECHO_MSG} ">>>   creating ghostscript destdir ..."
-	${MKDIR} ${PREFIX}/share/ghostscript
+	${MKDIR} ${DATADIR}
 	${ECHO_MSG} ">>>   extracting ghostscript fonts..."
-	${TAR} -C ${PREFIX}/share/ghostscript -xzf ${_DISTDIR}/${GS_FONTS_STD}
-	${TAR} -C ${PREFIX}/share/ghostscript -xzf ${_DISTDIR}/${GS_FONTS_OTHER}
+	${TAR} -C ${DATADIR} -xzf ${_DISTDIR}/${GS_FONTS_STD}
+	${TAR} -C ${DATADIR} -xzf ${_DISTDIR}/${GS_FONTS_OTHER}
 
 post-install:
 	${ECHO_MSG} ">>> in post-install ..."
@@ -254,12 +248,12 @@
 	${INSTALL_MAN} ${WRKSRC}/src/${i} ${PREFIX}/man/man1
 .endfor
 	${ECHO_MSG} ">>>   creating ${HPDJ} destdir ..."
-	${MKDIR} ${PREFIX}/share/ghostscript/${PORTVERSION}/hpdj
+	${MKDIR} ${DATADIR}/${PORTVERSION}/hpdj
 	${ECHO_MSG} ">>>   installing files in ${HPDJ} destdir ..."
 .for i in README.hpdj example.mdf margins-A4.ps margins-A4Rotated.ps \
 	margins-Letter.ps margins-LetterRotated.ps
 	${INSTALL_DATA} ${WRKSRC}/src/${i} \
-		${PREFIX}/share/ghostscript/${PORTVERSION}/hpdj
+		${DATADIR}/${PORTVERSION}/hpdj
 .endfor
 # for PCL3 driver
 	${ECHO_MSG} ">>> installing ${PCL3} manpages ..."
@@ -268,7 +262,7 @@
 .endfor
 # other pcl3 stuff, which might be interesting for runtime
 	${ECHO_MSG} ">>>   creating ${PCL3} destdir ..."
-	${MKDIR} ${PREFIX}/share/ghostscript/${PORTVERSION}/pcl3
+	${MKDIR} ${DATADIR}/${PORTVERSION}/pcl3
 	${ECHO_MSG} ">>>   installing files in ${PCL3} destdir ..."
 .for i in NEWS BUGS README lib/example.mcf lib/if-pcl3 ps/calign.ps \
 	ps/dumppdd.ps ps/levels-test.ps ps/margins-A4.ps \
@@ -276,7 +270,7 @@
 	ps/margins-EnvDLRotated.ps ps/margins-Letter.ps \
 	ps/margins-LetterRotated.ps
 	${INSTALL_DATA} ${WRKSRC}/${PCL3_NAME}/${i} \
-		${PREFIX}/share/ghostscript/${PORTVERSION}/pcl3
+		${DATADIR}/${PORTVERSION}/pcl3
 .endfor
 # for gimp-print driver
 	${ECHO_MSG} ">>>   installing ${GPRINT_DESC} escputil in bindir ..."
@@ -287,32 +281,32 @@
 		${PREFIX}/man/man1
 .endfor
 	${ECHO_MSG} ">>>   creating ${GPRINT_DESC} destdir ..."
-	${MKDIR} ${PREFIX}/share/ghostscript/${PORTVERSION}/gimp-print
+	${MKDIR} ${DATADIR}/${PORTVERSION}/gimp-print
 	${ECHO_MSG} ">>>   installing files in gimp-print destdir ..."
 .for i in README
 	${INSTALL_DATA} ${WRKSRC}/${GPRINT_NAME}/Ghost/${i} \
-		${PREFIX}/share/ghostscript/${PORTVERSION}/gimp-print
+		${DATADIR}/${PORTVERSION}/gimp-print
 .endfor
 # for HPinkjet driver
 	${ECHO_MSG} ">>>   installing ${HPIJS} server in libexecdir ..."
 	${INSTALL_PROGRAM} ${WRKSRC}/${HPIJS_NAME}/hpijs ${PREFIX}/libexec
 	${ECHO_MSG} ">>>   creating ${HPIJS} destdir ..."
-	${MKDIR} ${PREFIX}/share/ghostscript/${PORTVERSION}/hpijs
+	${MKDIR} ${DATADIR}/${PORTVERSION}/hpijs
 	${ECHO_MSG} ">>>   installing files in ${HPIJS} destdir ..."
 .for i in hpijs_readme.html
 	${INSTALL_DATA} ${WRKSRC}/${HPIJS}/${i} \
-		${PREFIX}/share/ghostscript/${PORTVERSION}/hpijs
+		${DATADIR}/${PORTVERSION}/hpijs
 .endfor
 # contributed UPP driver
 	${ECHO_MSG} ">>> installing contributed UPP profiles ..."
 .for i in ${CONTRIB_UPP}
 	${INSTALL_DATA} ${FILESDIR}/${i} \
-		${PREFIX}/share/ghostscript/${PORTVERSION}/lib
+		${DATADIR}/${PORTVERSION}/lib
 .endfor
 # for reading encrypted PDFs
 	${ECHO_MSG} ">>> installing support for encrypted PDF files ..."
 	${INSTALL_DATA} ${_DISTDIR}/${DECRYPT_PDF} \
-		${PREFIX}/share/ghostscript/${PORTVERSION}/lib
+		${DATADIR}/${PORTVERSION}/lib
 #
 # now NOPORTDOCS dependend stuff
 #
@@ -321,22 +315,22 @@
 # install hpdj docu, not necessary for runtime
 # note: old hpdj driver has its files in ${WRKSRC}/src
 	${ECHO_MSG} ">>>   creating ${HPDJ} docu destdir ..."
-	${MKDIR} ${PREFIX}/share/doc/ghostscript/${PORTVERSION}/hpdj
+	${MKDIR} ${DOCSDIR}/${PORTVERSION}/hpdj
 	${ECHO_MSG} ">>>   installing files in ${HPDJ} docu destdir ..."
 .for i in NEWS hpdj.html
 	${INSTALL_DATA} ${WRKSRC}/src/${i} \
-		${PREFIX}/share/doc/ghostscript/${PORTVERSION}/hpdj
+		${DOCSDIR}/${PORTVERSION}/hpdj
 .endfor
 # install pcl3 docu, not necessary for runtime
 # note: new pcl3 driver has a subdir of its own
 	${ECHO_MSG} ">>>   creating ${PCL3} docu destdir ..."
-	${MKDIR} ${PREFIX}/share/doc/ghostscript/${PORTVERSION}/pcl3
+	${MKDIR} ${DOCSDIR}/${PORTVERSION}/pcl3
 	${ECHO_MSG} ">>>   installing files in ${PCL3} docu destdir ..."
 .for i in NEWS doc/gs-pcl3.html doc/how-to-report.txt doc/pcl3opts.html
 	${INSTALL_DATA} ${WRKSRC}/${PCL3_NAME}/${i} \
-		${PREFIX}/share/doc/ghostscript/${PORTVERSION}/pcl3
+		${DOCSDIR}/${PORTVERSION}/pcl3
 .endfor
 .endif
 	${ECHO_MSG} "> post-installation tasks completed."
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -urN /usr/ports/print/ghostscript-afpl/files/patch-hpijs:platform.h print/ghostscript-afpl/files/patch-hpijs:platform.h
--- /usr/ports/print/ghostscript-afpl/files/patch-hpijs:platform.h	Thu Jan  1 09:00:00 1970
+++ print/ghostscript-afpl/files/patch-hpijs:platform.h	Wed Oct  3 04:33:46 2001
@@ -0,0 +1,13 @@
+--- hpijs/platform.h.orig	Wed Oct  3 03:56:37 2001
++++ hpijs/platform.h	Wed Oct  3 04:20:33 2001
+@@ -13,3 +13,10 @@
+ #include <string.h>
+ #include <stdio.h>
+ #include <math.h>
++
++#ifdef __FreeBSD__
++#include <machine/endian.h>
++#if BYTE_ORDER == LITTLE_ENDIAN
++#define _LITTLE_ENDIAN
++#endif
++#endif

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200110052006.f95K6IY62445>