summaryrefslogtreecommitdiffstats
path: root/pkg/linux/module.rules
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-06-19 18:55:00 +0000
committerjstebbins <[email protected]>2009-06-19 18:55:00 +0000
commit7bfba0916df5e296d04ef43f42b05b0f2d66d8ca (patch)
treeccf33a1f5c0ca2d9976467c889bc386a9b19d280 /pkg/linux/module.rules
parent17bd4de6ba10409ff2a218c3365aa8466c5457c2 (diff)
LinGui: add Debian packaging support
- make pkg.clean will create debian packages. - Creates separate packages for gui and cli git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2577 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'pkg/linux/module.rules')
-rw-r--r--pkg/linux/module.rules15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkg/linux/module.rules b/pkg/linux/module.rules
new file mode 100644
index 000000000..60a4cdf52
--- /dev/null
+++ b/pkg/linux/module.rules
@@ -0,0 +1,15 @@
+pkg.create:: $(PKG.cli.deb) $(PKG.gui.deb)
+
+
+$(PKG.cli.deb): | $(dir $(PKG.cli.deb))
+$(PKG.gui.deb) $(PKG.cli.deb):
+ -rm $(BUILD/)debian
+ ln -s $(PKG.debian) $(BUILD/)debian
+ fakeroot $(MAKE) -f debian/rules clean
+ $(MAKE) BUILDDIR=$(BUILD) CONFIGURE=$(SRC/)configure -f debian/rules build
+ echo $(PKG.out/)
+ fakeroot $(MAKE) FORCEVERSION="-- -v$(HB.version)" BUILDDIR=$(BUILD) CONFIGURE=$(SRC/)configure PKGDESTDIR=$(PKG.out/) -f debian/rules binary
+
+ $(MV.exe) $(PKG.cli.tmp.deb) $(PKG.cli.deb)
+ $(MV.exe) $(PKG.gui.tmp.deb) $(PKG.gui.deb)
+