Ticket #8322: gplghostscript.diff

File gplghostscript.diff, 5.8 KB (added by blb@…, 19 years ago)

The patch as described

  • gplghostscript

    diff -uNr gplghostscript.orig/Portfile gplghostscript/Portfile
    old new  
    22
    33PortSystem 1.0
    44name            gplghostscript
    5 version         8.15
    6 revision        1
     5version         8.50
    76homepage        http://www.cs.wisc.edu/~ghost/
    87description     GPL Ghostscript, An interpreter for PostScript and PDF
    98long_description        Ghostscript is the well-known PostScript interpreter \
     
    1817maintainers     yves@opendarwin.org
    1918
    2019master_sites    sourceforge:ghostscript:source \
    21                                 sourceforge:gs-fonts:fonts \
    22                 http://www.ijg.org/files/:jpeg
     20                                sourceforge:gs-fonts:fonts
    2321
    24 distname        ghostscript-${version}
    25 distfiles       ${distname}.tar.gz:source \
    26                         ghostscript-fonts-std-8.11.tar.gz:fonts \
    27                         jpegsrc.v6b.tar.gz:jpeg
    28 
    29 checksums       ${distname}.tar.gz \
    30                                 md5 742dfdb324cc2bb66b116a74577a99f6 \
    31                         ghostscript-fonts-std-8.11.tar.gz \
    32                                 md5 6865682b095f8c4500c54b285ff05ef6 \
    33                         jpegsrc.v6b.tar.gz \
    34                                 md5 dbd5f3b47ed13132f04c685d608a7547
     22distname        ghostscript-${version}-gpl
     23use_bzip2       yes
     24set gplgs_file  ${distname}${extract.suffix}
     25set gplgs_fonts ghostscript-fonts-std-8.11.tar.gz
     26distfiles       ${gplgs_file}:source ${gplgs_fonts}:fonts
     27extract.only    ${gplgs_file}
     28
     29checksums       ${gplgs_file} md5 02afa3b3c5f4c2a0e023cb908f489d55 \
     30                        ${gplgs_fonts} md5 6865682b095f8c4500c54b285ff05ef6
    3531
    3632depends_lib     port:gtk1 port:libpng port:zlib
    3733
    3834post-extract    {
    39                 cd ${workpath}
    40                 system "mv jpeg-6b ${distname}/jpeg"
    41                 cd ${worksrcpath}
    42                 system "ln -s src/unix-gcc.mak makefile"
     35        cd ${worksrcpath}
     36        system "ln -s src/unix-gcc.mak makefile"
     37        cd ${workpath}
     38        system "gunzip -c ${distpath}/${gplgs_fonts} | tar xf -"
    4339}
    4440
    4541patchfiles      patch-src-unix-dll.mak
     42post-patch {
     43        reinplace "s|@@FILESPATH@@|${filespath}|" ${worksrcpath}/src/unix-dll.mak
     44}
    4645
    4746use_configure   no
    4847
     
    5554                mandir=${prefix}/share/man
    5655
    5756destroot.target soinstall
    58 destroot.destdir        prefix=${destroot}/${prefix}
     57destroot.destdir        prefix=${destroot}${prefix}
    5958destroot.args   SHARE_LIBPNG=1 \
    6059                SHARE_ZLIB=1 \
    6160                XCFLAGS="-I${prefix}/include -no-cpp-precomp" \
    6261                XLDFLAGS="-L${prefix}/lib" \
    63                 mandir=${destroot}/${prefix}/share/man
     62                mandir=${destroot}${prefix}/share/man
    6463
    6564post-destroot   {
    66         file mkdir ${destroot}/${prefix}/share/ghostscript/ \
    67                 ${destroot}/${prefix}/include/ghostscript
    68         file copy ${workpath}/fonts ${destroot}/${prefix}/share/ghostscript
     65        file mkdir ${destroot}${prefix}/share/ghostscript/ \
     66                ${destroot}${prefix}/include/ghostscript
     67        file copy ${workpath}/fonts ${destroot}${prefix}/share/ghostscript
    6968        file copy ${worksrcpath}/src/iapi.h ${worksrcpath}/src/errors.h \
    7069                ${worksrcpath}/src/gdevdsp.h ${worksrcpath}/src/ierrors.h \
    71                 ${destroot}/${prefix}/include/ghostscript
    72         system "ln -s gsc ${destroot}/${prefix}/bin/gs"
     70                ${destroot}${prefix}/include/ghostscript
     71        system "ln -s gsc ${destroot}${prefix}/bin/gs"
    7372}
    7473
  • files/patch-src-unix-dll.mak

    diff -uNr gplghostscript.orig/files/patch-src-unix-dll.mak gplghostscript/files/patch-src-unix-dll.mak
    old new  
    2323 # ------------------------- Recursive make targets ------------------------- #
    2424 
    2525-SODEFS=LDFLAGS='$(LDFLAGS) $(CFLAGS_SO) -shared -Wl,-soname=$(GS_SONAME_MAJOR)'\
    26 +SODEFS=LDFLAGS='$(LDFLAGS) $(CFLAGS_SO) -dynamiclib -install_name $(prefix)/lib/$(GS_SONAME_MAJOR)'\
     26+SODEFS=LDFLAGS='$(LDFLAGS) $(CFLAGS_SO) -unexported_symbols_list @@FILESPATH@@/unexported_symbols_list -dynamiclib -install_name $(prefix)/lib/$(GS_SONAME_MAJOR)'\
    2727  GS_XE=$(BINDIR)/$(SOBINRELDIR)/$(GS_SONAME_MAJOR_MINOR)\
    2828  STDIO_IMPLEMENTATION=c\
    2929  DISPLAY_DEV=$(DD)$(SOOBJRELDIR)/display.dev\
  • files/unexported_symbols_list

    diff -uNr gplghostscript.orig/files/unexported_symbols_list gplghostscript/files/unexported_symbols_list
    old new  
     1_jcopy_block_row
     2_jcopy_sample_rows
     3_jdiv_round_up
     4_jinit_c_coef_controller
     5_jinit_c_main_controller
     6_jinit_c_master_control
     7_jinit_c_prep_controller
     8_jinit_color_converter
     9_jinit_color_deconverter
     10_jinit_compress_master
     11_jinit_d_coef_controller
     12_jinit_d_main_controller
     13_jinit_d_post_controller
     14_jinit_downsampler
     15_jinit_forward_dct
     16_jinit_huff_decoder
     17_jinit_huff_encoder
     18_jinit_input_controller
     19_jinit_inverse_dct
     20_jinit_marker_reader
     21_jinit_marker_writer
     22_jinit_master_decompress
     23_jinit_memory_mgr
     24_jinit_phuff_decoder
     25_jinit_upsampler
     26_jpeg_CreateCompress
     27_jpeg_CreateDecompress
     28_jpeg_abort
     29_jpeg_abort_compress
     30_jpeg_abort_decompress
     31_jpeg_add_quant_table
     32_jpeg_alloc_huff_table
     33_jpeg_alloc_quant_table
     34_jpeg_calc_output_dimensions
     35_jpeg_consume_input
     36_jpeg_default_colorspace
     37_jpeg_destroy
     38_jpeg_destroy_compress
     39_jpeg_destroy_decompress
     40_jpeg_fdct_islow
     41_jpeg_fill_bit_buffer
     42_jpeg_finish_compress
     43_jpeg_finish_decompress
     44_jpeg_finish_output
     45_jpeg_free_large
     46_jpeg_free_small
     47_jpeg_get_large
     48_jpeg_get_small
     49_jpeg_has_multiple_scans
     50_jpeg_huff_decode
     51_jpeg_idct_islow
     52_jpeg_input_complete
     53_jpeg_make_c_derived_tbl
     54_jpeg_make_d_derived_tbl
     55_jpeg_mem_available
     56_jpeg_mem_init
     57_jpeg_mem_term
     58_jpeg_natural_order
     59_jpeg_new_colormap
     60_jpeg_open_backing_store
     61_jpeg_quality_scaling
     62_jpeg_read_header
     63_jpeg_read_raw_data
     64_jpeg_read_scanlines
     65_jpeg_resync_to_restart
     66_jpeg_save_markers
     67_jpeg_set_colorspace
     68_jpeg_set_defaults
     69_jpeg_set_linear_quality
     70_jpeg_set_marker_processor
     71_jpeg_set_quality
     72_jpeg_start_compress
     73_jpeg_start_decompress
     74_jpeg_start_output
     75_jpeg_std_error
     76_jpeg_std_message_table
     77_jpeg_suppress_tables
     78_jpeg_write_m_byte
     79_jpeg_write_m_header
     80_jpeg_write_marker
     81_jpeg_write_raw_data
     82_jpeg_write_scanlines
     83_jpeg_write_tables
     84_jround_up
     85_jzero_far
     86