~openoffice-pkgs/openoffice/3.2.0-lucid

« back to all changes in this revision

Viewing changes to rules

  • Committer: Chris Cheney
  • Date: 2010-04-14 17:25:28 UTC
  • mfrom: (1022.17.301 debian)
  • Revision ID: ccheney@ubuntu.com-20100414172528-dcbj8kh8x7ynwa3g
Debian merge:

openoffice.org (1:3.2.0-7) unstable; urgency=low

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
#TAG=$(shell echo $(MWS) | tr A-Z a-z)-$(MILESTONE)
76
76
TAG=$(MWS)_$(MILESTONE)
77
77
OOO_BUILD_BRANCH=ooo-build-3-2
78
 
OOO_BUILD_VERSION=3.2.0.9
 
78
OOO_BUILD_VERSION=3.2.0.10
79
79
OOO_BUILD_TAG=OOO_BUILD_$(shell echo $(OOO_BUILD_VERSION) | sed -e 's/\./_/g')
80
80
OOO_BUILD_TREE=ooo-build-$(shell echo $(OOO_BUILD_VERSION) | sed -e 's/\./-/g')
81
81
SOURCE_TREE=$(OOO_BUILD_TREE)/build/$(TAG)
486
486
OOO_ARCHS= i386 m68k mips mipsel powerpc s390
487
487
ifeq "$(BUILD_ALPHA)" "y"
488
488
  OOO_ARCHS += alpha
 
489
  OOO_64BIT_ARCHS += alpha
489
490
endif
490
491
ifeq "$(BUILD_AMD64)" "y"
491
492
  OOO_ARCHS += amd64
 
493
  OOO_64BIT_ARCHS += amd64
492
494
endif
493
495
ifeq "$(BUILD_ARMEL)" "y"
494
496
  OOO_ARCHS += armel
498
500
endif
499
501
ifeq "$(BUILD_IA64)" "y"
500
502
  OOO_ARCHS += ia64
 
503
  OOO_64BIT_ARCHS += ia64
501
504
endif
502
505
ifeq "$(BUILD_PPC64)" "y"
503
506
  OOO_ARCHS += ppc64
 
507
  OOO_64BIT_ARCHS += ppc64
504
508
endif
505
509
ifeq "$(BUILD_S390X)" "y"
506
510
  OOO_ARCHS += s390x
 
511
  OOO_64BIT_ARCHS += s390x
507
512
endif
508
513
ifeq "$(BUILD_SPARC)" "y"
509
514
  OOO_ARCHS += sparc
542
547
OOO_GCJ_JDK_ARCHS := hppa ia64 kfreebsd-i386 kfreebsd-amd64 mips mipsel
543
548
OOO_OPENJDK_ARCHS := $(filter-out $(OOO_GCJ_JDK_ARCHS),$(OOO_JAVA_ARCHS))
544
549
 
 
550
OOO_ARCH_DEP_EXTENSIONS_ARCHS := $(filter-out armel,$(OOO_ARCHS))
 
551
 
545
552
ifeq (,$(findstring $(ARCH),$(OOO_JAVA_ARCHS)))
546
553
        ENABLE_JAVA=n
547
554
        ENABLE_REPORTDESIGN=n
576
583
endif
577
584
 
578
585
ifeq "$(PACKAGE_NPSOPLUGIN)" "y"
579
 
OOO_NPSOPLUGIN_ARCHS = $(OOO_MOZILLA_ARCHS)
 
586
OOO_NPSOPLUGIN_ARCHS = $(OOO_ARCHS)
580
587
else
581
588
OOO_NPSOPLUGIN_ARCHS=
582
589
endif
583
590
 
584
 
OOO_BINFILTER_ARCHS=$(OOO_ARCHS)
585
 
# builds long...
586
591
ifeq "$(DIST)" "Debian"
587
 
  ifneq (,$(findstring arm,$(ARCH)))
588
 
        BUILD_BINFILTERS=n
589
 
  endif
590
 
  OOO_BINFILTER_ARCHS=$(filter-out arm armel,$(OOO_ARCHS))
 
592
# builds long and is for legacy filters. probably not needed on {arm,mips}{,el}
 
593
ifneq (,$(findstring arm,$(ARCH)))
 
594
        BUILD_BINFILTERS=n
 
595
endif
 
596
ifneq (,$(findstring mips,$(ARCH)))
 
597
        BUILD_BINFILTERS=n
 
598
endif
 
599
OOO_BINFILTER_ARCHS=$(filter-out arm,$(filter-out armel,$(OOO_ARCHS)))
 
600
OOO_BINFILTER_ARCHS=$(filter-out mips,$(filter-out mipsel,$(OOO_ARCHS)))
591
601
endif
592
602
 
593
603
ifeq "$(ARCH)-linux-gnu" "sparc-linux-gnu"
606
616
  endif
607
617
endif
608
618
 
 
619
# Note that this does *NOT* only affect the mozilla plugin but also
 
620
# stuff like the xmlsecurity (which uses nss). For the plugin only,
 
621
# change the OOO_NPSOPLUGIN_ARCHS
609
622
OOO_MOZILLA_ARCHS=i386 mips mipsel powerpc s390
610
623
ifeq "$(BUILD_ALPHA)" "y"
611
624
        OOO_MOZILLA_ARCHS += alpha
1186
1199
  endif
1187
1200
  ifeq "$(USE_SYSTEM_MYSQLCPPCONN)" "y"
1188
1201
        CONFIGURE_FLAGS += --with-system-mysql-cppconn
1189
 
        BUILD_DEPS += , libmysqlcppconn-dev $(MYSQLCPPCONN_MINVER) [$(OOO_ARCHS))]
 
1202
        BUILD_DEPS += , libmysqlcppconn-dev $(MYSQLCPPCONN_MINVER) [$(OOO_ARCHS)]
1190
1203
    ifeq "$(USE_STLPORT)" "y"
1191
1204
        ADDITIONAL_SECTIONS += SystemMySQLWithSTLport
1192
1205
    endif
1888
1901
        sed -e "s|openoffice.orgVER|openoffice.org$(VER)|g" \
1889
1902
                >> debian/control < debian/control.mysql.in
1890
1903
endif
 
1904
ifeq "$(DIST)" "Debian"
 
1905
        sed -e "s|openoffice.orgVER|openoffice.org$(VER)|g" \
 
1906
                >> debian/control < debian/control.lenny_squeeze_transitional.in
 
1907
        for o in as-IN gu-IN ml-IN mr-IN or-IN ta-IN te-IN; do \
 
1908
                n=`echo $$o | cut -d- -f1`; \
 
1909
                os=`echo $$o | tr A-Z a-z`; \
 
1910
                perl -pi -e 's/\n/, openoffice.org-l10n-$${os}\n/ if /^Replaces:.*l10n-$${n}$$/' debian/control; \
 
1911
        done
 
1912
endif
1891
1913
endif
1892
1914
 
1893
1915
        perl -pi -e "s,%OOO_ARCHS%,$(OOO_ARCHS),g" debian/control
1898
1920
        perl -pi -e "s,%OOO_OGLTRANS_ARCHS%,$(OOO_OGLTRANS_ARCHS),g" debian/control
1899
1921
        perl -pi -e "s,%OOO_BINFILTER_ARCHS%,$(OOO_BINFILTER_ARCHS),g" debian/control
1900
1922
        perl -pi -e "s,%OOO_GCJ_JDK_ARCHS%,$(OOO_GCJ_JDK_ARCHS),g" debian/control
 
1923
        perl -pi -e "s,%OOO_ARCH_DEP_EXTENSIONS_ARCHS%,$(OOO_ARCH_DEP_EXTENSIONS_ARCHS),g" debian/control
1901
1924
 
1902
1925
ifeq (he,$(findstring he,$(LANGPACKISOS)))
1903
1926
        perl -pi -e 's/openoffice.org-help-he$$/openoffice.org-help-he, openoffice.org-ctl-he/' debian/control
1951
1974
        perl -pi -e 's/^Breaks:.*myspell.*\n//' debian/control
1952
1975
endif
1953
1976
 
1954
 
        # add conflicts/replaces/provides for xx-IN -> xx move
1955
 
        for o in as-IN gu-IN ml-IN mr-IN or-IN ta-IN te-IN; do \
1956
 
                n=`echo $$o | cut -d- -f1`; \
1957
 
                os=`echo $$o | tr A-Z a-z`; \
1958
 
                perl -pi -e "s/(Provides:.*openoffice.org2-l10n-$$n$$)/\1, openoffice.org-l10n-$$os/" debian/control; \
1959
 
                perl -pi -e "s/(Conflicts:.*openoffice.org2-l10n-$$n$$)/\1, openoffice.org-l10n-$$os/" debian/control; \
1960
 
                perl -pi -e "s/(Replaces:.*openoffice.org2-l10n-$$n$$)/\1, openoffice.org-l10n-$$os/" debian/control; \
1961
 
        done
1962
 
 
1963
1977
.DELETE_ON_ERROR: debian/control
1964
1978
 
1965
1979
pre-build:
2711
2725
        done
2712
2726
        mv $(PKGDIR)-core/$(OOBRANDDIR)/program/libnpsoplugin.so debian/mozilla-openoffice.org$(VER)/$(OOBRANDDIR)/program
2713
2727
        cd debian/mozilla-openoffice.org$(VER) && \
2714
 
                for b in iceape iceweasel mozilla mozilla-firefox firefox; do \
2715
 
                        mkdir -p usr/lib/$$b/plugins && \
2716
 
                                ln -sf /$(OOBRANDDIR)/program/libnpsoplugin.so \
2717
 
                                   usr/lib/$$b/plugins/libnpsoplugin.so; \
2718
 
                done
 
2728
                mkdir -p usr/lib/mozilla/plugins && \
 
2729
                        ln -sf /$(OOBRANDDIR)/program/libnpsoplugin.so \
 
2730
                           usr/lib/mozilla/plugins/libnpsoplugin.so
2719
2731
else
2720
2732
        rm -f $(PKGDIR)-core/$(OODIR)/program/libnpsoplugin.so
2721
2733
        rm -f $(PKGDIR)-core/$(OODIR)/program/nsplugin
3889
3901
        mv $$TMP debian/uno-libs3/DEBIAN/symbols && \
3890
3902
        chmod 644 debian/uno-libs3/DEBIAN/symbols
3891
3903
        dh_installdeb -s
3892
 
        cp debian/shlibs.local.in debian/shlibs.local
3893
3904
ifeq "$(USE_SYSTEM_ICU)" "n"
3894
3905
        cat debian/shlibs.override.icu >> debian/shlibs.local
3895
3906
endif
 
3907
ifeq "$(BUILD_KDE)" "y"
 
3908
  ifeq "$(KDE_VER)" "4"
 
3909
        if dpkg --compare-versions `dpkg -l kdelibs5-dev | grep ^ii | awk '{ print $$3 }'` le 4:4.4; then \
 
3910
                cat debian/shlibs.override.kde >> debian/shlibs.local; \
 
3911
        fi
 
3912
  endif
 
3913
endif
3896
3914
ifeq "$(INTERNAL_STDLIBS)" "y"
3897
3915
        cat debian/shlibs.override.stdlibs >> debian/shlibs.local
3898
3916
endif