On Jul 14, 2005, at 07:30 AM, Jerry wrote: Hi,On 14 Jul 2005, at 11:46, D. Walsh wrote: Thanks !!!!
Is there a way to combine those statements into one line???
would:
NEXT_ROOT=/Developer/SDKs/MacOSX10.3.9.sdk C_INCLUDE_PATH=/Developer/SDKs/MacOSX10.3.9.sdk/usr/include export NEXT_ROOT C_INCLUDE_PATH ./configure $(COMMON_CONFIG)
be valid???
or do I need to do something else?
I think
export NEXT_ROOT=/Developer/SDKs/MacOSX10.3.9.sdk C_INCLUDE_PATH=/Developer/SDKs/MacOSX10.3.9.sdk/usr/include ./configure $(COMMON_CONFIG)
might do it.
Jerry
Thanks again Jerry but it dn't work.....
export NEXT_ROOT=/Developer/SDKs/MacOSX10.3.9.sdk C_INCLUDE_PATH=/Developer/SDKs/MacOSX10.3.9.sdk/usr/include ./configure --prefix=/usr/local/server-services --with-libwrap --with-defaults --sysconfdir=/usr/local/server-services/etc --with-out-transports=TCP --with-persistent-directory=/usr/local/server-services/db/net-snmp --with-mib-modules=host CPPFLAGS=-I/System/Library/Frameworks/System.framework/PrivateHeaders su: export: `./configure': not a valid identifier su: export: `--prefix=/usr/local/server-services': not a valid identifier su: export: `--with-libwrap': not a valid identifier su: export: `--with-defaults': not a valid identifier su: export: `--sysconfdir=/usr/local/server-services/etc': not a valid identifier su: export: `--with-out-transports=TCP': not a valid identifier su: export: `--with-persistent-directory=/usr/local/server-services/db/net-snmp': not a valid identifier su: export: `--with-mib-modules=host': not a valid identifier
__________________________________________________________________________
I removed the "@" so I could see the executed commands and I did the same for the Apple/Darwin source so I could see what goes on during the build that is always successful.
I have a solution that seems to work but if someone see a flaw in my method or a better solution, I'd like to know.
Here's what works.
__________________________________________________________________________
SRCDIR=/BuildCache INSTDIR=/usr/local/server-services COMMON_CONFIG_FLAGS=--prefix=$(INSTDIR) GLOBAL_LINKFLAGS=-L$(INSTDIR)/lib GLOBAL_INCFLAGS=-I$(INSTDIR)/include
LD_ENV=export MACOSX_DEPLOYMENT_TARGET=10.2 SET_10_3_9_ENV=export C_INCLUDE_PATH=/Developer/SDKs/MacOSX10.3.9.sdk/usr/include SET_BASE=export C_INCLUDE_PATH=/usr/include
# net-snmp --------------------------------
net-snmp : NAME=net-snmp net-snmp : @if [ ! -d /Developer/SDKs/MacOSX10.3.9.sdk ] ; then echo -e "The 10.3.9 Developer SDK is not installed"; exit 1 ;else exit 0; fi @if [ ! -f $(SRCDIR)/$(NAME)*/Makefile ]; then cd $(SRCDIR)/$(NAME)*/ && $(SET_10_3_9_ENV) && $(LD_ENV) && LDFLAGS="$(GLOBAL_LINKFLAGS)" \ ./configure $(COMMON_CONFIG_FLAGS) \ --with-libwrap \ --with-defaults \ --sysconfdir=$(INSTDIR)/etc \ --with-persistent-directory=$(INSTDIR)/db/net-snmp \ --with-mib-modules=host \ CPPFLAGS=-I$(SRCDIR)/System.framework/PrivateHeaders; fi && $(SET_BASE) @cd $(SRCDIR)/$(NAME)*/ && $(SET_10_3_9_ENV) && $(LD_ENV) && make && $(SET_BASE)
net-snmp-install : NAME=net-snmp net-snmp-install : net-snmp @cd $(SRCDIR)/$(NAME)*/ && $(MAKE) install @cp $(PATCHDIR)/snmpd.conf $(INSTDIR)/etc/snmpd.conf @for foo in encode_keychange snmpbulkget snmpbulkwalk \ snmpdelta snmpdf snmpget snmpgetnext snmpinform snmpnetstat \ snmpset snmpstatus snmptable snmptest snmptranslate snmptrap \ snmpusm snmpvacm snmpwalk; do \
strip $(INSTDIR)/bin/$${foo}; \ done @for foo in snmpd snmptrapd; do \ strip $(INSTDIR)/sbin/$${foo}; \ done @for foo in libnetsnmp libnetsnmpagent libnetsnmphelpers libnetsnmpmibs; do \ strip -x $(INSTDIR)/lib/$${foo}.5.2.0.dylib; \ rm -f $(INSTDIR)/lib/$${foo}.5.dylib; \ mv $(INSTDIR)/lib/$${foo}.5.2.0.dylib $(INSTDIR)/lib/$${foo}.5.dylib; \ ln -s $${foo}.5.dylib $(INSTDIR)/lib/$${foo}.5.2.0.dylib; \ done @find $(INSTDIR)/include/net-snmp -type f | xargs chmod 644 @find $(INSTDIR)/share/snmp -type f| xargs chmod 644 @find $(INSTDIR)/share/man/ -type f | xargs chmod 644 @mv $(INSTDIR)/bin/net-snmp-config $(INSTDIR)/bin/net-snmp-config.old @cat $(INSTDIR)/bin/net-snmp-config.old | sed "s/-arch ppc//g" | sed "s/-arch i386//g" > $(INSTDIR)/bin/net-snmp-config @chmod 755 $(INSTDIR)/bin/net-snmp-config @rm -f $(INSTDIR)/bin/net-snmp-config.old
|