components/python/python34/Makefile
changeset 3693 db350599ce68
parent 3633 dc8489206e64
child 3722 e76241a68272
equal deleted inserted replaced
3689:309d627d7520 3693:db350599ce68
    96 LDFLAGS += $(LDFLAGS.$(BITS))
    96 LDFLAGS += $(LDFLAGS.$(BITS))
    97 
    97 
    98 # Python puts its header files in a special place.
    98 # Python puts its header files in a special place.
    99 LINT_FLAGS +=	-I$(SOURCE_DIR)/Include
    99 LINT_FLAGS +=	-I$(SOURCE_DIR)/Include
   100 
   100 
       
   101 # PYTHONPATH in the environment can be harmful, but setting it to empty via
       
   102 # _INSTALL_ENV causes problems too, so just ignore the entire environment.
       
   103 # Because of this, we need to specify PATH in multiple places below.
       
   104 ENV +=				-i
       
   105 
       
   106 CONFIGURE_ENV +=		PATH="$(PATH)"
       
   107 
   101 CONFIGURE_OPTIONS  +=		--infodir=$(CONFIGURE_INFODIR)
   108 CONFIGURE_OPTIONS  +=		--infodir=$(CONFIGURE_INFODIR)
   102 CONFIGURE_OPTIONS  +=		--enable-shared
   109 CONFIGURE_OPTIONS  +=		--enable-shared
   103 CONFIGURE_OPTIONS  +=		--with-dtrace
   110 CONFIGURE_OPTIONS  +=		--with-dtrace
   104 CONFIGURE_OPTIONS  +=		--with-system-expat
   111 CONFIGURE_OPTIONS  +=		--with-system-expat
   105 CONFIGURE_OPTIONS  +=		--with-system-ffi
   112 CONFIGURE_OPTIONS  +=		--with-system-ffi
   113 CONFIGURE_OPTIONS  +=		DFLAGS="-$(BITS)"
   120 CONFIGURE_OPTIONS  +=		DFLAGS="-$(BITS)"
   114 CONFIGURE_OPTIONS  +=		XPROFILE_DIR="$(XPROFILE_DIR)"
   121 CONFIGURE_OPTIONS  +=		XPROFILE_DIR="$(XPROFILE_DIR)"
   115 
   122 
   116 COMPONENT_BUILD_ENV  +=		DFLAGS="-$(BITS)"
   123 COMPONENT_BUILD_ENV  +=		DFLAGS="-$(BITS)"
   117 COMPONENT_BUILD_ENV  +=		XPROFILE_DIR="$(XPROFILE_DIR)"
   124 COMPONENT_BUILD_ENV  +=		XPROFILE_DIR="$(XPROFILE_DIR)"
       
   125 COMPONENT_BUILD_ENV  +=		PATH="$(PATH)"
   118 
   126 
   119 # Some tests have non-ASCII characters encoded for international domain names;
   127 # Some tests have non-ASCII characters encoded for international domain names;
   120 # the publish step will fail in 'pkgdepend generate' without this:
   128 # the publish step will fail in 'pkgdepend generate' without this:
   121 COMPONENT_PUBLISH_ENV  +=	LC_ALL=en_US.UTF-8
   129 COMPONENT_PUBLISH_ENV  +=	LC_ALL=en_US.UTF-8
   122 
   130 
   137 # environment, and use -e to tell gmake to pay attention to the environment.
   145 # environment, and use -e to tell gmake to pay attention to the environment.
   138 COMPONENT_INSTALL_ENV +=	CC="$(CC)"
   146 COMPONENT_INSTALL_ENV +=	CC="$(CC)"
   139 COMPONENT_INSTALL_ENV +=	CXX="$(CXX)"
   147 COMPONENT_INSTALL_ENV +=	CXX="$(CXX)"
   140 COMPONENT_INSTALL_ENV +=	CFLAGS="$(CFLAGS)"
   148 COMPONENT_INSTALL_ENV +=	CFLAGS="$(CFLAGS)"
   141 COMPONENT_INSTALL_ENV +=	LDFLAGS="$(LDFLAGS)"
   149 COMPONENT_INSTALL_ENV +=	LDFLAGS="$(LDFLAGS)"
       
   150 COMPONENT_INSTALL_ENV +=	PATH="$(PATH)"
   142 COMPONENT_INSTALL_ARGS +=	-e
   151 COMPONENT_INSTALL_ARGS +=	-e
   143 
   152 
   144 # Strip build machine paths from _sysconfigdata.py & config/Makefile.
   153 # Strip build machine paths from _sysconfigdata.py & config/Makefile.
   145 COMPONENT_POST_INSTALL_ACTION= \
   154 COMPONENT_POST_INSTALL_ACTION= \
   146     (cd $(PROTOUSRLIBDIR)/python3.4 ; \
   155     (cd $(PROTOUSRLIBDIR)/python3.4 ; \
   161 # Note that when a test succeeds, the builds/*/.tested file gets created.  You
   170 # Note that when a test succeeds, the builds/*/.tested file gets created.  You
   162 # may need to remove these files, or run "gmake clobber" or "gmake clean"
   171 # may need to remove these files, or run "gmake clobber" or "gmake clean"
   163 # between tests.
   172 # between tests.
   164 #
   173 #
   165 COMPONENT_TEST_ENV = EXTRATESTOPTS="-v -uall,-network $(TESTOPTS_PYTHON_TEST)"
   174 COMPONENT_TEST_ENV = EXTRATESTOPTS="-v -uall,-network $(TESTOPTS_PYTHON_TEST)"
       
   175 COMPONENT_TEST_ENV += PATH="$(PATH)"
   166 # Prevent the tests from getting stuck waiting for input.
   176 # Prevent the tests from getting stuck waiting for input.
   167 COMPONENT_TEST_TARGETS = test < /dev/null
   177 COMPONENT_TEST_TARGETS = test < /dev/null
   168 
   178 
   169 test:				$(TEST_64)
   179 test:				$(TEST_64)
   170 
   180