--- Portfile.orig	2009-09-01 17:28:52.000000000 -0500
+++ Portfile	2009-09-01 17:32:25.000000000 -0500
@@ -13,7 +13,7 @@
     format, as well as read from Mac OS resource files and macbinary encoded Mac OS \
     resource forks. As of release 0.5.9, it can fully read and write any 128x128 and all \
     smaller 32-bit icons, and read support for 8-bit, 4-bit, and 1-bit icons. If linked \
-    against Jasper, it also has full support for 256x256 and 512x512 32-bit icons with \
+    against OpenJPEG or Jasper, it also has full support for 256x256 and 512x512 32-bit icons with \
     masks as alpha channels. libicns includes icns2png, a tool for extracting the images \
     contained within icns files, and saving them as png images. It also includes png2icns, \
     a tool for creating icns files from a set of png images. \
@@ -25,4 +25,9 @@
 
 checksums           sha1 96e66119f4d8e6736b9d44120bff8c337d400ce5
 
-depends_lib 		port:zlib port:libpng port:jasper
+depends_lib		port:zlib port:libpng port:openjpeg
+
+variant jasper description {Link against Jasper} {
+	depends_lib-delete port:openjpeg
+	depends_lib-append port:jasper
+}
