[Lunar-commits] <moonbase-other> cdrtools: smake optional_depends.

Peter de Ridder peter at lunar-linux.org
Sun Oct 6 14:05:50 CEST 2013


commit 338c71a099af38661debe61c3633e40561ad0123
Author: Peter de Ridder <peter at lunar-linux.org>
Date: Mon, 16 Sep 2013 14:19:48 -0700
URL: https://github.com/lunar-linux/moonbase-other/commit/338c71a099af38661debe61c3633e40561ad0123

cdrtools: smake optional_depends.
---
  cd/cdrtools/BUILD     | +7/-8     
  cd/cdrtools/DEPENDS   | +1/-1     
  cd/cdrtools/DETAILS   | +1/-0     
  cd/cdrtools/PRE_BUILD | +7/-0     
  4 files changed, 16 insertions(+), 9 deletions(-)

--- a/cd/cdrtools/BUILD
+++ b/cd/cdrtools/BUILD
@@ -1,12 +1,11 @@
-sedit "s:/bin/rm:rm:; s:/bin/mv:mv:" RULES/rules.prg
-
-# this will make it use its own headers
-# not the last linned kernel headers
-sedit "s?/usr/src/linux/include?/usr/include?g" DEFAULTS/Defaults.linux  &&
-
-smake INS_BASE=/usr DEFINSUSR=root DEFINSGRP=root &&
+if  `module_installed smake`; then
+  THISMAKE=smake
+else
+  THISMAKE=make
+fi  &&
+$THISMAKE INS_BASE=/usr DEFINSUSR=root DEFINSGRP=root &&
 prepare_install                        &&
-smake INS_BASE=/usr DEFINSUSR=root DEFINSGRP=root MANDIR=man install  &&
+$THISMAKE INS_BASE=/usr DEFINSUSR=root DEFINSGRP=root MANDIR=man install  &&
 
 # cdrkit compatibility:
 install -m755 cdda2wav/{pitchplay,readmult} /usr/bin  &&
--- a/cd/cdrtools/DEPENDS
+++ b/cd/cdrtools/DEPENDS
@@ -1,4 +1,4 @@
 depends acl
-depends smake
 
+optional_depends  "smake"  ""  ""  "for Schilly makefiles"
 optional_depends  "dirsplit" ""  ""  "for cdrkit compatibility and optimal file layout on discs"
--- a/cd/cdrtools/DETAILS
+++ b/cd/cdrtools/DETAILS
@@ -7,6 +7,7 @@
          ENTERED=20010922
          UPDATED=20130806
            SHORT="Creates home-burned CDs with a CD-R/CD-RW recorder"
+PSAFE=no
 
 cat << EOF
 cdrtools, formerly Cdrecord creates home-burned CDs with a CD-R/CD-RW
--- /dev/null
+++ b/cd/cdrtools/PRE_BUILD
@@ -0,0 +1,7 @@
+default_pre_build  &&
+
+sedit "s:/bin/rm:rm:; s:/bin/mv:mv:" RULES/rules.prg  &&
+
+# this will make it use its own headers
+# not the last linned kernel headers
+sedit "s?/usr/src/linux/include?/usr/include?g" DEFAULTS/Defaults.linux




More information about the Lunar-commits mailing list