Changeset 99380
- Timestamp:
- Nov 4, 2012, 9:14:50 AM (12 years ago)
- Location:
- trunk/dports/archivers
- Files:
-
- 1 deleted
- 1 edited
- 3 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/archivers/unrar/Portfile
r99378 r99380 10 10 license Restrictive/Distributable 11 11 platforms darwin freebsd 12 maintainers nomaintainer12 maintainers krischik openmaintainer 13 13 description Extract, view & test RAR archives 14 14 … … 25 25 sha256 9432bf798e5f7123f3060f37b75b7c07f36f0091305f46473dcae9154f8cd686 26 26 27 patchfiles patch-makefile.unix.diff 27 patchfiles patch-dll.hpp.diff \ 28 patch-makefile.unix.diff 28 29 29 30 worksrcdir ${name} … … 37 38 } 38 39 39 build.env-append CXX="[join ${configure.cxx}]" \ 40 CXXFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]" \ 41 LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]" 40 build.args -f makefile.unix \ 41 CXX="[join ${configure.cxx}]" 42 42 43 build.args -f makefile.unix 43 # The makefile misuses the DESTDIR variable as if it were PREFIX. We need it at 44 # build time so the library gets the correct install_name. 45 build.args-append DESTDIR=${prefix} 44 46 45 destroot { 46 set docdir ${prefix}/share/doc/${name} 47 48 xinstall -d ${destroot}${docdir} 49 xinstall ${worksrcpath}/${name} ${destroot}${prefix}/bin 50 xinstall -m 0644 -W ${worksrcpath} license.txt readme.txt ${destroot}${docdir} 47 pre-build { 48 build.args-append CXXFLAGS="${configure.cxxflags} [get_canonical_archflags cxx]" \ 49 LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]" 51 50 } 52 51 53 livecheck.type regex 54 livecheck.url ${homepage}rar_add.htm 55 livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*) 52 post-destroot { 53 set docdir ${prefix}/share/doc/${subport} 54 xinstall -d ${destroot}${docdir} 55 xinstall -m 644 -W ${worksrcpath} license.txt readme.txt ${destroot}${docdir} 56 } 57 58 platform darwin { 59 patchfiles-append patch-dylib.diff 60 } 61 62 if {${name} == ${subport}} { 63 installs_libs no 64 65 destroot { 66 xinstall ${worksrcpath}/${name} ${destroot}${prefix}/bin 67 } 68 69 livecheck.type regex 70 livecheck.url ${homepage}rar_add.htm 71 livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*) 72 } else { 73 livecheck.type none 74 } 75 76 subport libunrar { 77 description unrar library 78 long_description ${description} 79 80 # Copied from standalone libunrar port. Why do we need these? 81 configure.cxxflags-append -DSILENT -DGUI 82 83 # The makefile adds -fPIC to the CXXFLAGS when building the library, but we 84 # override the CXXFLAGS with our own, so we have to manually add this again. 85 configure.cxxflags-append -fPIC 86 87 build.target lib 88 89 destroot { 90 xinstall -d ${destroot}${prefix}/include/unrar 91 xinstall -m 644 ${worksrcpath}/dll.hpp ${destroot}${prefix}/include/unrar 92 if {${os.platform} == "darwin"} { 93 xinstall ${worksrcpath}/libunrar.dylib ${destroot}${prefix}/lib 94 } else { 95 xinstall ${worksrcpath}/libunrar.so ${destroot}${prefix}/lib 96 } 97 } 98 } -
trunk/dports/archivers/unrar/files/patch-dll.hpp.diff
r99375 r99380 1 --- dll.hpp 2008-11-06 01:37:37.000000000 +01002 +++ dll.hpp 20 08-11-06 01:38:47.000000000 +01003 @@ - 28,14 +28,12 @@1 --- dll.hpp.orig 2012-06-09 08:21:04.000000000 -0500 2 +++ dll.hpp 2012-11-04 02:52:55.000000000 -0600 3 @@ -30,14 +30,12 @@ 4 4 5 #define RAR_DLL_VERSION 45 #define RAR_DLL_VERSION 5 6 6 7 7 -#ifdef _UNIX -
trunk/dports/archivers/unrar/files/patch-dylib.diff
r99375 r99380 1 --- makefile.unix.orig 2009-12-28 08:18:59.000000000 +0100 2 +++ makefile.unix 2009-12-28 08:28:44.000000000 +0100 3 @@ -100,7 +100,7 @@ 4 WHAT=UNRAR 5 6 UNRAR_OBJ=filestr.o recvol.o rs.o scantree.o 7 -LIB_OBJ=filestr.o scantree.o dll.o 8 +LIB_OBJ=filestr.o recvol.o rs.o scantree.o dll.o 9 10 OBJECTS=rar.o strlist.o strfn.o pathfn.o savepos.o smallfn.o global.o file.o filefn.o filcreat.o \ 11 archive.o arcread.o unicode.o system.o isnt.o crypt.o crc.o rawread.o encname.o \ 12 @@ -132,8 +132,8 @@ 13 1 --- makefile.unix.orig 2012-05-15 00:31:03.000000000 -0500 2 +++ makefile.unix 2012-11-04 02:54:31.000000000 -0600 3 @@ -130,8 +130,8 @@ 14 4 lib: WHAT=RARDLL 15 lib: $(OBJECTS) $(LIB_OBJ) 5 lib: CXXFLAGS+=$(LIBFLAGS) 6 lib: clean $(OBJECTS) $(LIB_OBJ) 16 7 - @rm -f libunrar.so 17 8 - $(LINK) -shared -o libunrar.so $(LDFLAGS) $(OBJECTS) $(LIB_OBJ) 18 9 + @rm -f libunrar.dylib 19 + $(LINK) - shared -olibunrar.dylib $(LDFLAGS) $(OBJECTS) $(LIB_OBJ)10 + $(LINK) -dynamiclib -o libunrar.dylib -install_name $(DESTDIR)/lib/libunrar.dylib $(LDFLAGS) $(OBJECTS) $(LIB_OBJ) 20 11 21 12 install-unrar: 22 install unrar $(DESTDIR)/bin 23 @@ -142,7 +142,7 @@ 24 rm -f $(DESTDIR)/bin/unrar 25 26 install-lib: 27 - install libunrar.so $(DESTDIR)/lib 28 + install libunrar.dylib $(DESTDIR)/lib 29 30 uninstall-lib: 31 - rm -f $(DESTDIR)/lib/libunrar.so 32 + rm -f $(DESTDIR)/lib/libunrar.dylib 13 install -D unrar $(DESTDIR)/bin/unrar -
trunk/dports/archivers/unrar/files/patch-makefile.unix.diff
r99375 r99380 1 --- makefile.unix.orig 20 09-12-28 08:18:59.000000000 +01002 +++ makefile.unix 20 09-12-28 08:28:44.000000000 +01003 @@ - 100,7 +100,7 @@1 --- makefile.unix.orig 2012-05-15 00:31:03.000000000 -0500 2 +++ makefile.unix 2012-11-04 02:52:55.000000000 -0600 3 @@ -97,7 +97,7 @@ 4 4 WHAT=UNRAR 5 5 … … 10 10 OBJECTS=rar.o strlist.o strfn.o pathfn.o savepos.o smallfn.o global.o file.o filefn.o filcreat.o \ 11 11 archive.o arcread.o unicode.o system.o isnt.o crypt.o crc.o rawread.o encname.o \ 12 @@ -132,8 +132,8 @@13 14 lib: WHAT=RARDLL15 lib: $(OBJECTS) $(LIB_OBJ)16 - @rm -f libunrar.so17 - $(LINK) -shared -o libunrar.so $(LDFLAGS) $(OBJECTS) $(LIB_OBJ)18 + @rm -f libunrar.dylib19 + $(LINK) -shared -o libunrar.dylib $(LDFLAGS) $(OBJECTS) $(LIB_OBJ)20 21 install-unrar:22 install unrar $(DESTDIR)/bin23 @@ -142,7 +142,7 @@24 rm -f $(DESTDIR)/bin/unrar25 26 install-lib:27 - install libunrar.so $(DESTDIR)/lib28 + install libunrar.dylib $(DESTDIR)/lib29 30 uninstall-lib:31 - rm -f $(DESTDIR)/lib/libunrar.so32 + rm -f $(DESTDIR)/lib/libunrar.dylib
Note: See TracChangeset
for help on using the changeset viewer.