equal
deleted
inserted
replaced
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 ; \ |
160 # Note that when a test succeeds, the builds/*/.tested file gets created. You |
169 # Note that when a test succeeds, the builds/*/.tested file gets created. You |
161 # may need to remove these files, or run "gmake clobber" or "gmake clean" |
170 # may need to remove these files, or run "gmake clobber" or "gmake clean" |
162 # between tests. |
171 # between tests. |
163 # |
172 # |
164 COMPONENT_TEST_ENV = EXTRATESTOPTS="-v -uall,-network $(TESTOPTS_PYTHON_TEST)" |
173 COMPONENT_TEST_ENV = EXTRATESTOPTS="-v -uall,-network $(TESTOPTS_PYTHON_TEST)" |
|
174 COMPONENT_TEST_ENV += PATH="$(PATH)" |
165 # Prevent the tests from getting stuck waiting for input. |
175 # Prevent the tests from getting stuck waiting for input. |
166 COMPONENT_TEST_TARGETS = test < /dev/null |
176 COMPONENT_TEST_TARGETS = test < /dev/null |
167 |
177 |
168 test: $(TEST_64) |
178 test: $(TEST_64) |
169 |
179 |