~ubuntu-branches/ubuntu/oneiric/gtk-qt-engine/oneiric

« back to all changes in this revision

Viewing changes to CMake/Modules/GtkQt.cmake

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra, Didier Raboud, Fathi Boudra
  • Date: 2009-06-25 09:35:02 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090625093502-ovidnbr0okqkm6ua
Tags: 1:1.1+svn5-1
* New svn repository (http://code.google.com/p/gtk-qt-engine)
  - Update upstream package to revision 5
    "Updated Norwegian Nynorsk translation by Karl Ove Hufthammer"

[ Didier Raboud ]

* Change source and binary name to gtk-qt-engine.
  - Bump epoch to 1 due to previous gtk-qt-engine being 1:0.8.
    (Closes: 480696)
  - Use the actual repository revision.
* Update debian/control:
  - Add myself to Uploaders field.
  - Add Vcs-{Svn,Browser} fields.
* Refactorize debian/rules:
  - Remove the custom debian/cdbs directory.
  - Add get-orig-source target.
* Add 04_no_kde4_in_configfile.diff patch (Closes: 527340).

[ Fathi Boudra ]

* Bump Standard-Version to 3.8.2 (no changes needed).
* Update debian/control: drop cdbs build dependency.
* Update debian/copyright: update upstream url.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Both these macros are taken from KDE3Macros.cmake
2
 
# Apart from the names, the only modification is that they take a destination argument
3
 
 
4
 
MACRO(GTKQT_KDE3_ADD_KPART _target_NAME _destination _with_PREFIX)
5
 
#is the first argument is "WITH_PREFIX" then keep the standard "lib" prefix, otherwise SET the prefix empty
6
 
   IF (${_with_PREFIX} STREQUAL "WITH_PREFIX")
7
 
      SET(_first_SRC)
8
 
   ELSE (${_with_PREFIX} STREQUAL "WITH_PREFIX")
9
 
      SET(_first_SRC ${_with_PREFIX})
10
 
   ENDIF (${_with_PREFIX} STREQUAL "WITH_PREFIX")
11
 
 
12
 
   IF (KDE3_ENABLE_FINAL)
13
 
      KDE3_CREATE_FINAL_FILE(${_target_NAME}_final.cpp ${_first_SRC} ${ARGN})
14
 
      ADD_LIBRARY(${_target_NAME} MODULE  ${_target_NAME}_final.cpp)
15
 
   ELSE (KDE3_ENABLE_FINAL)
16
 
      ADD_LIBRARY(${_target_NAME} MODULE ${_first_SRC} ${ARGN})
17
 
   ENDIF (KDE3_ENABLE_FINAL)
18
 
 
19
 
   IF(_first_SRC)
20
 
      SET_TARGET_PROPERTIES(${_target_NAME} PROPERTIES PREFIX "")
21
 
   ENDIF(_first_SRC)
22
 
 
23
 
   GTKQT_KDE3_INSTALL_LIBTOOL_FILE(${_target_NAME} ${_destination})
24
 
 
25
 
ENDMACRO(GTKQT_KDE3_ADD_KPART)
26
 
 
27
 
MACRO(GTKQT_KDE3_INSTALL_LIBTOOL_FILE _target _destination)
28
 
   GET_TARGET_PROPERTY(_target_location ${_target} LOCATION)
29
 
 
30
 
   GET_FILENAME_COMPONENT(_laname ${_target_location} NAME_WE)
31
 
   GET_FILENAME_COMPONENT(_soname ${_target_location} NAME)
32
 
   SET(_laname ${CMAKE_CURRENT_BINARY_DIR}/${_laname}.la)
33
 
 
34
 
   FILE(WRITE ${_laname} "# ${_laname} - a libtool library file, generated by cmake \n")
35
 
   FILE(APPEND ${_laname} "# The name that we can dlopen(3).\n")
36
 
   FILE(APPEND ${_laname} "dlname='${_soname}'\n")
37
 
   FILE(APPEND ${_laname} "# Names of this library\n")
38
 
   FILE(APPEND ${_laname} "library_names='${_soname} ${_soname} ${_soname}'\n")
39
 
   FILE(APPEND ${_laname} "# The name of the static archive\n")
40
 
   FILE(APPEND ${_laname} "old_library=''\n")
41
 
   FILE(APPEND ${_laname} "# Libraries that this one depends upon.\n")
42
 
   FILE(APPEND ${_laname} "dependency_libs=''\n")
43
 
#   FILE(APPEND ${_laname} "dependency_libs='${${_target}_LIB_DEPENDS}'\n")
44
 
   FILE(APPEND ${_laname} "# Version information.\ncurrent=0\nage=0\nrevision=0\n")
45
 
   FILE(APPEND ${_laname} "# Is this an already installed library?\ninstalled=yes\n")
46
 
   FILE(APPEND ${_laname} "# Should we warn about portability when linking against -modules?\nshouldnotlink=yes\n")
47
 
   FILE(APPEND ${_laname} "# Files to dlopen/dlpreopen\ndlopen=''\ndlpreopen=''\n")
48
 
   FILE(APPEND ${_laname} "# Directory that this library needs to be installed in:\n")
49
 
   FILE(APPEND ${_laname} "libdir='${CMAKE_INSTALL_PREFIX}/lib/kde3'\n")
50
 
 
51
 
   INSTALL(
52
 
      FILES ${_laname}
53
 
      DESTINATION ${_destination}
54
 
   )
55
 
 
56
 
ENDMACRO(GTKQT_KDE3_INSTALL_LIBTOOL_FILE)
 
 
b'\\ No newline at end of file'