1*3e9d7d56SAndre Fischer#/************************************************************** 2*3e9d7d56SAndre Fischer# * 3*3e9d7d56SAndre Fischer# * Licensed to the Apache Software Foundation (ASF) under one 4*3e9d7d56SAndre Fischer# * or more contributor license agreements. See the NOTICE file 5*3e9d7d56SAndre Fischer# * distributed with this work for additional information 6*3e9d7d56SAndre Fischer# * regarding copyright ownership. The ASF licenses this file 7*3e9d7d56SAndre Fischer# * to you under the Apache License, Version 2.0 (the 8*3e9d7d56SAndre Fischer# * "License"); you may not use this file except in compliance 9*3e9d7d56SAndre Fischer# * with the License. You may obtain a copy of the License at 10*3e9d7d56SAndre Fischer# * 11*3e9d7d56SAndre Fischer# * http://www.apache.org/licenses/LICENSE-2.0 12*3e9d7d56SAndre Fischer# * 13*3e9d7d56SAndre Fischer# * Unless required by applicable law or agreed to in writing, 14*3e9d7d56SAndre Fischer# * software distributed under the License is distributed on an 15*3e9d7d56SAndre Fischer# * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*3e9d7d56SAndre Fischer# * KIND, either express or implied. See the License for the 17*3e9d7d56SAndre Fischer# * specific language governing permissions and limitations 18*3e9d7d56SAndre Fischer# * under the License. 19*3e9d7d56SAndre Fischer# * 20*3e9d7d56SAndre Fischer# *************************************************************/ 21*3e9d7d56SAndre Fischer 22*3e9d7d56SAndre FischerPRJ=. 23*3e9d7d56SAndre Fischer 24*3e9d7d56SAndre FischerPRJNAME=apr-util 25*3e9d7d56SAndre FischerTARGET=aprutil 26*3e9d7d56SAndre Fischer 27*3e9d7d56SAndre Fischer# --- Settings ----------------------------------------------------- 28*3e9d7d56SAndre Fischer 29*3e9d7d56SAndre Fischer.INCLUDE : settings.mk 30*3e9d7d56SAndre Fischer 31*3e9d7d56SAndre Fischer# --- Files -------------------------------------------------------- 32*3e9d7d56SAndre Fischer 33*3e9d7d56SAndre FischerAPRVERSION=1.4.1 34*3e9d7d56SAndre Fischer 35*3e9d7d56SAndre FischerTARFILE_NAME=$(PRJNAME)-$(APRVERSION) 36*3e9d7d56SAndre FischerTARFILE_MD5=666a5d56098a9debf998510e304c8095 37*3e9d7d56SAndre Fischer 38*3e9d7d56SAndre Fischer.IF "$(OS)"=="WNT" 39*3e9d7d56SAndre Fischer 40*3e9d7d56SAndre FischerADDITIONAL_FILES=Makefile Module_apr-util.mk Library_apr-util.mk Package_inc.mk 41*3e9d7d56SAndre Fischer 42*3e9d7d56SAndre FischerPATCH_FILES= \ 43*3e9d7d56SAndre Fischer $(TARFILE_NAME).apu.hw.patch \ 44*3e9d7d56SAndre Fischer $(TARFILE_NAME).makewin32.patch 45*3e9d7d56SAndre Fischer 46*3e9d7d56SAndre FischerCONFIGURE_DIR= 47*3e9d7d56SAndre FischerCONFIGURE_ACTION=cp include/apu.hw include/apu.h; \ 48*3e9d7d56SAndre Fischer cp include/apr_ldap.hw include/apr_ldap.h; \ 49*3e9d7d56SAndre Fischer cp include/private/apu_config.hw include/private/apu_config.h; \ 50*3e9d7d56SAndre Fischer cp include/private/apu_select_dbm.hw include/private/apu_select_dbm.h 51*3e9d7d56SAndre FischerCONFIGURE_FLAGS= 52*3e9d7d56SAndre Fischer 53*3e9d7d56SAndre FischerBUILD_DIR=$(CONFIGURE_DIR) 54*3e9d7d56SAndre FischerBUILD_ACTION=$(GNUMAKE) 55*3e9d7d56SAndre FischerBUILD_FLAGS+= -j$(EXTMAXPROCESS) 56*3e9d7d56SAndre Fischer 57*3e9d7d56SAndre Fischer.ELSE 58*3e9d7d56SAndre Fischer 59*3e9d7d56SAndre FischerCONFIGURE_DIR= 60*3e9d7d56SAndre FischerCONFIGURE_ACTION=.$/configure 61*3e9d7d56SAndre FischerCONFIGURE_FLAGS= \ 62*3e9d7d56SAndre Fischer --with-apr=$(OUTDIR)/bin/apr-1-config \ 63*3e9d7d56SAndre Fischer --prefix=$(OUTDIR) \ 64*3e9d7d56SAndre Fischer --includedir=$(OUTDIR)$/inc$/apr-util \ 65*3e9d7d56SAndre Fischer --with-iconv="no" 66*3e9d7d56SAndre Fischer 67*3e9d7d56SAndre FischerBUILD_DIR=$(CONFIGURE_DIR) 68*3e9d7d56SAndre FischerBUILD_ACTION=$(GNUMAKE) 69*3e9d7d56SAndre FischerBUILD_FLAGS+= -j$(EXTMAXPROCESS) 70*3e9d7d56SAndre Fischer 71*3e9d7d56SAndre Fischer# Make apu-1-config believe that apr-util has been installed. 72*3e9d7d56SAndre FischerINSTALL_ACTION=if [ -f apu-1-config.orig ]; then mv -f apu-1-config.orig apu-1-config; fi; \ 73*3e9d7d56SAndre Fischer cp apu-1-config apu-1-config.orig; \ 74*3e9d7d56SAndre Fischer sed -e "s/^location=source/location=installed/;s/^\(installbuilddir=.*\)\/.*/\\1\/lib\/apr-util\"/" apu-1-config > apu-1-config.installed; \ 75*3e9d7d56SAndre Fischer mv -f apu-1-config.installed apu-1-config; \ 76*3e9d7d56SAndre Fischer chmod +x apu-1-config 77*3e9d7d56SAndre Fischer 78*3e9d7d56SAndre FischerOUT2INC+=include$/apr*.h 79*3e9d7d56SAndre FischerOUT2INC+=include$/apu.h 80*3e9d7d56SAndre FischerOUT2INC_SUBDIR=apr-util 81*3e9d7d56SAndre Fischer 82*3e9d7d56SAndre Fischer.IF "$(OS)"=="MACOSX" 83*3e9d7d56SAndre FischerOUT2LIB+=.libs/libaprutil-1.*dylib 84*3e9d7d56SAndre Fischer.ELSE 85*3e9d7d56SAndre FischerOUT2LIB=.libs/libaprutil-1.so* 86*3e9d7d56SAndre Fischer.ENDIF 87*3e9d7d56SAndre FischerOUT2BIN=apu-1-config 88*3e9d7d56SAndre Fischer 89*3e9d7d56SAndre Fischer.ENDIF 90*3e9d7d56SAndre Fischer 91*3e9d7d56SAndre Fischer# --- Targets ------------------------------------------------------ 92*3e9d7d56SAndre Fischer 93*3e9d7d56SAndre Fischer.INCLUDE : set_ext.mk 94*3e9d7d56SAndre Fischer.INCLUDE : target.mk 95*3e9d7d56SAndre Fischer.INCLUDE : tg_ext.mk 96*3e9d7d56SAndre Fischer 97