hyphen
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>org.daisy.libs</groupId>
<artifactId>hyphen</artifactId>
<version>2.8.8-p2</version>
</dependency><?xml version="1.0"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.daisy</groupId>
<artifactId>daisy</artifactId>
<version>3</version>
<relativePath/>
</parent>
<groupId>org.daisy.libs</groupId>
<artifactId>hyphen</artifactId>
<version>2.8.8-p2</version>
<packaging>nar</packaging>
<name>libhyphen-nar</name>
<description>libhyphen packaged in a NAR (Native ARchive).</description>
<url>https://github.com/snaekobbi/libhyphen-nar</url>
<scm>
<connection>scm:git:git@github.com:daisy/libhyphen-nar.git</connection>
<developerConnection>scm:git:git@github.com:daisy/libhyphen-nar.git</developerConnection>
<url>git@github.com:daisy/libhyphen-nar.git</url>
</scm>
<licenses>
<license>
<name>GNU Lesser General Public License 3</name>
<url>http://www.gnu.org/licenses/lgpl.html</url>
</license>
</licenses>
<developers>
<developer>
<name>Bert Frees</name>
<email>bertfrees@gmail.com</email>
<url>http://github.com/bertfrees</url>
<organization>SBS - Schweizerische Bibliothek für Blinde, Seh- und Lesebehinderte</organization>
<organizationUrl>http://www.sbs.ch</organizationUrl>
</developer>
</developers>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<nar.arch.option/>
<nar.install_name.option/>
<nar.rpath.option/>
<nar.host.option/>
<nar.debug.option/>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>com.github.maven-nar</groupId>
<artifactId>nar-maven-plugin</artifactId>
<version>3.5.2</version>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>3.0.1</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>shell-maven-plugin</artifactId>
<version>1.0-beta-1</version>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
</plugin>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
</plugin>
<plugin>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.4</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>com.github.maven-nar</groupId>
<artifactId>nar-maven-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<gnuSourceDirectory>target/generated-sources/hyphen</gnuSourceDirectory>
<gnuConfigureArgs>${nar.host.option}</gnuConfigureArgs>
<libraries>
<library>
<type>shared</type>
</library>
</libraries>
<linker>
<name>g++</name>
</linker>
</configuration>
<executions>
<!--
validate: nar-validate
initialize: nar-download
generate-sources: nar-unpack
process-sources: nar-gnu-configure
generate-resources: nar-system-generate, nar-vcproj
process-resources: nar-resources, nar-gnu-resources
compile: nar-javah, nar-gnu-make, nar-compile
process-classes: nar-gnu-process, nar-process-libraries
generate-test-sources: nar-test-unpack
test-compile: nar-testCompile
test: nar-test
prepare-package: nar-prepare-package
package: nar-package,
integration-test: nar-integration-test
-->
<execution>
<id>default-nar-gnu-resources</id>
<phase>none</phase>
</execution>
<execution>
<id>default-nar-javah</id>
<phase>none</phase>
</execution>
<execution>
<id>default-nar-gnu-make</id>
<phase>none</phase>
</execution>
<execution>
<id>default-nar-compile</id>
<phase>none</phase>
</execution>
<execution>
<id>default-nar-gnu-configure</id>
<phase>compile</phase>
</execution>
<execution>
<id>nar-gnu-make</id>
<phase>compile</phase>
<goals>
<goal>nar-gnu-make</goal>
</goals>
</execution>
<execution>
<id>nar-compile</id>
<phase>compile</phase>
<goals>
<goal>nar-compile</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>copy-sources</id>
<phase>generate-sources</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>target/generated-sources/hyphen</outputDirectory>
<overwrite>true</overwrite>
<resources>
<resource>
<directory>src/hyphen</directory>
</resource>
</resources>
</configuration>
</execution>
<execution>
<id>copy-results</id>
<phase>process-classes</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>target/nar/hyphen-${project.version}-${nar.aol}-shared/lib/${nar.aol}/shared</outputDirectory>
<resources>
<resource>
<directory>target/nar/gnu/${nar.aol}/target/lib</directory>
<includes>
<include>*.dll.a</include>
<include>libhyphen.dylib</include>
<include>libhyphen.so</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>shell-maven-plugin</artifactId>
<configuration>
<chmod>true</chmod>
</configuration>
<executions>
<execution>
<id>process-sources</id>
<phase>process-sources</phase>
<goals>
<goal>shell</goal>
</goals>
<configuration>
<workDir>target/generated-sources/hyphen</workDir>
<script>
#!/bin/sh
sed \
-e 's|^\(libhyphen_la_LDFLAGS =\)\(.*\)$|\1 ${nar.install_name.option} ${nar.rpath.option} -avoid-version \2|' \
../../../src/hyphen/Makefile.am > Makefile.am
sed \
-e 's|^\(AC_INIT(\[hyphen\],\)[^,]*\(,.*\)$|\1 [${project.version}]\2|' \
-e 's|^\(AM_INIT_AUTOMAKE(hyphen,\)[^)]*)$|\1 ${project.version})|' \
-e '/^AC_INIT.*$/a\
CFLAGS="$CFLAGS ${nar.arch.option} ${nar.debug.option}"\
' \
../../../src/hyphen/configure.ac > configure.ac
echo Running autoreconf...
autoreconf -fvi
chmod +x tbhyphext.sh
</script>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>i386</id>
<activation>
<property>
<name>os.arch</name>
<value>i386</value>
</property>
</activation>
<properties>
<nar.arch.option>-m32</nar.arch.option>
</properties>
</profile>
<profile>
<id>linux</id>
<activation>
<property>
<name>os.name</name>
<value>Linux</value>
</property>
</activation>
<properties>
<nar.rpath.option>-Wl,-rpath,".:\\\$\$ORIGIN",--enable-new-dtags</nar.rpath.option>
</properties>
</profile>
<profile>
<id>mac</id>
<activation>
<property>
<name>os.name</name>
<value>Mac OS X</value>
</property>
</activation>
<properties>
<nar.install_name.option>-Wl,-install_name,@loader_path/libhyphen.dylib</nar.install_name.option>
</properties>
</profile>
<profile>
<id>cross-compile</id>
<properties>
<nar.arch.option></nar.arch.option>
<nar.rpath.option></nar.rpath.option>
<nar.install_name.option></nar.install_name.option>
<nar.host.option>--host ${os.arch}-${host.os}</nar.host.option>
</properties>
<build>
<plugins>
<plugin>
<groupId>com.github.maven-nar</groupId>
<artifactId>nar-maven-plugin</artifactId>
<configuration>
<os>${host.os}</os>
<linker>
<name>gpp</name>
</linker>
</configuration>
<executions>
<execution>
<id>default-nar-validate</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>debug</id>
<properties>
<nar.arch.option>-g -O0</nar.arch.option>
</properties>
</profile>
<profile>
<id>sonatype-deploy</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<configuration>
<useAgent>true</useAgent>
</configuration>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<distributionManagement>
<repository>
<id>sonatype-nexus-staging</id>
<name>oss.sonatype.org Staging Repository</name>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
<snapshotRepository>
<id>sonatype-nexus-snapshots</id>
<name>oss.sonatype.org github Release Repository Snapshot Repository</name>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</snapshotRepository>
</distributionManagement>
</project>