Package: fte
Severity: important
Version: 0.50.0-1.4
Tags: patch

Hi,

the current version has unsatisfied Build-Depends on libgpmg1-dev
under non-linux ports.

This package can be easily modified to build fine on GNU/kFreeBSD
without libgpmg1-dev installed.

Please, find attached patch with that.

Thanks for your cooperation.

                                Petr
diff -urN fte-0.50.0.ORIG/debian/control fte-0.50.0/debian/control
--- fte-0.50.0.ORIG/debian/control      2006-06-05 06:32:01.000000000 +0200
+++ fte-0.50.0/debian/control   2006-07-25 18:14:32.000000000 +0200
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Zdenek Kabelac <[EMAIL PROTECTED]>
 Standards-Version: 3.1.1.1
-Build-Depends: debhelper, perl5, libx11-dev, libxt-dev, x-dev, libgpmg1-dev, 
libncurses5-dev, libslang2-dev, patch,
+Build-Depends: debhelper, perl5, libx11-dev, libxt-dev, x-dev, libgpmg1-dev 
[!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386], libncurses5-dev, libslang2-dev, 
patch
 
 Package: fte
 Architecture: any
@@ -48,7 +48,7 @@
  This is the X Window System edition, with internationalization support.
 
 Package: fte-console
-Architecture: any
+Architecture: i386 ia64 alpha amd64 armeb arm hppa m32r m68k mips mipsel 
powerpc ppc64 s390 s390x sh3 sh3eb sh4 sh4eb sparc
 Depends: ${shlibs:Depends}, fte (= ${Source-Version})
 Conflicts: suidmanager (<< 0.50)
 Description: Text editor for programmers - console edition, no I18N support
diff -urN fte-0.50.0.ORIG/debian/rules fte-0.50.0/debian/rules
--- fte-0.50.0.ORIG/debian/rules        2006-06-05 06:50:51.000000000 +0200
+++ fte-0.50.0/debian/rules     2006-07-25 18:23:21.000000000 +0200
@@ -28,6 +28,8 @@
 terminal=$(package)-terminal
 xwindow=$(package)-xwindow
 
+DEB_HOST_ARCH_OS = $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
+
 allpackages=\
        debian/tmp\
        debian/$(docs)\
@@ -37,7 +39,11 @@
 
 build:
        @dh_testdir
-       $(MAKE) -C src -j 2 -f fte-unix.mak
+ifeq (linux,$(DEB_HOST_ARCH_OS))
+       $(MAKE) -C src -f fte-unix.mak
+else
+       $(MAKE) -C src -f fte-unix.mak cfte xfte sfte nfte
+endif
        touch build
 
 cleanB:
@@ -69,7 +75,9 @@
        @cd config; ../src/cfte main.fte ../debian/tmp/etc/fte/system.fterc
 
        @tar cf debian/$(docs)/usr/share/doc/fte/config-example.tar config
+ifeq (linux,$(DEB_HOST_ARCH_OS))
        @$(INST) -s -m 4755 src/vfte debian/$(console)/usr/bin/
+endif
        @$(INST) -s src/sfte debian/$(terminal)/usr/bin/
        @$(INST) -s src/xfte debian/$(xwindow)/usr/bin/
        @$(INST) -m 755 debian/fte debian/tmp/usr/bin/fte
@@ -112,11 +120,11 @@
        dh_fixperms
 #obsoleted     dh_suidregister
        dh_shlibdeps
-       dh_gencontrol
-       dh_makeshlibs
-       dh_installdeb
-       dh_md5sums
-       dh_builddeb -v
+       dh_gencontrol -s
+       dh_makeshlibs =s
+       dh_installdeb -s
+       dh_md5sums -s
+       dh_builddeb -s -v
 
 #      dpkg-shlibdeps debian/tmp/usr/bin/xfte -drecommends 
debian/tmp/usr/bin/vfte debian/tmp/usr/bin/cfte
 #      @dpkg-gencontrol -pfte

Reply via email to