[31171] trunk/dports/graphics/openjpeg/Portfile
css at macports.org
css at macports.org
Sat Nov 17 08:54:21 PST 2007
Revision: 31171
http://trac.macosforge.org/projects/macports/changeset/31171
Author: css at macports.org
Date: 2007-11-17 08:54:20 -0800 (Sat, 17 Nov 2007)
Log Message:
-----------
Build with cmake to ease configuration and include the examples. (#12719)
Modified Paths:
--------------
trunk/dports/graphics/openjpeg/Portfile
Modified: trunk/dports/graphics/openjpeg/Portfile
===================================================================
--- trunk/dports/graphics/openjpeg/Portfile 2007-11-17 16:31:08 UTC (rev 31170)
+++ trunk/dports/graphics/openjpeg/Portfile 2007-11-17 16:54:20 UTC (rev 31171)
@@ -4,7 +4,7 @@
name openjpeg
version 1.2
-revision 1
+revision 2
categories graphics
maintainers nomaintainer
description Library for manipulating JPEG-2000 images
@@ -17,22 +17,17 @@
platforms darwin
homepage http://www.openjpeg.org/
-master_sites ${homepage}/
+master_sites ${homepage}
checksums md5 4973c564c96683a921a7f6759906da4e
distname ${name}_v1_2
-
+depends_lib port:cmake
worksrcdir trunk
-post-patch {
- reinplace "s|/usr|${prefix}|" \
- ${worksrcpath}/Makefile.osx
- reinplace \
- "s|dynamiclib|dynamiclib -install_name ${prefix}/lib/libopenjpeg-2.1.2.0.dylib -compatibility_version 2.0.0 -current_version 2.1.2|" \
- ${worksrcpath}/Makefile.osx
-}
-
-use_configure no
-
-build.target osx
-destroot.target osxinstall
+configure { system "cd ${worksrcpath} && cmake ${configure.args} ${worksrcpath}" }
+configure.args -D BUILD_SHARED_LIBS:BOOL=ON \
+ -D CMAKE_VERBOSE_MAKEFILE:BOOL=ON \
+ -D CMAKE_INSTALL_PREFIX:PATH=${prefix} \
+ -D CMAKE_INSTALL_RPATH:PATH=${prefix} \
+ -D CMAKE_INSTALL_NAME_DIR=${prefix} \
+ -D BUILD_EXAMPLES:BOOL=ON
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071117/7a09fd8a/attachment.html
More information about the macports-changes
mailing list