<!-- osx is both 'unix' and 'mac' -->
<id>osx</id>
<activation>
+ <jdk>1.6</jdk>
<os>
<family>mac</family>
</os>
<module>unix</module>
</modules>
</profile>
+
+ <profile>
+ <!-- osx is both 'unix' and 'mac', oracle JDK has different layout -->
+ <id>osx-oracle</id>
+ <activation>
+ <jdk>[1.7,)</jdk>
+ <os>
+ <family>mac</family>
+ </os>
+ </activation>
+ <properties>
+ <platform>osx</platform>
+ <packaging>dylib</packaging>
+ <javahOS>darwin</javahOS>
+ <jdkIncludePath>${java.home}/../include</jdkIncludePath>
+ </properties>
+ <modules>
+ <module>unix</module>
+ </modules>
+ </profile>
+
</profiles>
</project>