midipix / build / midipix_build

Forked from build/midipix_build 4 years ago
Clone

Blame vars/cmake.vars

Lucio Andrés Illanes Albornoz (arab, vxp) d206c6
#
Lucio Andrés Illanes Albornoz 2b85d0
# set +o errexit -o noglob is assumed.
Lucio Andrés Illanes Albornoz (arab, vxp) d206c6
#
Lucio Andrés Illanes Albornoz (arab, vxp) d206c6
Lucio Andrés Illanes Albornoz (arab, vxp) 0610d8
pkg_cmake_configure() {
Lucio Andrés Illanes Albornoz c6d6e0
	rtl_fileop cp "${PREFIX}/share/cmake-${PKG_VERSION%.*}/Modules/Platform/BSDOS.cmake" \
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
		"${PREFIX}/share/cmake-${PKG_VERSION%.*}/Modules/Platform/Midipix.cmake";
Lucio Andrés Illanes Albornoz (arab, vxp) d206c6
	rm -f config.cache;
Lucio Andrés Illanes Albornoz (arab, vxp) 0ddcce
	env	CFLAGS="-L${PKG_PREFIX}/lib --sysroot=${PKG_PREFIX}"		\
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
		PREFIX=""							\
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
	cmake	-DBZIP2_INCLUDE_DIR="${PKG_PREFIX}/include"			\
Lucio Andrés Illanes Albornoz (arab, vxp) 05e618
		-DBZIP2_LIBRARIES="${PKG_PREFIX}/lib/libbz2.a"			\
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
		-DCMAKE_AR="${PREFIX}/bin/${PKG_AR}"				\
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
		-DCMAKE_C_COMPILER="${PREFIX}/bin/${PKG_CC}"			\
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
		-DCMAKE_CXX_COMPILER="${PREFIX}/bin/${PKG_TARGET}-g++"		\
Lucio Andrés Illanes Albornoz (arab, vxp) 0ddcce
		-DCMAKE_INSTALL_PREFIX=						\
Lucio Andrés Illanes Albornoz (arab, vxp) ec19f0
		-DCMAKE_RANLIB="${PREFIX}/bin/${PKG_RANLIB}"			\
Lucio Andrés Illanes Albornoz (arab, vxp) d206c6
		-DCMAKE_SYSTEM_NAME=Midipix					\
Lucio Andrés Illanes Albornoz (arab, vxp) d206c6
		-DCMAKE_USE_SYSTEM_BZIP2=ON					\
Lucio Andrés Illanes Albornoz (arab, vxp) d206c6
		-DCMAKE_USE_SYSTEM_CURL=ON					\
Lucio Andrés Illanes Albornoz (arab, vxp) d206c6
		-DCMAKE_USE_SYSTEM_EXPAT=OFF					\
Lucio Andrés Illanes Albornoz (arab, vxp) af7abc
		-DCMAKE_USE_SYSTEM_LIBUV=ON					\
Lucio Andrés Illanes Albornoz (arab, vxp) d206c6
		-DCMAKE_USE_SYSTEM_LIBARCHIVE=ON				\
Lucio Andrés Illanes Albornoz (arab, vxp) d206c6
		-DCMAKE_USE_SYSTEM_ZLIB=ON					\
Lucio Andrés Illanes Albornoz (arab, vxp) d206c6
		-DCMAKE_VERBOSE_MAKEFILE=ON					\
Lucio Andrés Illanes Albornoz (arab, vxp) 05e618
		-DCURL_INCLUDE_DIR="${PKG_PREFIX}/include/curl"			\
Lucio Andrés Illanes Albornoz (arab, vxp) 05e618
		-DCURL_LIBRARY="${PKG_PREFIX}/lib/libcurl.lib.a"		\
Lucio Andrés Illanes Albornoz (arab, vxp) 87b3d2
		-DCURSES_NCURSES_LIBRARY="${PKG_PREFIX}/lib/libncurses.lib.a"	\
Lucio Andrés Illanes Albornoz (arab, vxp) d206c6
		-DKWSYS_LFS_WORKS=YES						\
Lucio Andrés Illanes Albornoz (arab, vxp) af7abc
		-DLibUV_INCLUDE_DIR="${PKG_PREFIX}/include"			\
Lucio Andrés Illanes Albornoz (arab, vxp) af7abc
		-DLibUV_LIBRARY="${PKG_PREFIX}/lib/libuv.1.0.0.lib.a"		\
Lucio Andrés Illanes Albornoz (arab, vxp) 05e618
		-DLibArchive_INCLUDE_DIR="${PKG_PREFIX}/include"		\
Lucio Andrés Illanes Albornoz (arab, vxp) 05e618
		-DLibArchive_LIBRARY="${PKG_PREFIX}/lib/libarchive.lib.a"	\
Lucio Andrés Illanes Albornoz (arab, vxp) d206c6
		-DLIBLZMA_HAS_AUTO_DECODER=YES					\
Lucio Andrés Illanes Albornoz (arab, vxp) d206c6
		-DLIBLZMA_HAS_EASY_ENCODER=YES					\
Lucio Andrés Illanes Albornoz (arab, vxp) d206c6
		-DLIBLZMA_HAS_LZMA_PRESET=YES					\
Lucio Andrés Illanes Albornoz (arab, vxp) 05e618
		-DLIBLZMA_INCLUDE_DIR="${PKG_PREFIX}/include"			\
Lucio Andrés Illanes Albornoz (arab, vxp) 05e618
		-DLIBLZMA_LIBRARY="${PKG_PREFIX}/lib/liblzma.lib.a"		\
Lucio Andrés Illanes Albornoz (arab, vxp) 05e618
		-DZLIB_INCLUDE_DIR="${PKG_PREFIX}/include"			\
Lucio Andrés Illanes Albornoz (arab, vxp) 05e618
		-DZLIB_LIBRARY="${PKG_PREFIX}/lib/libz.a"			\
Lucio Andrés Illanes Albornoz (arab, vxp) 49b460
		"../cmake-${PKG_VERSION}";
Lucio Andrés Illanes Albornoz (arab, vxp) d206c6
};
Lucio Andrés Illanes Albornoz (arab, vxp) d206c6
Lucio Andrés Illanes Albornoz (arab, vxp) c27bea
pkg_cmake_install_make_pre() {
Lucio Andrés Illanes Albornoz (arab, vxp) d01c02
	if [ ! -e cmake_install.cmake.orig ]; then
Lucio Andrés Illanes Albornoz (arab, vxp) d01c02
		sed -i.orig '/^\s*set(CMAKE_INSTALL_PREFIX ".*")$/s/".*"/""/'	\
Lucio Andrés Illanes Albornoz (arab, vxp) d01c02
			cmake_install.cmake;
Lucio Andrés Illanes Albornoz (arab, vxp) d01c02
	fi;
Lucio Andrés Illanes Albornoz (arab, vxp) d01c02
};
Lucio Andrés Illanes Albornoz (arab, vxp) d01c02
Lucio Andrés Illanes Albornoz 528b11
pkg_cmake_host_configure() {
Lucio Andrés Illanes Albornoz 528b11
	rm -f config.cache;
Lucio Andrés Illanes Albornoz 528b11
	cmake	-DCURSES_NCURSES_LIBRARY="${PKG_PREFIX}/lib/libncurses.so"	\
Lucio Andrés Illanes Albornoz 528b11
		"../cmake-${PKG_VERSION}";
Lucio Andrés Illanes Albornoz 528b11
};
Lucio Andrés Illanes Albornoz 528b11
Lucio Andrés Illanes Albornoz (arab, vxp) c27bea
pkg_cmake_host_install_make_pre() {
Lucio Andrés Illanes Albornoz (arab, vxp) 6b9494
	pkg_cmake_install_make_pre;
Lucio Andrés Illanes Albornoz (arab, vxp) d01c02
};
Lucio Andrés Illanes Albornoz (arab, vxp) d01c02
Lucio Andrés Illanes Albornoz (arab, vxp) d206c6
# vim:filetype=sh