1#************************************************************************* 2# 3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4# 5# Copyright 2000, 2010 Oracle and/or its affiliates. 6# 7# OpenOffice.org - a multi-platform office productivity suite 8# 9# This file is part of OpenOffice.org. 10# 11# OpenOffice.org is free software: you can redistribute it and/or modify 12# it under the terms of the GNU Lesser General Public License version 3 13# only, as published by the Free Software Foundation. 14# 15# OpenOffice.org is distributed in the hope that it will be useful, 16# but WITHOUT ANY WARRANTY; without even the implied warranty of 17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18# GNU Lesser General Public License version 3 for more details 19# (a copy is included in the LICENSE file that accompanied this code). 20# 21# You should have received a copy of the GNU Lesser General Public License 22# version 3 along with OpenOffice.org. If not, see 23# <http://www.openoffice.org/license.html> 24# for a copy of the LGPLv3 License. 25# 26#************************************************************************* 27 28PRJ=.. 29PRJNAME=swext 30TARGET=mediawiki 31.IF "$(L10N_framework)"=="" 32.IF "$(ENABLE_MEDIAWIKI)" == "YES" 33.INCLUDE : ant.mk 34 35.IF "$(SYSTEM_APACHE_COMMONS)" != "YES" 36COMMONS_CODEC_JAR=$(SOLARVER)$/$(INPATH)$/bin$(UPDMINOREXT)$/commons-codec-1.3.jar 37COMMONS_LANG_JAR=$(SOLARVER)$/$(INPATH)$/bin$(UPDMINOREXT)$/commons-lang-2.3.jar 38COMMONS_HTTPCLIENT_JAR=$(SOLARVER)$/$(INPATH)$/bin$(UPDMINOREXT)$/commons-httpclient-3.1.jar 39COMMONS_LOGGING_JAR=$(SOLARVER)$/$(INPATH)$/bin$(UPDMINOREXT)$/commons-logging-1.1.1.jar 40.ELSE 41COMP=fix_system_commons 42.ENDIF 43 44.IF defined(debug) || defined(DEBUG) 45ANTDEBUG=true 46.ELSE 47ANTDEBUG=off 48.ENDIF 49 50ANT_FLAGS+=-Dcommons-codec-jar=$(COMMONS_CODEC_JAR) -Dcommons-lang-jar=$(COMMONS_LANG_JAR) -Dcommons-httpclient-jar=$(COMMONS_HTTPCLIENT_JAR) -Dcommons-logging-jar=$(COMMONS_LOGGING_JAR) -Dantdebug=$(ANTDEBUG) 51 52# creates two files wiki-publisher.oxt and mediawiki_develop.zip, the second one might be used in further build process 53ALLTAR: $(COMP) ANTBUILD 54 55fix_system_commons: 56 @echo "Fix Java Class-Path entry for Apache Commons libraries from system." 57 @$(SED) -r -e "s#(name=\"Class-Path\" value=\").*\"#\1file://$(COMMONS_CODEC_JAR) file://$(COMMONS_LANG_JAR) \ 58file://$(COMMONS_HTTPCLIENT_JAR) file://$(COMMONS_LOGGING_JAR)\"#" -i build.xml 59 @echo "Unbundle Apache Commons libraries from Mediawiki Presentation extension." 60 @$(SED) '/file="..commons/d' -i build.xml 61 62.ELSE 63@all: 64 @echo "MediaWiki Publisher extension disabled." 65.ENDIF 66 67.ELSE 68pesudo: 69.ENDIF 70