Le 25/05/2011 00:29, Miklos Vajna a écrit : > On Tue, May 24, 2011 at 01:30:01PM +0200, Sebastien VINCENT > <[email protected]> wrote: >> It's an oversight on my part. >> We just compile the source either by make or cmake. >> I rewrite the package with make and makefile patch. >> I forgot to send the FB on the ML: ( > Oh, great. So could you send it, please? > > Thanks. > > > _______________________________________________ > Frugalware-devel mailing list > [email protected] > http://frugalware.org/mailman/listinfo/frugalware-devel Hi,
The git patch -- Sébastien VINCENT Aka Baste
>From 6fed3658171bc110b1e0a5c68d2bf6b66a2ff3d7 Mon Sep 17 00:00:00 2001 From: Baste <[email protected]> Date: Wed, 25 May 2011 13:38:46 +0200 Subject: [PATCH] openjpeg-1.4-1-i686 * new package --- source/lib-extra/openjpeg/FrugalBuild | 25 +++++++++++++++ source/lib-extra/openjpeg/destdir.patch | 51 +++++++++++++++++++++++++++++++ 2 files changed, 76 insertions(+), 0 deletions(-) create mode 100644 source/lib-extra/openjpeg/FrugalBuild create mode 100644 source/lib-extra/openjpeg/destdir.patch diff --git a/source/lib-extra/openjpeg/FrugalBuild b/source/lib-extra/openjpeg/FrugalBuild new file mode 100644 index 0000000..b8b7c02 --- /dev/null +++ b/source/lib-extra/openjpeg/FrugalBuild @@ -0,0 +1,25 @@ +# Compiling Time: 0.13 SBU +# Maintainer: Not Yet +# Contributor : Baste <[email protected]> + +pkgname=openjpeg +pkgver=1.4 +pkgextraver=_sources_r697 +pkgrel=1 +_F_archive_prefix="v" +pkgdesc="An open-source JPEG 2000 codec written in C" +url="http://www.openjpeg.org/" +_F_googlecode_pkgver=v1_4_sources_r697 +_F_googlecode_sep="_" +_F_googlecode_ext=".tgz" +Finclude googlecode +depends=('libpng' 'libtiff' 'lcms2') +groups=('lib-extra') +archs=('i686') +source=("${source[@]}" "destdir.patch") +up2date="Flastarchive http://code.google.com/p/$_F_googlecode_dirname/downloads/list $_F_googlecode_ext | sed 's/_/./g'" +sha1sums=('9ef6a08ecf5944962b4e2cd7569ac01a8eaa66d0' \ + '1ade0cc0966a3c53f2cebff2038dba77fb3cf53a') + +_F_cd_path="${pkgname}_$_F_googlecode_pkgver" + diff --git a/source/lib-extra/openjpeg/destdir.patch b/source/lib-extra/openjpeg/destdir.patch new file mode 100644 index 0000000..6a6c8e7 --- /dev/null +++ b/source/lib-extra/openjpeg/destdir.patch @@ -0,0 +1,51 @@ +--- openjpeg_v1_4_sources_r697/doc/Makefile.in ++++ openjpeg/doc/Makefile.in +@@ -393,21 +393,21 @@ + @cp man/man3/* . + + install-data-hook: +- $(INSTALL) -d $(doc_dir) +- $(INSTALL) -d ${mandir}/man1 ${mandir}/man3 +-@with_libjpwl_TRUE@ @(cd ${mandir}/man1 && $(RM) JPWL_image_to_j2k* JPWL_j2k_to_image*) +-@with_libjpwl_TRUE@ @(cd ${mandir}/man3 && $(RM) JPWL_libopenjpeg* ) +- @(cd ${mandir}/man1 && $(RM) image_to_j2k* j2k_to_image* j2k_dump* ) +- @(cd ${mandir}/man3 && $(RM) libopenjpeg* ) ++ $(INSTALL) -d $(DESTDIR)$(doc_dir) ++ $(INSTALL) -d $(DESTDIR)${mandir}/man1 $(DESTDIR)${mandir}/man3 ++@with_libjpwl_TRUE@ @(cd $(DESTDIR)${mandir}/man1 && $(RM) JPWL_image_to_j2k* JPWL_j2k_to_image*) ++@with_libjpwl_TRUE@ @(cd $(DESTDIR)${mandir}/man3 && $(RM) JPWL_libopenjpeg* ) ++ @(cd $(DESTDIR)${mandir}/man1 && $(RM) image_to_j2k* j2k_to_image* j2k_dump* ) ++ @(cd $(DESTDIR)${mandir}/man3 && $(RM) libopenjpeg* ) + @gzip -f image_to_j2k.1 j2k_to_image.1 j2k_dump.1 libopenjpeg.3 +- @cp image_to_j2k.1.gz j2k_to_image.1.gz j2k_dump.1.gz ${mandir}/man1 +- @cp libopenjpeg.3.gz ${mandir}/man3 ++ @cp image_to_j2k.1.gz j2k_to_image.1.gz j2k_dump.1.gz $(DESTDIR)${mandir}/man1 ++ @cp libopenjpeg.3.gz $(DESTDIR)${mandir}/man3 + @$(RM) *\.gz +-@with_libjpwl_TRUE@ @(cd ${mandir}/man1 && \ ++@with_libjpwl_TRUE@ @(cd $(DESTDIR)${mandir}/man1 && \ + @with_libjpwl_TRUE@ $(LN_S) image_to_j2k.1.gz JPWL_image_to_j2k.1.gz && \ + @with_libjpwl_TRUE@ $(LN_S) j2k_to_image.1.gz JPWL_j2k_to_image.1.gz) +-@with_libjpwl_TRUE@ @(cd ${mandir}/man3 && $(LN_S) libopenjpeg.3.gz JPWL_libopenjpeg.3.gz) +- @$(INSTALL) -m 644 ../LICENSE ../CHANGES $(doc_dir) ++@with_libjpwl_TRUE@ @(cd $(DESTDIR)${mandir}/man3 && $(LN_S) libopenjpeg.3.gz JPWL_libopenjpeg.3.gz) ++ @$(INSTALL) -m 644 ../LICENSE ../CHANGES $(DESTDIR)$(doc_dir) + + uninstall-hook: + @(cd ${mandir}/man1 && $(RM) JPWL_image_to_j2k* JPWL_j2k_to_image* && \ + +--- openjpeg_v1_4_sources_r697/Makefile.in 2011-01-02 19:14:52.000000000 +0100 ++++ openjpeg/Makefile.in_new 2011-05-18 21:46:14.000000000 +0200 +@@ -763,9 +763,9 @@ + @echo "" + @echo "Installing: libopenjpeg1.pc $(pkgconf_dir)" + @echo "" +- @$(INSTALL) -d $(pkgconf_dir) +- @cp libopenjpeg.pc $(pkgconf_dir)/libopenjpeg1.pc +- @(cd $(pkgconf_dir) && $(RM) libopenjpeg.pc && \ ++ @$(INSTALL) -d $(DESTDIR)$(pkgconf_dir) ++ @cp libopenjpeg.pc $(DESTDIR)$(pkgconf_dir)/libopenjpeg1.pc ++ @(cd $(DESTDIR)$(pkgconf_dir) && $(RM) libopenjpeg.pc && \ + $(LN_S) libopenjpeg1.pc libopenjpeg.pc) + + uninstall-hook: -- 1.7.5.2
_______________________________________________ Frugalware-devel mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-devel
