Changeset 933 in ProjectBuilder for devel/pb/lib
- Timestamp:
- Dec 5, 2009, 6:32:59 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
devel/pb/lib/ProjectBuilder/Env.pm
r916 r933 68 68 69 69 if (! -f $ENV{'PBETC'}) { 70 pb_log(0, "No existing $ENV{'PBETC'} found, creating one as template ");70 pb_log(0, "No existing $ENV{'PBETC'} found, creating one as template\n"); 71 71 open(PBRC, "> $ENV{'PBETC'}") || die "Unable to create $ENV{'PBETC'}"; 72 72 print PBRC << "EOF"; … … 221 221 if ($action =~ /^newproj$/) { 222 222 if (! -d "$ENV{'PBDEFDIR'}/$ENV{'PBPROJ'}") { 223 # TODO: There is also the need to do 224 # svn import "$ENV{'PBDEFDIR'}/$ENV{'PBPROJ'}" svn://repo 225 # in case it doesn't exist there 223 226 pb_mkdir_p("$ENV{'PBDEFDIR'}/$ENV{'PBPROJ'}") || die "Unable to recursively create $ENV{'PBDEFDIR'}/$ENV{'PBPROJ'}"; 224 227 } … … 309 312 310 313 # List of pkg to build by default (mandatory) 314 # TODO: projtag could be with a 1 default value 311 315 my ($defpkgdir,$pbpackager, $pkgv, $pkgt) = pb_conf_get("defpkgdir","pbpackager","projver","projtag"); 312 316 # List of additional pkg to build when all is called (optional) … … 558 562 559 563 # PBDESC contains the description of the package 560 #filter PBDESC = "Bla-Bla"564 #filter PBDESC = Bla-Bla 561 565 562 566 # PBSUMMARY contains a short single line description of the package 563 #filter PBSUMMARY = "Bla"567 #filter PBSUMMARY = Bla 564 568 565 569 # PBURL contains the URL of the Web site of the project … … 785 789 open(CONF,"> $ENV{'PBROOTDIR'}/$pp/deb/compat") || die "Unable to create $ENV{'PBROOTDIR'}/$pp/deb/compat"; 786 790 print CONF << "EOF"; 787 DBDEBCOMP791 PBDEBCOMP 788 792 EOF 789 793 close(CONF); … … 825 829 826 830 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) 827 831 CFLAGS += -O0 828 832 else 829 833 CFLAGS += -O2 830 834 endif 831 835 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) 832 836 INSTALL_PROGRAM += -s 833 837 endif 834 838 config.status: configure 835 836 837 838 839 dh_testdir 840 841 # Configure the package. 842 CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr 839 843 --mandir=\$${prefix}/share/man 840 844 … … 846 850 847 851 build-arch-stamp: config.status 848 849 850 851 852 853 852 dh_testdir 853 854 # Compile the package. 855 $(MAKE) 856 857 touch build-stamp 854 858 855 859 # Build architecture independent … … 857 861 858 862 build-indep-stamp: config.status 859 860 863 # Nothing to do, the only indep item is the manual which is available as html in original source 864 touch build-indep-stamp 861 865 862 866 # Clean up 863 867 clean: 864 865 866 867 868 869 870 871 868 dh_testdir 869 dh_testroot 870 rm -f build-arch-stamp build-indep-stamp #CONFIGURE-STAMP# 871 # Clean temporary document directory 872 rm -rf debian/doc-temp 873 # Clean up. 874 -$(MAKE) distclean 875 rm -f config.log 872 876 ifneq "$(wildcard /usr/share/misc/config.sub)" "" 873 877 cp -f /usr/share/misc/config.sub config.sub 874 878 endif 875 879 ifneq "$(wildcard /usr/share/misc/config.guess)" "" 876 880 cp -f /usr/share/misc/config.guess config.guess 877 881 endif 878 882 879 883 dh_clean 880 884 881 885 # Install architecture dependent and independent … … 884 888 # Install architecture dependent 885 889 install-arch: build-arch 886 dh_testdir 887 dh_testroot 888 dh_clean -k -s 889 dh_installdirs -s 890 891 # Install the package files into build directory: 892 # - start with upstream make install 893 $(MAKE) install prefix=$(CURDIR)/debian/$(PACKAGE_NAME)/usr mandir=$(CURDIR)/debian/$(PACKAGE_NAME)/us 894 r/share/man 895 # - copy html manual to temporary location for renaming 896 mkdir -p debian/doc-temp 897 dh_install -s 890 dh_testdir 891 dh_testroot 892 dh_clean -k -s 893 dh_installdirs -s 894 895 # Install the package files into build directory: 896 # - start with upstream make install 897 $(MAKE) install prefix=$(CURDIR)/debian/$(PACKAGE_NAME)/usr mandir=$(CURDIR)/debian/$(PACKAGE_NAME)/usr/share/man 898 # - copy html manual to temporary location for renaming 899 mkdir -p debian/doc-temp 900 dh_install -s 898 901 899 902 # Install architecture independent 900 903 install-indep: build-indep 901 902 903 904 905 904 dh_testdir 905 dh_testroot 906 dh_clean -k -i 907 dh_installdirs -i 908 dh_install -i 906 909 907 910 # Must not depend on anything. This is to be called by … … 909 912 # in another 'make' thread. 910 913 binary-common: 911 912 913 914 915 916 917 918 919 920 921 922 923 924 914 dh_testdir 915 dh_testroot 916 dh_installchangelogs ChangeLog 917 dh_installdocs 918 dh_installman 919 dh_link 920 dh_strip 921 dh_compress 922 dh_fixperms 923 dh_installdeb 924 dh_shlibdeps 925 dh_gencontrol 926 dh_md5sums 927 dh_builddeb 925 928 926 929 # Build architecture independant packages using the common target. 927 930 binary-indep: build-indep install-indep 928 931 $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common 929 932 930 933 # Build architecture dependant packages using the common target. 931 934 binary-arch: build-arch install-arch 932 935 $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common 933 936 934 937 # Build architecture depdendent and independent packages
Note:
See TracChangeset
for help on using the changeset viewer.