components/python/pycountry/Makefile
branchs11-update
changeset 3070 cee982b2aa7b
parent 2881 8cae3c148a42
child 1948 2d1537e7942d
equal deleted inserted replaced
3069:ac864258bf39 3070:cee982b2aa7b
    16 # fields enclosed by brackets "[]" replaced with your own identifying
    16 # fields enclosed by brackets "[]" replaced with your own identifying
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
    21 # Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
    21 # Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
    22 #
    22 #
    23 include ../../../make-rules/shared-macros.mk
    23 include ../../../make-rules/shared-macros.mk
    24 
    24 
    25 COMPONENT_NAME=		pycountry
    25 COMPONENT_NAME=		pycountry
    26 COMPONENT_VERSION=	0.17
    26 COMPONENT_VERSION=	0.17
    37 include $(WS_TOP)/make-rules/ips.mk
    37 include $(WS_TOP)/make-rules/ips.mk
    38 
    38 
    39 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
    39 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
    40 
    40 
    41 # Regenerate the message object (mo) files for the patched 
    41 # Regenerate the message object (mo) files for the patched 
    42 # iso3166 (country) translations.
    42 # iso3166 (country) and iso3166-2 (country subdivisions) translations.
    43 COMPONENT_PRE_BUILD_ACTION = \
    43 COMPONENT_PRE_BUILD_ACTION = \
    44 	cd $(SOURCE_DIR)/src/$(COMPONENT_NAME)/locales; \
    44 	cd $(SOURCE_DIR)/src/$(COMPONENT_NAME)/locales; \
    45 	for pofile in */LC_MESSAGES/iso3166.po; \
    45 	for pofile in */LC_MESSAGES/iso3166.po \
       
    46 	              */LC_MESSAGES/iso3166_2.po ; \
    46 	do \
    47 	do \
    47 		dir=`dirname $$pofile`; \
    48 		mofile=`echo $$pofile | $(GSED) -e 's/\.po$$/\.mo/'` ; \
    48 		mofile=$$dir/iso3166.mo; \
       
    49 		/bin/rm -f $$mofile; \
    49 		/bin/rm -f $$mofile; \
    50 		gmsgfmt $$pofile -o $$mofile; \
    50 		gmsgfmt $$pofile -o $$mofile; \
    51 	done
    51 	done
    52 
    52 
    53 # common targets
    53 # common targets