diff -ur astyle.old/Portfile astyle/Portfile
old
|
new
|
|
4 | 4 | PortSystem 1.0 |
5 | 5 | |
6 | 6 | name astyle |
7 | | version 1.23 |
| 7 | version 1.24 |
8 | 8 | categories devel |
9 | 9 | platforms darwin |
10 | 10 | maintainers wyuenho openmaintainer |
… |
… |
|
17 | 17 | homepage http://astyle.sourceforge.net |
18 | 18 | master_sites sourceforge::macosx |
19 | 19 | distfiles ${name}_${version}_macosx.tar.gz:macosx |
20 | | checksums md5 9f7f3237996776d01bc6837cd445a442 \ |
21 | | sha1 1ab3e36bc2f0f8e669fb6bbceaf051cafa043119 \ |
22 | | rmd160 6940ac4e2f0351c141abf605d31931fefa1e7727 |
| 20 | checksums md5 9b63dadac58e867f14b3894befbdc9b3 \ |
| 21 | sha1 6f5d727fb19e716223e14cd2b94d2c1d7fdab13f |
23 | 22 | |
24 | | worksrcdir ${name}/buildmac |
| 23 | worksrcdir ${name}/build/mac |
25 | 24 | patchfiles patch-Makefile.diff |
26 | 25 | use_configure no |
27 | 26 | universal_variant no |
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 |
6 | 6 | |
7 | 7 | -# NOTE for java compiles the environment variable $JAVA_HOME must be set |
8 | 8 | -# example: export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.00 |
9 | 9 | -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 |
12 | 11 | -endif |
13 | 12 | - |
14 | 13 | # set prefix if not defined on the command line |
… |
… |
|
16 | 15 | - prefix=/usr |
17 | 16 | + prefix=/usr/local |
18 | 17 | endif |
| 18 | SYSCONF_PATH=$(prefix)/share/astyle |
19 | 19 | |
20 | | # define macros |
| 20 | @@ -31,11 +25,11 @@ |
21 | 21 | dynamiclib = -dynamiclib |
22 | | bindir = ../bin |
| 22 | bindir = bin |
23 | 23 | objdir = obj |
24 | 24 | -ipath=$(prefix)/bin |
25 | 25 | +DESTDIR=$(prefix) |
… |
… |
|
31 | 31 | +INSTALL=install -o $(USER) |
32 | 32 | |
33 | 33 | # 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 @@ |
79 | 36 | cleanobj: |
80 | 37 | rm -f $(objdir)/*.o |
81 | | - |
| 38 | |
82 | 39 | -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 | - |
86 | 49 | +install: release |
87 | | + @$(INSTALL) -d $(DESTDIR) |
| 50 | + @ $(INSTALL) -d $(DESTDIR)/bin |
88 | 51 | + $(INSTALL) $(bindir)/astyle $(DESTDIR)/bin |
89 | 52 | + |
90 | 53 | +install-lib: libastyle.a libastyle.dylib |
91 | | + @ $(INSTALL) -d $(DESTDIR) |
| 54 | + @ $(INSTALL) -d $(DESTDIR)/lib |
92 | 55 | + $(INSTALL) ../bin/libastyle.a ../bin/libastyle.dylib $(DESTDIR)/lib |
93 | 56 | + |
94 | 57 | +install-jnilib: libastylej.dylib |
95 | | + @ $(INSTALL) -d $(DESTDIR) |
| 58 | + @ $(INSTALL) -d $(DESTDIR)/lib |
96 | 59 | + $(INSTALL) ../bin/libastylej.dylib $(DESTDIR)/lib |
97 | | |
| 60 | + |
98 | 61 | uninstall: |
99 | 62 | - rm -f $(ipath)/astyle |
100 | 63 | + rm -f $(DESTDIR)/bin/astyle |
101 | 64 | + rm -f $(DESTDIR)/lib/libastyle% |
102 | | \ No newline at end of file |
| 65 | rm -rf $(SYSCONF_PATH) |