[csw-devel] SF.net SVN: gar:[18358] csw/mgar/pkg/librecad/trunk

cgrzemba at users.sourceforge.net cgrzemba at users.sourceforge.net
Tue Jun 12 10:56:42 CEST 2012


Revision: 18358
          http://gar.svn.sourceforge.net/gar/?rev=18358&view=rev
Author:   cgrzemba
Date:     2012-06-12 08:56:42 +0000 (Tue, 12 Jun 2012)
Log Message:
-----------
librecad/trunk: add install scripts

Modified Paths:
--------------
    csw/mgar/pkg/librecad/trunk/Makefile
    csw/mgar/pkg/librecad/trunk/files/0000-adjust-for-csw-environment.patch

Modified: csw/mgar/pkg/librecad/trunk/Makefile
===================================================================
--- csw/mgar/pkg/librecad/trunk/Makefile	2012-06-12 07:58:32 UTC (rev 18357)
+++ csw/mgar/pkg/librecad/trunk/Makefile	2012-06-12 08:56:42 UTC (rev 18358)
@@ -38,12 +38,34 @@
 BUILD_DEP_PKGS += CSWboost-gcc-dev
 BUILD_DEP_PKGS += CSWlibfreetype-dev
 
+PACKAGES += CSWlibreCAD
+CATALOGNAME_CSWlibreCAD = libreCAD
+PKGFILES_CSWlibreCAD += $(call baseisadirs,$(bindir),.*)
+PKGFILES_CSWlibreCAD += $(prefix)/resources/*
+RUNTIME_DEP_PKGS_CSWlibreCAD += CSWlibqthelp4-gxx
+RUNTIME_DEP_PKGS_CSWlibreCAD += CSWlibqtcore4-gxx
+RUNTIME_DEP_PKGS_CSWlibreCAD += CSWlibstdc++6
+RUNTIME_DEP_PKGS_CSWlibreCAD += CSWlibqtgui4-gxx
+RUNTIME_DEP_PKGS_CSWlibreCAD += CSWlibqtsvg4-gxx
+RUNTIME_DEP_PKGS_CSWlibreCAD += CSWlibgcc-s1
+RUNTIME_DEP_PKGS_CSWlibreCAD += CSWlibfreetype6
+RUNTIME_DEP_PKGS_CSWlibreCAD += CSWlibmuparser2-gxx
+RUNTIME_DEP_PKGS_CSWlibreCAD += CSWlibqtsql4-gxx
+
 CONFIGURE_ARGS = $(DIRPATHS)
 
 CONFIGURE_SCRIPTS = custom
+INSTALL_SCRIPTS = custom
 
 configure-custom: 
 	cd $(WORKSRC) && $(bindir)/qmake $(call tolower,$(NAME)).pro
 
+install-custom:
+	ginstall -d 755 $(DESTDIR)$(bindir)
+	ginstall -m 755   $(WORKSRC)/unix/librecad $(DESTDIR)$(bindir)
+	ginstall -m 755   $(WORKSRC)/unix/ttf2lff $(DESTDIR)$(bindir)
+	ginstall -d 755 $(DESTDIR)$(datadir)/resources
+	gcp -rfp  $(WORKSRC)/unix/resources $(DESTDIR)$(datadir)
 include gar/category.mk
 
+PATH := /opt/csw/gnu:$(PATH)

Modified: csw/mgar/pkg/librecad/trunk/files/0000-adjust-for-csw-environment.patch
===================================================================
--- csw/mgar/pkg/librecad/trunk/files/0000-adjust-for-csw-environment.patch	2012-06-12 07:58:32 UTC (rev 18357)
+++ csw/mgar/pkg/librecad/trunk/files/0000-adjust-for-csw-environment.patch	2012-06-12 08:56:42 UTC (rev 18358)
@@ -21,19 +21,18 @@
      DEFINES += QC_SCMREVISION=\"$$SCMREVISION\"
      macx {
 diff --git a/settings.pro b/settings.pro
-index b120052..67346d3 100644
+index b120052..b5354ea 100644
 --- a/settings.pro
 +++ b/settings.pro
-@@ -4,7 +4,9 @@ win32 {
- unix {
+@@ -5,6 +5,6 @@ unix {
      macx {
          include(settings_macx.pro)
-+    } solaris {
-+        include(settings_csw.pro)
      } else {
-         include(settings_linux.pro)
+-        include(settings_linux.pro)
++        include(settings_csw.pro)
      }
  }
+
 -- 
 1.7.10.2
 

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list