[fdo-internals] mkcatdefs/gencat message catalogue files on OSX

Greg Boone greg.boone at autodesk.com
Sat Feb 14 14:31:22 EST 2009

Hi All,

When generating our FDO message catalogue files on Linux we use the following Makefile.am specification which in turn relies on mkcatdefs and gencat. However on OSX, mkcatdefs is not available. Are there any suggestions out there on how we can modify the message catalogue compilation process to work with OSX?


EXTRA_DIST = FDOMessage.mc resource.h MessageStatic.rc

CATDIR = ../../nls/linux/en_US

CATALOGS = FDOMessage.mc

CATALOGS_CAT = $(patsubst %.mc,$(CATDIR)/%.cat,$(CATALOGS))

all: catalog_init $(CATALOGS_CAT)

                @rm -rf $(CATDIR)/*.cat
                @rm -rf *.msf

                @if [ ! -d $(CATDIR) ]; then mkdir -p $(CATDIR); fi

$(CATALOGS_CAT) : $(CATDIR)/%.cat : %.msf
                @rm -f "../../Inc/$(basename $(notdir $<)).h"
                @echo "$(FDOTHIRDPARTY)/linux/mkcatdefs/mkcatdefs $(basename $(notdir $<)) $< | gencat $@"; \
                $(FDOTHIRDPARTY)/linux/mkcatdefs/mkcatdefs $(basename $(notdir $<)) $< > $(addsuffix .tmp, $(basename $(notdir $<))); \
                gencat $@ $(addsuffix .tmp, $(basename $(notdir $<))); \
                sed -e '/#include/d' -e '/MF_/s/"\(.*\)\.cat"/\1_cat/' \
                $(addsuffix _msg.h, $(basename $(notdir $<))) > \
                ../../Inc/$(addsuffix _msg.h, $(basename $(notdir $<)))
                @rm $(addsuffix _msg.h, $(basename $(notdir $<))) \
                $(addsuffix .tmp, $(basename $(notdir $<)))
                @mv ../../Inc/$(basename $(notdir $<))_msg.h ../../Inc/FdoMessage.h

%.msf : %.mc
                @../McToMsf/McToMsf $(basename $(notdir $<)).mc $(basename $(notdir $<)).msf "*" FDO

INSTALL_DIR  = $(prefix)/nls

#install data
install :
                @if [ ! -d $(INSTALL_DIR) ]; then mkdir -p $(INSTALL_DIR); fi
                @cp -u -f $(CATDIR)/FDOMessage.cat $(INSTALL_DIR)

uninstall :
                @rm -f $(INSTALL_DIR)/FDOMessage.cat

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/fdo-internals/attachments/20090214/20d55071/attachment.html

More information about the fdo-internals mailing list