openjpeg is A open-source JPEG 2000 codec written in C.


To create openjpeg, I had to edit the file googlecode.shby adding the variable _F_googlecode_pkgverand make a patch for openjpeg.

I attach the patch for it.


Sébastien VINCENT Aka Baste
--- openjpeg_v1_4_sources_r697/libopenjpeg/CMakeLists.txt       2011-01-02 
19:14:45.000000000 +0100
+++ openjpeg_v1_4_sources_r697/libopenjpeg/CMakeLists_ln.txt    2011-05-07 
21:56:12.000000000 +0200
@@ -43,7 +43,7 @@
   DESTINATION ${OPENJPEG_INSTALL_INCLUDE_DIR}/${subdir} COMPONENT Headers
 )
 INSTALL(CODE
-  "EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E create_symlink 
\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${OPENJPEG_INSTALL_INCLUDE_DIR}/${subdir}/openjpeg.h
 
\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${OPENJPEG_INSTALL_INCLUDE_DIR}/openjpeg.h)")
+  "EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E create_symlink 
\${CMAKE_INSTALL_PREFIX}/${OPENJPEG_INSTALL_INCLUDE_DIR}${subdir}/openjpeg.h 
\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/${OPENJPEG_INSTALL_INCLUDE_DIR}/openjpeg.h)")
 
 # install man page of the library
 INSTALL(
# Compiling Time: 0.03 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
Finclude cmake
depends=('libpng' 'libtiff' 'lcms2')
makedepends=('cmake')
groups=('lib-extra')
archs=('i686')
source=("${source[@]}" "symboliclinks.patch")
up2date="Flastarchive 
http://code.google.com/p/$_F_googlecode_dirname/downloads/list 
$_F_googlecode_ext | sed 's/_/./g'"
sha1sums=('9ef6a08ecf5944962b4e2cd7569ac01a8eaa66d0' \
          '9dad3ab3257bb2d034d0bc49aa9c1a0efc1f7c0c')

_F_cd_path="${pkgname}_$_F_googlecode_pkgver"
--- googlecode_old.sh   2011-05-07 11:44:22.000000000 +0200
+++ googlecode.sh       2011-05-07 14:48:45.000000000 +0200
@@ -34,6 +34,9 @@
 # * _F_googlecode_dirname (defaults to $_F_googlecode_name): if the
 # source tarball uses a name different to the googlecode name, then use
 # this option to declare the project name
+# * _F_googlecode_pkgver (defaults to $pkgver): Some packages are called 
foo-1.2.3
+# but the source is called different from $pkgver, e.g: foo-123 or vfoo_1_2_3, 
in such
+# a case _F_googlecode_pkgver may help to avoid custom $source
 # * _F_googlecode_ext (defaults to .tar.gz): extension of the source tarball
 # * _F_googlecode_sep ( defaults to - ): used for source() only right now. As 
example
 # for an "baz_1.2.3.tar.gz" tarball you should use _F_googlecode_sep="_" , for 
empty
@@ -48,6 +51,10 @@
        _F_googlecode_dirname="$_F_googlecode_name"
 fi
 
+if [ -z "$_F_googlecode_pkgver" ]; then
+        _F_googlecode_pkgver=${pkgver//_/-}
+fi
+
 if [ -z "$_F_googlecode_ext" ]; then
        _F_googlecode_ext=".tar.gz"
 fi
@@ -69,4 +76,4 @@
 _F_archive_name="$_F_googlecode_name"
 Fpkgversep="$_F_googlecode_sep"
 up2date="Flastarchive 
http://code.google.com/p/$_F_googlecode_dirname/downloads/list 
$_F_googlecode_ext"
-source=(http://${_F_googlecode_dirname}.googlecode.com/files/${_F_googlecode_name}${_F_googlecode_sep}${pkgver//_/-}${_F_googlecode_ext})
+source=(http://${_F_googlecode_dirname}.googlecode.com/files/${_F_googlecode_name}${_F_googlecode_sep}${_F_googlecode_pkgver}${_F_googlecode_ext})
_______________________________________________
Frugalware-devel mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-devel

Reply via email to