1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
#!/usr/bin/make -f
# override misc optimization flags which are enabled in configure.ac
# XXX (LM) I was told sparc32 isn't so hot these days; ultrasparc might be ok
# a) (all arches) this CPU override might not be needed for x86, as $host is
# used which should imply i486, but is probably needed for sparc as Debian's
# sparc port supports sun4m which is older than ultrasparc and this is
# safest anyway; -march should be used instead of -mcpu, but as upstream
# uses -mcpu, this is safest
# XXX -mcpu=base not supported despite gcc(1) claiming so
#CFLAGS += -mcpu=base
ifeq ($(DEB_HOST_ARCH),sparc)
OPT_CFLAGS=-mcpu=v7
endif
ifeq ($(DEB_HOST_ARCH),powerpc)
# b) (powerpc) G3s and other OldWorld systems are still supported and don't
# have altivec
OPT_CFLAGS=-mno-altivec -UARCH_PPC
endif
ifeq ($(DEB_HOST_ARCH),sparc)
# c) (sparc) Debian's sparc port supports sun4m which is older than ultrasparc;
# VIS is an UltraSPARC extension
OPT_CFLAGS=-mno-vis
endif
export DEB_CFLAGS_MAINT_APPEND=$(OPT_CFLAGS)
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- --enable-shared
override_dh_makeshlibs:
dh_makeshlibs -V 'libmpeg2-4 (>= 0.5.1)'
|