SHA256
1
0
forked from pool/libvmime
libvmime/debian.rules

22 lines
706 B
Plaintext
Raw Permalink Normal View History

#!/usr/bin/make -f
include /usr/share/dpkg/buildflags.mk
export DH_VERBOSE=1
%:
dh $@ --parallel
override_dh_auto_configure:
cmake \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DCMAKE_INSTALL_LIBDIR:PATH="/usr/lib/${DEB_HOST_MULTIARCH}" \
-DVMIME_SENDMAIL_PATH:STRING="/usr/sbin/sendmail" \
-DVMIME_BUILD_SAMPLES:BOOL=OFF \
-DVMIME_HAVE_TLS_SUPPORT:BOOL=ON \
-DVMIME_BUILD_STATIC_LIBRARY:BOOL=OFF \
-DCMAKE_BUILD_TYPE:STRING="RelWithDebInfo" \
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING="${CPPFLAGS} ${CXXFLAGS}" \
-DCMAKE_CXX_FLAGS:STRING=" " \
-DCMAKE_C_FLAGS_RELWITHDEBINFO:STRING="${CPPFLAGS} ${CFLAGS}" \
-DCMAKE_C_FLAGS:STRING=" " \
-DCMAKE_SHARED_LINKER_FLAGS_RELEASE="${LDFLAGS}"