diff --git a/templates/libwmf-devel b/templates/libwmf-devel new file mode 120000 index 00000000000..bc1a188cd2c --- /dev/null +++ b/templates/libwmf-devel @@ -0,0 +1 @@ +libwmf \ No newline at end of file diff --git a/templates/libwmf/depends b/templates/libwmf/depends new file mode 100644 index 00000000000..8d218f0b5bb --- /dev/null +++ b/templates/libwmf/depends @@ -0,0 +1,2 @@ +abi_depends=0.2.8.4 +api_depends=${abi_depends} diff --git a/templates/libwmf/devel.template b/templates/libwmf/devel.template new file mode 100644 index 00000000000..4daf8f214f1 --- /dev/null +++ b/templates/libwmf/devel.template @@ -0,0 +1,23 @@ +# Template file for 'libwmf-devel'. +# +short_desc="${sourcepkg} development files" +long_desc="${long_desc} + + This package contains files for development, headers, static libs, etc." + +Add_dependency run libwmf + +do_install() +{ + local gtk_abiver="2.10.0" + + mkdir -p ${DESTDIR}/usr/lib/gtk-2.0/${gtk_abiver}/loaders + mkdir -p ${DESTDIR}/usr/bin ${DESTDIR}/usr/share + mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr + mv ${SRCPKGDESTDIR}/usr/lib/lib*.*a ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/lib*.so ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/share/doc ${DESTDIR}/usr/share + mv ${SRCPKGDESTDIR}/usr/bin/libwmf-config ${DESTDIR}/usr/bin + mv ${SRCPKGDESTDIR}/usr/lib/gtk-2.0/${gtk_abiver}/loaders/*.*a \ + ${DESTDIR}/usr/lib/gtk-2.0/${gtk_abiver}/loaders +} diff --git a/templates/libwmf/template b/templates/libwmf/template index 3070f2677ec..01850c4eeb1 100644 --- a/templates/libwmf/template +++ b/templates/libwmf/template @@ -1,17 +1,15 @@ # Template build file for 'libwmf'. pkgname=libwmf +sourcepkg=$pkgname version=0.2.8.4 -distfiles="$SOURCEFORGE_SITE/wvware/$pkgname-$version.tar.gz" +distfiles="${SOURCEFORGE_SITE}/wvware/$pkgname-$version.tar.gz" build_style=gnu_configure -configure_args=" - --with-sysfontmap=$XBPS_MASTERDIR/share/fonts/fontmap - --with-fontdir=$XBPS_DESTDIR/$pkgname-$version/share/fonts - --with-gsfontmap=$XBPS_MASTERDIR/share/ghostscript/fonts/fontmap - --with-gsfontdir=$XBPS_DESTDIR/$pkgname-$version/share/ghostscript/fonts - --with-docdir=$XBPS_DESTDIR/$pkgname-$version/share/doc/libwmf" +configure_args="--with-gsfontdir=/usr/share/fonts/Type1 + --with-fontdir=/usr/share/fonts/Type1 + --with-gsfontmap=/usr/share/ghostscript/8.15/lib/Fontmap.GS" short_desc="Library for reading and converting WMF (Windows Meta Files)" maintainer="Juan RP " -checksum=98cd631adb5bb332d9224d04bc8a265c105435f2 +checksum=5b345c69220545d003ad52bfd035d5d6f4f075e65204114a9e875e84895a7cf8 long_desc=" libwmf is a library for UNIX-like machines that can convert wmf (Windows Meta Files) files into other formats. Currently it supports @@ -21,3 +19,21 @@ long_desc=" Without a TrueType font server and the standard MS Windows fonts, the X binding might render text in a different font than would appear under MS Windows natively (this is a runtime issue for the wmf2x program)." + +triggers="gtk-pixbuf-loaders" + +subpackages="devel" +Add_dependency build pkg-config +Add_dependency full glibc +Add_dependency full freetype +Add_dependency full jpeg +Add_dependency full libpng +Add_dependency full expat +Add_dependency full gtk+ +Add_dependency full gsfonts +Add_dependency full gd + +post_install() +{ + rm -rf ${DESTDIR}/usr/share/fonts +}