diff -uNr gplghostscript.orig/Portfile gplghostscript/Portfile
old
|
new
|
|
2 | 2 | |
3 | 3 | PortSystem 1.0 |
4 | 4 | name gplghostscript |
5 | | version 8.15 |
6 | | revision 1 |
| 5 | version 8.50 |
7 | 6 | homepage http://www.cs.wisc.edu/~ghost/ |
8 | 7 | description GPL Ghostscript, An interpreter for PostScript and PDF |
9 | 8 | long_description Ghostscript is the well-known PostScript interpreter \ |
… |
… |
|
18 | 17 | maintainers yves@opendarwin.org |
19 | 18 | |
20 | 19 | master_sites sourceforge:ghostscript:source \ |
21 | | sourceforge:gs-fonts:fonts \ |
22 | | http://www.ijg.org/files/:jpeg |
| 20 | sourceforge:gs-fonts:fonts |
23 | 21 | |
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 |
| 22 | distname ghostscript-${version}-gpl |
| 23 | use_bzip2 yes |
| 24 | set gplgs_file ${distname}${extract.suffix} |
| 25 | set gplgs_fonts ghostscript-fonts-std-8.11.tar.gz |
| 26 | distfiles ${gplgs_file}:source ${gplgs_fonts}:fonts |
| 27 | extract.only ${gplgs_file} |
| 28 | |
| 29 | checksums ${gplgs_file} md5 02afa3b3c5f4c2a0e023cb908f489d55 \ |
| 30 | ${gplgs_fonts} md5 6865682b095f8c4500c54b285ff05ef6 |
35 | 31 | |
36 | 32 | depends_lib port:gtk1 port:libpng port:zlib |
37 | 33 | |
38 | 34 | post-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 -" |
43 | 39 | } |
44 | 40 | |
45 | 41 | patchfiles patch-src-unix-dll.mak |
| 42 | post-patch { |
| 43 | reinplace "s|@@FILESPATH@@|${filespath}|" ${worksrcpath}/src/unix-dll.mak |
| 44 | } |
46 | 45 | |
47 | 46 | use_configure no |
48 | 47 | |
… |
… |
|
55 | 54 | mandir=${prefix}/share/man |
56 | 55 | |
57 | 56 | destroot.target soinstall |
58 | | destroot.destdir prefix=${destroot}/${prefix} |
| 57 | destroot.destdir prefix=${destroot}${prefix} |
59 | 58 | destroot.args SHARE_LIBPNG=1 \ |
60 | 59 | SHARE_ZLIB=1 \ |
61 | 60 | XCFLAGS="-I${prefix}/include -no-cpp-precomp" \ |
62 | 61 | XLDFLAGS="-L${prefix}/lib" \ |
63 | | mandir=${destroot}/${prefix}/share/man |
| 62 | mandir=${destroot}${prefix}/share/man |
64 | 63 | |
65 | 64 | post-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 |
69 | 68 | file copy ${worksrcpath}/src/iapi.h ${worksrcpath}/src/errors.h \ |
70 | 69 | ${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" |
73 | 72 | } |
74 | 73 | |
diff -uNr gplghostscript.orig/files/patch-src-unix-dll.mak gplghostscript/files/patch-src-unix-dll.mak
old
|
new
|
|
23 | 23 | # ------------------------- Recursive make targets ------------------------- # |
24 | 24 | |
25 | 25 | -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)'\ |
27 | 27 | GS_XE=$(BINDIR)/$(SOBINRELDIR)/$(GS_SONAME_MAJOR_MINOR)\ |
28 | 28 | STDIO_IMPLEMENTATION=c\ |
29 | 29 | DISPLAY_DEV=$(DD)$(SOOBJRELDIR)/display.dev\ |
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 | |