[65618] trunk/dports/archivers/libunrar
raimue at macports.org
raimue at macports.org
Sun Mar 28 18:18:13 PDT 2010
Revision: 65618
http://trac.macports.org/changeset/65618
Author: raimue at macports.org
Date: 2010-03-28 18:18:10 -0700 (Sun, 28 Mar 2010)
Log Message:
-----------
archivers/libunrar:
Add header file, build using -fPIC
Modified Paths:
--------------
trunk/dports/archivers/libunrar/Portfile
Added Paths:
-----------
trunk/dports/archivers/libunrar/files/patch-dll.hpp.diff
Modified: trunk/dports/archivers/libunrar/Portfile
===================================================================
--- trunk/dports/archivers/libunrar/Portfile 2010-03-29 01:02:18 UTC (rev 65617)
+++ trunk/dports/archivers/libunrar/Portfile 2010-03-29 01:18:10 UTC (rev 65618)
@@ -6,6 +6,7 @@
name libunrar
version 3.9.10
+revision 1
categories archivers
platforms darwin freebsd
maintainers krischik openmaintainer
@@ -19,7 +20,8 @@
homepage http://www.rarlab.com/
master_sites ${homepage}rar/
distname unrarsrc-${version}
-patchfiles patch-makefile.unix.diff
+patchfiles patch-makefile.unix.diff \
+ patch-dll.hpp.diff
worksrcdir unrar
use_configure no
use_parallel_build yes
@@ -28,7 +30,7 @@
sha1 8654c4c539a0a05b8cf52ff1aa2fca180601c8e9 \
rmd160 7c7d3f5e89ed1657f716c883ef9aaae1f37c1134
-set CXXFLAGS "${configure.cxxflags} -DSILENT"
+set CXXFLAGS "${configure.cxxflags} -DSILENT -DGUI -fPIC"
set LDFLAGS "${configure.ldflags}"
if {[variant_isset universal]} {
set CXXFLAGS "${CXXFLAGS} ${configure.universal_cxxflags}"
@@ -38,13 +40,16 @@
build.env-append CXX=${configure.cxx}
build.env-append CXXFLAGS="${CXXFLAGS}"
build.env-append LDFLAGS="${LDFLAGS}"
-build.args -f makefile.unix lib
+build.args -f makefile.unix
+build.target lib
destroot {
set docdir ${prefix}/share/doc/${name}-${version}
xinstall -d ${destroot}${docdir}
xinstall ${worksrcpath}/${name}.dylib ${destroot}${prefix}/lib
+ xinstall -d ${destroot}${prefix}/include/unrar
+ xinstall -m 0444 ${worksrcpath}/dll.hpp ${destroot}${prefix}/include/unrar/dll.hpp
xinstall -m 0644 -W ${worksrcpath} license.txt readme.txt ${destroot}${docdir}
}
Added: trunk/dports/archivers/libunrar/files/patch-dll.hpp.diff
===================================================================
--- trunk/dports/archivers/libunrar/files/patch-dll.hpp.diff (rev 0)
+++ trunk/dports/archivers/libunrar/files/patch-dll.hpp.diff 2010-03-29 01:18:10 UTC (rev 65618)
@@ -0,0 +1,17 @@
+--- dll.hpp 2008-11-06 01:37:37.000000000 +0100
++++ dll.hpp 2008-11-06 01:38:47.000000000 +0100
+@@ -28,14 +28,12 @@
+
+ #define RAR_DLL_VERSION 4
+
+-#ifdef _UNIX
+ #define CALLBACK
+ #define PASCAL
+ #define LONG long
+ #define HANDLE void *
+ #define LPARAM long
+ #define UINT unsigned int
+-#endif
+
+ struct RARHeaderData
+ {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100328/09a4a64d/attachment.html>
More information about the macports-changes
mailing list