Date: Fri, 5 Oct 2001 13:07:00 -0700 (PDT) From: KATO Tsuguru <tkato@prontomail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/31078: Update port: print/ghostscript-gnu Message-ID: <200110052007.f95K70s62479@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 31078 >Category: ports >Synopsis: Update port: print/ghostscript-gnu >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-gnu/Makefile print/ghostscript-gnu/Makefile --- /usr/ports/print/ghostscript-gnu/Makefile Fri Sep 28 19:38:46 2001 +++ print/ghostscript-gnu/Makefile Thu Oct 4 19:12:47 2001 @@ -48,14 +48,14 @@ ps2pdf.1 ps2pdf13.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} @@ -118,12 +118,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:: @@ -212,7 +206,7 @@ do-configure: ${ECHO_MSG} ">>> in do-configure ..." -.if defined(BATCH) +.if defined(BATCH) || defined(PACKAGE_BUILDING) ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.batch .else ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure @@ -232,10 +226,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 ..." @@ -247,12 +241,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 ..." @@ -261,7 +255,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 \ @@ -269,7 +263,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 ..." @@ -280,32 +274,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 # @@ -314,22 +308,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-gnu/files/patch-hpijs:platform.h print/ghostscript-gnu/files/patch-hpijs:platform.h --- /usr/ports/print/ghostscript-gnu/files/patch-hpijs:platform.h Thu Jan 1 09:00:00 1970 +++ print/ghostscript-gnu/files/patch-hpijs:platform.h Wed Oct 3 06:32:09 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?200110052007.f95K70s62479>