summaryrefslogtreecommitdiffhomepage
path: root/vars/libsolv.vars
blob: e3be2cbcd7a973f5ebe122af589664044c185fb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#
# set +o errexit -o noglob is assumed.
#

pkg_libsolv_configure() {
        rm -f config.cache;
        env     CFLAGS="-L${PKG_PREFIX}/lib --sysroot=${PKG_PREFIX}"            \
                PREFIX=""                                                       \
	cmake   -DCMAKE_FIND_ROOT_PATH="${PKG_PREFIX}"                          \
		-DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM=NEVER                       \
		-DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY=ONLY                        \
		-DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE=ONLY                        \
		-DCMAKE_AR="${PREFIX}/bin/${PKG_AR}"                            \
		-DCMAKE_C_COMPILER="${PREFIX}/bin/${PKG_CC}"                    \
		-DCMAKE_CXX_COMPILER="${PREFIX}/bin/${PKG_TARGET}-g++"          \
		-DCMAKE_INSTALL_PREFIX=                                         \
		-DCMAKE_RANLIB="${PREFIX}/bin/${PKG_RANLIB}"                    \
		-DFEDORA=1                                                      \
		-DWITH_LIBXML2:BOOL=ON                                          \
		-DENABLE_COMPLEX_DEPS:BOOL=ON                                   \
		-DENABLE_RPMDB_BYRPMHEADER:BOOL=ON                              \
		-DENABLE_RPMDB_LIBRPM:BOOL=ON                                   \
		-DENABLE_RPMPKG_LIBRPM:BOOL=ON                                  \
		-DENABLE_LZMA_COMPRESSION:BOOL=ON                               \
		-DENABLE_BZIP2_COMPRESSION:BOOL=ON                              \
		-DENABLE_COMPS:BOOL=ON                                          \
		-DENABLE_APPDATA:BOOL=ON                                        \
		-DENABLE_RPMDB:BOOL=ON                                          \
		-DENABLE_RPMMD:BOOL=ON                                          \
		-DLIBXML2_LIBRARIES="${PKG_PREFIX}/lib/libxml2.lib.a"           \
		-DBZIP2_LIBRARIES="${PKG_PREFIX}/lib/libbz2.lib.a"              \
		-DLZMA_INCLUDE_DIR="${PKG_PREFIX}/include"                      \
		-DLZMA_LIBRARY="${PKG_PREFIX}/lib/liblzma.lib.a"                \
		-DZLIB_INCLUDE_DIR="${PKG_PREFIX}/include"                      \
		-DZLIB_LIBRARY="${PKG_PREFIX}/lib/libz.a"                       \
                "../libsolv-${PKG_VERSION}";
};

# vim:filetype=sh