diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-01-31 19:50:02 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-01-31 19:50:02 +0100 |
commit | 67ceb4475d54d648708831ec1331877a7b7d036f (patch) | |
tree | d8c185c7fa72f4f658ad8d45aa6e5e903851f3d5 /package/file/Makefile | |
parent | 53b2ff052e3a164154d4ee17f189b213e4600ecb (diff) |
fix cross-compile.
compile host file statically, so that it uses the correct
libmagic while generating the magic file.
Diffstat (limited to 'package/file/Makefile')
-rw-r--r-- | package/file/Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/package/file/Makefile b/package/file/Makefile index 58650bb0f..c535ee35b 100644 --- a/package/file/Makefile +++ b/package/file/Makefile @@ -4,9 +4,9 @@ include ${TOPDIR}/rules.mk PKG_NAME:= file -PKG_VERSION:= 5.03 +PKG_VERSION:= 5.04 PKG_RELEASE:= 1 -PKG_MD5SUM:= d05f08a53e5c2f51f8ee6a4758c0cc53 +PKG_MD5SUM:= accade81ff1cc774904b47c72c8aeea0 PKG_DESCR:= a file type guesser PKG_SECTION:= utils PKG_URL:= http://www.darwinsys.com/file @@ -23,14 +23,16 @@ INSTALL_STYLE:= auto pre-configure: (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \ - ./configure \ + CFLAGS="-static" \ + ./configure --enable-static --disable-shared \ ); ${MAKE} -C ${WRKBUILD} - ${INSTALL_BIN} ${WRKBUILD}/src/.libs/file ${STAGING_TOOLS}/bin + ${INSTALL_BIN} ${WRKBUILD}/src/file ${WRKBUILD}/magic ${MAKE} -C ${WRKBUILD} clean post-install: - ${INSTALL_DIR} ${IDIR_FILE}/usr/bin ${IDIR_FILE}/usr/lib ${IDIR_FILE}/usr/share/misc + ${INSTALL_DIR} ${IDIR_FILE}/usr/bin ${IDIR_FILE}/usr/lib \ + ${IDIR_FILE}/usr/share/misc ${INSTALL_BIN} ${WRKINST}/usr/bin/file ${IDIR_FILE}/usr/bin ${INSTALL_DATA} ${WRKINST}/usr/share/misc/magic.mgc \ ${IDIR_FILE}/usr/share/misc |