44# found in the LICENSE file.
55
66import os
7+ import shutil
78
89TAG = '11022021'
910HASH = 'f770031ad6c2152cbed8c8eab8edf2be1d27f9e74bc255a9930c17019944ee5fdda5308ea992c66a78af9fe1d8dca090f6c956910ce323f8728247c10e44036b'
@@ -21,7 +22,8 @@ def create(final):
2122 src_dir = os .path .join (source_path , 'src' )
2223 libmodplug_path = os .path .join (src_dir , 'libmodplug' )
2324
24- ports .write_file (os .path .join (source_path , 'config.h' ), config_h )
25+ config_h = os .path .join (os .path .dirname (__file__ ), 'libmodplug/config.h' )
26+ shutil .copyfile (config_h , os .path .join (source_path , 'config.h' ))
2527
2628 flags = [
2729 '-Wno-deprecated-register' ,
@@ -88,141 +90,3 @@ def clear(ports, settings, shared):
8890
8991def show ():
9092 return 'libmodplug (-sUSE_MODPLUG=1 or --use-port=libmodplug; public domain)'
91-
92-
93- config_h = '''/* src/config.h. Generated from config.h.in by configure. */
94- /* src/config.h.in. Generated from configure.ac by autoheader. */
95-
96- /* Define if building universal (internal helper macro) */
97- /* #undef AC_APPLE_UNIVERSAL_BUILD */
98-
99- /* Define to 1 if you have the <dlfcn.h> header file. */
100- #define HAVE_DLFCN_H 1
101-
102- /* Define to 1 if you have the <inttypes.h> header file. */
103- #define HAVE_INTTYPES_H 1
104-
105- /* Define to 1 if you have the <malloc.h> header file. */
106- #define HAVE_MALLOC_H 1
107-
108- /* Define to 1 if you have the `setenv' function. */
109- #define HAVE_SETENV 1
110-
111- /* Define to 1 if you have the `sinf' function. */
112- #define HAVE_SINF 1
113-
114- /* Define to 1 if you have the <stdint.h> header file. */
115- #define HAVE_STDINT_H 1
116-
117- /* Define to 1 if you have the <stdio.h> header file. */
118- #define HAVE_STDIO_H 1
119-
120- /* Define to 1 if you have the <stdlib.h> header file. */
121- #define HAVE_STDLIB_H 1
122-
123- /* Define to 1 if you have the <strings.h> header file. */
124- #define HAVE_STRINGS_H 1
125-
126- /* Define to 1 if you have the <string.h> header file. */
127- #define HAVE_STRING_H 1
128-
129- /* Define to 1 if you have the <sys/stat.h> header file. */
130- #define HAVE_SYS_STAT_H 1
131-
132- /* Define to 1 if you have the <sys/types.h> header file. */
133- #define HAVE_SYS_TYPES_H 1
134-
135- /* Define to 1 if you have the <unistd.h> header file. */
136- #define HAVE_UNISTD_H 1
137-
138- /* Define to the sub-directory where libtool stores uninstalled libraries. */
139- #define LT_OBJDIR ".libs/"
140-
141- /* Name of package */
142- #define PACKAGE "libmodplug"
143-
144- /* Define to the address where bug reports for this package should be sent. */
145- #define PACKAGE_BUGREPORT ""
146-
147- /* Define to the full name of this package. */
148- #define PACKAGE_NAME "libmodplug"
149-
150- /* Define to the full name and version of this package. */
151- #define PACKAGE_STRING "libmodplug 0.8.9.0"
152-
153- /* Define to the one symbol short name of this package. */
154- #define PACKAGE_TARNAME "libmodplug"
155-
156- /* Define to the home page for this package. */
157- #define PACKAGE_URL ""
158-
159- /* Define to the version of this package. */
160- #define PACKAGE_VERSION "0.8.9.0"
161-
162- /* Define to 1 if all of the C90 standard headers exist (not just the ones
163- required in a freestanding environment). This macro is provided for
164- backward compatibility; new code need not use it. */
165- #define STDC_HEADERS 1
166-
167- /* Version number of package */
168- #define VERSION "0.8.9.0"
169-
170- /* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
171- significant byte first (like Motorola and SPARC, unlike Intel). */
172- #if defined AC_APPLE_UNIVERSAL_BUILD
173- # if defined __BIG_ENDIAN__
174- # define WORDS_BIGENDIAN 1
175- # endif
176- #else
177- # ifndef WORDS_BIGENDIAN
178- /* # undef WORDS_BIGENDIAN */
179- # endif
180- #endif
181-
182- /* Define for Solaris 2.5.1 so the uint32_t typedef from <sys/synch.h>,
183- <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
184- #define below would cause a syntax error. */
185- /* #undef _UINT32_T */
186-
187- /* Define for Solaris 2.5.1 so the uint64_t typedef from <sys/synch.h>,
188- <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
189- #define below would cause a syntax error. */
190- /* #undef _UINT64_T */
191-
192- /* Define for Solaris 2.5.1 so the uint8_t typedef from <sys/synch.h>,
193- <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
194- #define below would cause a syntax error. */
195- /* #undef _UINT8_T */
196-
197- /* Define to the type of a signed integer type of width exactly 16 bits if
198- such a type exists and the standard includes do not define it. */
199- /* #undef int16_t */
200-
201- /* Define to the type of a signed integer type of width exactly 32 bits if
202- such a type exists and the standard includes do not define it. */
203- /* #undef int32_t */
204-
205- /* Define to the type of a signed integer type of width exactly 64 bits if
206- such a type exists and the standard includes do not define it. */
207- /* #undef int64_t */
208-
209- /* Define to the type of a signed integer type of width exactly 8 bits if such
210- a type exists and the standard includes do not define it. */
211- /* #undef int8_t */
212-
213- /* Define to the type of an unsigned integer type of width exactly 16 bits if
214- such a type exists and the standard includes do not define it. */
215- /* #undef uint16_t */
216-
217- /* Define to the type of an unsigned integer type of width exactly 32 bits if
218- such a type exists and the standard includes do not define it. */
219- /* #undef uint32_t */
220-
221- /* Define to the type of an unsigned integer type of width exactly 64 bits if
222- such a type exists and the standard includes do not define it. */
223- /* #undef uint64_t */
224-
225- /* Define to the type of an unsigned integer type of width exactly 8 bits if
226- such a type exists and the standard includes do not define it. */
227- /* #undef uint8_t */
228- '''
0 commit comments