Ticket #23807: astyle.diff

File astyle.diff, 4.4 KB (added by dsturnbull@…, 14 years ago)

astyle 1.2.4

  • Portfile

    diff -ur astyle.old/Portfile astyle/Portfile
    old new  
    44PortSystem        1.0
    55
    66name              astyle
    7 version           1.23
     7version           1.24
    88categories        devel
    99platforms         darwin
    1010maintainers       wyuenho openmaintainer
     
    1717homepage          http://astyle.sourceforge.net
    1818master_sites      sourceforge::macosx
    1919distfiles         ${name}_${version}_macosx.tar.gz:macosx
    20 checksums         md5 9f7f3237996776d01bc6837cd445a442 \
    21                   sha1 1ab3e36bc2f0f8e669fb6bbceaf051cafa043119 \
    22                   rmd160 6940ac4e2f0351c141abf605d31931fefa1e7727
     20checksums         md5 9b63dadac58e867f14b3894befbdc9b3 \
     21                  sha1 6f5d727fb19e716223e14cd2b94d2c1d7fdab13f
    2322
    24 worksrcdir        ${name}/buildmac
     23worksrcdir        ${name}/build/mac
    2524patchfiles        patch-Makefile.diff
    2625use_configure     no
    2726universal_variant no
  • files/patch-Makefile.diff

    diff -ur astyle.old/files/patch-Makefile.diff astyle/files/patch-Makefile.diff
    old new  
    1 --- Makefile.old        2009-08-30 20:18:44.000000000 -0400
    2 +++ Makefile    2009-08-31 04:07:39.000000000 -0400
    3 @@ -14,27 +14,20 @@
    4  vpath %.cpp ../src
    5  vpath %.h   ../src
     1--- Makefile.orig       2010-01-31 06:55:40.000000000 +1100
     2+++ Makefile    2010-03-17 10:38:07.000000000 +1100
     3@@ -14,15 +14,9 @@
     4 vpath %.cpp ../../src
     5 vpath %.h   ../../src
    66 
    77-# NOTE for java compiles the environment variable $JAVA_HOME must be set
    88-# example: export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.00
    99-ifndef JAVA_HOME
    10 -#   JAVA_HOME = /usr/lib/jvm/java-6-sun-1.6.0.06
    11 -       JAVA_HOME = /usr/lib/jvm/java-6-sun-1.6.0.10
     10-    JAVA_HOME = /usr/lib/jvm/java-6-sun-1.6.0.16
    1211-endif
    1312-
    1413 # set prefix if not defined on the command line
     
    1615-    prefix=/usr
    1716+    prefix=/usr/local
    1817 endif
     18 SYSCONF_PATH=$(prefix)/share/astyle
    1919 
    20  # define macros
     20@@ -31,11 +25,11 @@
    2121 dynamiclib = -dynamiclib
    22  bindir = ../bin
     22 bindir = bin
    2323 objdir = obj
    2424-ipath=$(prefix)/bin
    2525+DESTDIR=$(prefix)
     
    3131+INSTALL=install -o $(USER)
    3232 
    3333 # for testing on linux
    34  ifdef test
    35 @@ -122,14 +115,14 @@
    36         $(CXX) -o $(bindir)/$@ $^
    37         @ echo
    38  
    39 -shared:  libastyle.so
    40 -libastyle.so:  $(OBJs)
    41 +shared:  libastyle.dylib
    42 +libastyle.dylib:  $(OBJs)
    43         @ mkdir -p $(bindir)
    44         $(CXX) $(dynamiclib) -o $(bindir)/$@ $^
    45         @ echo
    46  
    47 -shareddebug:  libastyled.so
    48 -libastyled.so:  $(OBJsd)
    49 +shareddebug:  libastyled.dylib
    50 +libastyled.dylib:  $(OBJsd)
    51         @ mkdir -p $(bindir)
    52         $(CXX) $(dynamiclib) -o $(bindir)/$@ $^
    53         @ echo
    54 @@ -146,16 +139,16 @@
    55         ar crs $(bindir)/$@ $^
    56         @ echo
    57  
    58 -java:  libastylej.so
    59 -libastylej.so:  $(OBJsj)
    60 +java:  libastylej.dylib
    61 +libastylej.dylib:  $(OBJsj)
    62         @ mkdir -p $(bindir)
    63 -       $(CXX) $(dynamiclib) -o $(bindir)/$@ $^
    64 +       $(CXX) $(dynamiclib) -framework JavaVM -o $(bindir)/$@ $^
    65         @ echo
    66  
    67 -javadebug:  libastylejd.so
    68 -libastylejd.so:  $(OBJsjd)
    69 +javadebug:  libastylejd.dylib
    70 +libastylejd.dylib:  $(OBJsjd)
    71         @ mkdir -p $(bindir)
    72 -       $(CXX) $(dynamiclib) -o $(bindir)/$@ $^
    73 +       $(CXX) $(dynamiclib) -framework JavaVM -o $(bindir)/$@ $^
    74         @ echo
    75  
    76  all:  release debug shared shareddebug static staticdebug
    77 @@ -167,10 +160,19 @@
    78  
     34 ifdef linux
     35@@ -170,16 +164,19 @@
    7936 cleanobj:
    8037        rm -f $(objdir)/*.o
    81 -       
     38        
    8239-install:
    83 -       @ $(INSTALL) -m 755 -d $(ipath)
    84 -       $(INSTALL) -m 755 $(bindir)/astyle  $(ipath)
    85 +
     40-       $(INSTALL) -m 755 -d $(ipath)
     41-       @$(INSTALL) -m 755 $(bindir)/astyle  $(ipath)
     42-
     43-       $(INSTALL) -m 755 -d $(SYSCONF_PATH)
     44-       @for files in ../../doc/*.html  ../../doc/*.css; \
     45-       do \
     46-               $(INSTALL)  -m 644  $$files  $(SYSCONF_PATH); \
     47-       done
     48-
    8649+install:  release
    87 +       @$(INSTALL) -d $(DESTDIR)
     50+       @ $(INSTALL) -d $(DESTDIR)/bin
    8851+       $(INSTALL) $(bindir)/astyle  $(DESTDIR)/bin
    8952+
    9053+install-lib:  libastyle.a libastyle.dylib
    91 +       @ $(INSTALL) -d $(DESTDIR)
     54+       @ $(INSTALL) -d $(DESTDIR)/lib
    9255+       $(INSTALL) ../bin/libastyle.a ../bin/libastyle.dylib $(DESTDIR)/lib
    9356+
    9457+install-jnilib:         libastylej.dylib
    95 +       @ $(INSTALL) -d $(DESTDIR)
     58+       @ $(INSTALL) -d $(DESTDIR)/lib
    9659+       $(INSTALL) ../bin/libastylej.dylib $(DESTDIR)/lib
    97 
     60+
    9861 uninstall:
    9962-       rm -f $(ipath)/astyle
    10063+       rm -f $(DESTDIR)/bin/astyle
    10164+       rm -f $(DESTDIR)/lib/libastyle%
    102 \ No newline at end of file
     65        rm -rf $(SYSCONF_PATH)