Reply
Thread Tools
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#1
The new packages from upstream are created in a very neat manner, having arch-independent and dependent sections separated. Unfortunately, the Maemo SDK doesn't cope well with it.

In the i386 target binary-arch is called first, in armel - binary-indep. There's a quick-and-dirty hack to work this around in debian/rules

Code:
# at the beginning
ifeq ($(shell dpkg --print-architecture),armel)
  ARCH := armel
else
  ARCH := i386
endif
#some code later on

binary-indep: #targets
#some code here
    if [$ARCH == i386]; then maemo-optify; fi
#more code here

binary-arch: #targets
#some code here
    if [$ARCH == armel]; then maemo-optify; fi
#more code here
Voilá!
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 

The Following User Says Thank You to marmistrz For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 23:03.