Changeset 104678


Ignore:
Timestamp:
Mar 31, 2013, 9:03:46 AM (6 years ago)
Author:
ryandesign@…
Message:

makejvf: ensure we're UsingTheRightCompiler and -arch flags; fix build with clang by declaring a void function as void; do reinplacing in post-patch, not configure; use "use_configure no"; specify locale of file being reinplaced to fix "reinplace: sed: RE error: illegal byte sequence" on Mountain Lion (#38585)

Location:
trunk/dports/tex/makejvf
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/tex/makejvf/Portfile

    r85954 r104678  
    1515master_sites    macports \
    1616                ftp://ftp.ascii.co.jp/pub/TeX/ascii-ptex/jvf/
    17 patchfiles      patch-makejvf.diff
     17
    1818checksums       md5 7fd15c90111732cce14c5dbb6228ecb3 \
    1919                sha1 0648f2b866978981a7752fdc66ea4f5c5907a40c \
     
    2323
    2424patch.pre_args  -p1
     25patchfiles      patch-makejvf.diff
    2526
    26 configure {
    27     reinplace "s|__PREFIX__|${prefix}|"    ${worksrcpath}/Makefile
    28     reinplace "s|__DESTDIR__|${destroot}|" ${worksrcpath}/Makefile
     27post-patch {
     28    reinplace -locale ja_JP.eucJP "s|__PREFIX__|${prefix}|g"    ${worksrcpath}/Makefile
     29    reinplace -locale ja_JP.eucJP "s|__DESTDIR__|${destroot}|g" ${worksrcpath}/Makefile
    2930}
    3031
     32use_configure no
     33
     34variant universal {}
     35
    3136build.target
     37build.args      CC="${configure.cc} [get_canonical_archflags cc]"
     38
    3239use_parallel_build  yes
    3340
  • trunk/dports/tex/makejvf/files/patch-makejvf.diff

    r31266 r104678  
    195195 }
    196196diff -Naur makejvf-1.1a.orig/write.c makejvf-1.1a/write.c
    197 --- makejvf-1.1a.orig/write.c   2006-12-21 00:18:25.000000000 +0900
    198 +++ makejvf-1.1a/write.c        2006-12-21 00:19:11.000000000 +0900
     197--- makejvf-1.1a.orig/write.c   2001-01-17 01:18:04.000000000 -0600
     198+++ makejvf-1.1a/write.c        2013-03-31 03:54:30.000000000 -0500
    199199@@ -1,5 +1,6 @@
    200200 #include <stdio.h>
     
    204204 extern char *vtfmname,*kanatfm;
    205205 extern int unit,zh,zw,jfm_id;
     206@@ -52,6 +53,7 @@
     207        return fp;
     208 }
     209 
     210+void
     211 writevf(code,fp)
     212 int code;
     213 FILE *fp;
Note: See TracChangeset for help on using the changeset viewer.