blob: 149ab077ed43c701943fb18dc175466fbfb508f5 (
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
|
# $NetBSD: options.mk,v 1.4 2020/06/15 16:54:38 adam Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.ledger
PKG_SUPPORTED_OPTIONS+= python
PKG_SUGGESTED_OPTIONS+= python
PLIST_VARS+= python
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mpython)
CMAKE_ARGS+= -DUSE_PYTHON:BOOL=TRUE
PLIST.python= yes
PLIST_SUBST+= PYSITELIB=${PYSITELIB:Q}
.include "../../devel/py-boost/buildlink3.mk"
. include "../../mk/bsd.prefs.mk"
. if ${OPSYS} == "Darwin"
SOEXT=dylib
. else
SOEXT=so
. endif
# Remove when src/CMakeLists.txt (see FIXME there) stops copying
# uninstalled library as Python module. Make symlink here to
# avoid problem with install_name on Darwin and save disk-space.
post-install:
cd ${DESTDIR}${PREFIX}/${PYSITELIB} && \
${LN} -s -f ${DESTDIR}${PREFIX}/lib/libledger.${SOEXT} ledger.so
.endif
|