diff options
author | Hans-Joachim Lankenau <hjs@openoffice.org> | 2001-06-07 15:59:52 +0000 |
---|---|---|
committer | Hans-Joachim Lankenau <hjs@openoffice.org> | 2001-06-07 15:59:52 +0000 |
commit | 5adab97f622bfeb41cbbe83403f6730789ee4a52 (patch) | |
tree | d7837c4c4908f4e6b642f4dd61d0b861401086c5 | |
parent | db5abe015f3e73ab615d3478bae5c8045e8c52bf (diff) |
integrate build of external modules
-rw-r--r-- | solenv/inc/set_ext.mk | 72 | ||||
-rw-r--r-- | solenv/inc/tg_ext.mk | 139 |
2 files changed, 211 insertions, 0 deletions
diff --git a/solenv/inc/set_ext.mk b/solenv/inc/set_ext.mk new file mode 100644 index 000000000000..d9bf6bcfdbc7 --- /dev/null +++ b/solenv/inc/set_ext.mk @@ -0,0 +1,72 @@ +#************************************************************************* +# +# $RCSfile: set_ext.mk,v $ +# +# $Revision: 1.1 $ +# +# last change: $Author: hjs $ $Date: 2001-06-07 16:59:52 $ +# +# The Contents of this file are made available subject to the terms of +# either of the following licenses +# +# - GNU Lesser General Public License Version 2.1 +# - Sun Industry Standards Source License Version 1.1 +# +# Sun Microsystems Inc., October, 2000 +# +# GNU Lesser General Public License Version 2.1 +# ============================================= +# Copyright 2000 by Sun Microsystems, Inc. +# 901 San Antonio Road, Palo Alto, CA 94303, USA +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License version 2.1, as published by the Free Software Foundation. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, +# MA 02111-1307 USA +# +# +# Sun Industry Standards Source License Version 1.1 +# ================================================= +# The contents of this file are subject to the Sun Industry Standards +# Source License Version 1.1 (the "License"); You may not use this file +# except in compliance with the License. You may obtain a copy of the +# License at http://www.openoffice.org/license.html. +# +# Software provided under this License is provided on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, +# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, +# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. +# See the License for the specific provisions governing your rights and +# obligations concerning the Software. +# +# The Initial Developer of the Original Code is: Sun Microsystems, Inc. +# +# Copyright: 2000 by Sun Microsystems, Inc. +# +# All Rights Reserved. +# +# Contributor(s): _______________________________________ +# +# +# +#************************************************************************* + + + +#defaults +TARFILE_ROOTDIR*=$(TARFILE_NAME) +UNTAR_FLAG_FILE*=so_unpacked +PATCH_FLAG_FILE*=so_patched +CONFIGURE_FLAG_FILE*=so_configured +BUILD_FLAG_FILE*=so_built +PREDELIVER_FLAG_FILE*=so_predeliver + diff --git a/solenv/inc/tg_ext.mk b/solenv/inc/tg_ext.mk new file mode 100644 index 000000000000..5edc8d02e6f9 --- /dev/null +++ b/solenv/inc/tg_ext.mk @@ -0,0 +1,139 @@ +#************************************************************************* +# +# $RCSfile: tg_ext.mk,v $ +# +# $Revision: 1.1 $ +# +# last change: $Author: hjs $ $Date: 2001-06-07 16:59:52 $ +# +# The Contents of this file are made available subject to the terms of +# either of the following licenses +# +# - GNU Lesser General Public License Version 2.1 +# - Sun Industry Standards Source License Version 1.1 +# +# Sun Microsystems Inc., October, 2000 +# +# GNU Lesser General Public License Version 2.1 +# ============================================= +# Copyright 2000 by Sun Microsystems, Inc. +# 901 San Antonio Road, Palo Alto, CA 94303, USA +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License version 2.1, as published by the Free Software Foundation. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, +# MA 02111-1307 USA +# +# +# Sun Industry Standards Source License Version 1.1 +# ================================================= +# The contents of this file are subject to the Sun Industry Standards +# Source License Version 1.1 (the "License"); You may not use this file +# except in compliance with the License. You may obtain a copy of the +# License at http://www.openoffice.org/license.html. +# +# Software provided under this License is provided on an "AS IS" basis, +# WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, +# WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS, +# MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING. +# See the License for the specific provisions governing your rights and +# obligations concerning the Software. +# +# The Initial Developer of the Original Code is: Sun Microsystems, Inc. +# +# Copyright: 2000 by Sun Microsystems, Inc. +# +# All Rights Reserved. +# +# Contributor(s): _______________________________________ +# +# +# +#************************************************************************* + +#override +PACKAGE_DIR=build$/$(ROUT) +P_CONFIGURE_DIR=$(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)$/$(CONFIGURE_DIR) +P_BUILD_DIR=$(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)$/$(BUILD_DIR) + + +ALLTAR : \ + $(PACKAGE_DIR)$/$(UNTAR_FLAG_FILE) \ + $(PACKAGE_DIR)$/$(BUILD_FLAG_FILE) \ + $(PACKAGE_DIR)$/$(CONFIGURE_FLAG_FILE) \ + $(PACKAGE_DIR)$/$(PATCH_FLAG_FILE) \ + $(PACKAGE_DIR)$/$(PREDELIVER_FLAG_FILE) + +clean: + +cd $(P_BUILD_DIR) && $(BUILD_ACTION) $(BUILD_FLAGS) clean + +$(RM) $(PACKAGE_DIR)$/$(BUILD_FLAG_FILE) + + +$(MISC)$/%.tar : $(PRJ)$/download$/%.tar.gz + +-$(RM) $@ + +gunzip -c $< > $@ + +$(MISC)$/%.tar : $(PRJ)$/download$/%.tar + +-$(RM) $@ + +$(COPY) $< $@ + +#unntar +$(PACKAGE_DIR)$/$(UNTAR_FLAG_FILE) : $(MISC)$/$(TARFILE_NAME).tar + +-$(MKDIR) $(PACKAGE_DIR:d) + +-$(MKDIR) $(PACKAGE_DIR) +# see tg_zip.mk + +cd $(PACKAGE_DIR) && tar -xvf ../../$(ROUT)$/misc$/$(TARFILE_NAME).tar && $(TOUCH) $(UNTAR_FLAG_FILE) +.IF "$(GUI)"=="WNT" + +cd $(PACKAGE_DIR) && attrib /s -r && $(TOUCH) $(UNTAR_FLAG_FILE) +.ELSE # "$(GUI)"=="WNT" + +cd $(PACKAGE_DIR) && chmod -R +w * && $(TOUCH) $(UNTAR_FLAG_FILE) +.ENDIF # "$(GUI)"=="WNT" + +#patch +$(PACKAGE_DIR)$/$(PATCH_FLAG_FILE) : $(PACKAGE_DIR)$/$(UNTAR_FLAG_FILE) +.IF "$(PATCH_FILE_NAME)"=="none" || "$(PATCH_FILE_NAME)"=="" + +cd $(PACKAGE_DIR) && echo patch not yet implemented! && $(TOUCH) $(PATCH_FLAG_FILE) +.ELSE # "$(PATCH_FILE_NAME)"=="none" || "$(PATCH_FILE_NAME)"=="" + +cd $(PACKAGE_DIR) && +echo no patch needed... +.ENDIF # "$(PATCH_FILE_NAME)"=="none" || "$(PATCH_FILE_NAME)"=="" + +$(PACKAGE_DIR)$/$(CONFIGURE_FLAG_FILE) : $(PACKAGE_DIR)$/$(PATCH_FLAG_FILE) +.IF "$(CONFIGURE_ACTION)" == "none" || "$(CONFIGURE_ACTION)"=="" + +$(TOUCH) $(PACKAGE_DIR)$/$(CONFIGURE_FLAG_FILE) +.ELSE # "$(CONFIGURE_ACTION)"=="none" || "$(CONFIGURE_ACTION)"=="" + +-$(MKDIR) $(P_CONFIGURE_DIR) + +cd $(P_CONFIGURE_DIR) && $(CONFIGURE_ACTION) $(CONFIGURE_FLAGS) && $(TOUCH) $(CONFIGURE_FLAG_FILE) + +mv $(P_CONFIGURE_DIR)$/$(CONFIGURE_FLAG_FILE) $(PACKAGE_DIR)$/$(CONFIGURE_FLAG_FILE) +.ENDIF # "$(CONFIGURE_ACTION)"=="none" || "$(CONFIGURE_ACTION)"=="" + + +$(PACKAGE_DIR)$/$(BUILD_FLAG_FILE) : $(PACKAGE_DIR)$/$(CONFIGURE_FLAG_FILE) +.IF "$(BUILD_ACTION)"=="none" || "$(BUILD_ACTION)"=="" + +$(TOUCH) $(PACKAGE_DIR)$/$(BUILD_FLAG_FILE) +.ELSE # "$(BUILD_ACTION)"=="none" || "$(BUILD_ACTION)"=="" + +-$(MKDIR) $(P_BUILD_DIR) + +cd $(P_BUILD_DIR) && $(BUILD_ACTION) $(BUILD_FLAGS) && $(TOUCH) $(BUILD_FLAG_FILE) + +mv $(P_BUILD_DIR)$/$(BUILD_FLAG_FILE) $(PACKAGE_DIR)$/$(BUILD_FLAG_FILE) +.ENDIF # "$(BUILD_ACTION)"=="none" || "$(BUILD_ACTION)"=="" + +$(PACKAGE_DIR)$/$(PREDELIVER_FLAG_FILE) : $(PACKAGE_DIR)$/$(BUILD_FLAG_FILE) +.IF "$(OUT2LIB)"!="" + $(GNUCOPY) $(foreach,i,$(OUT2LIB) $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)$/$i) $(LB) +.ENDIF # "$(OUT2LIB)"!="" +.IF "$(OUT2INC)"!="" + $(GNUCOPY) $(foreach,i,$(OUT2INC) $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)$/$i) $(INCCOM) +.ENDIF # "$(OUT2INC)"!="" +.IF "$(OUT2BIN)"!="" + $(GNUCOPY) $(foreach,i,$(OUT2BIN) $(PACKAGE_DIR)$/$(TARFILE_ROOTDIR)$/$i) $(BIN) +.ENDIF # "$(OUT2BIN)"!="" + +$(TOUCH) $(PACKAGE_DIR)$/$(PREDELIVER_FLAG_FILE) + |