blob: 912a2e7ac1c3944dcc17ec9966de8172572502b7 (
plain) (
blame)
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
40
41
42
43
44
45
46
47
48
49
50
|
# Created by: Kirill Bezzubets <kirill@solaris.ru>
# $FreeBSD$
PORTNAME= gammu
PORTVERSION= 1.36.8
CATEGORIES= comms
MASTER_SITES= http://dl.cihar.com/gammu/releases/ \
http://dl.cihar.com.nyud.net/gammu/releases/
MAINTAINER= ports@FreeBSD.org
COMMENT= GNU All Mobile Management Utilities
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
RUN_DEPENDS= cdialog:${PORTSDIR}/devel/cdialog
CONFLICTS= gammu-devel-[1-9]* gammu-python-[1-9]*
CMAKE_ARGS+= -DINSTALL_LIBDATA_DIR=${LOCALBASE}/libdata
USES= cmake gettext pkgconfig python shebangfix
SHEBANG_FILES= utils/jadmaker utils/gammu-config
bash_CMD= /bin/sh
USE_GNOME= glib20
USE_LDCONFIG= yes
PLIST_SUB+= VERSION=${PORTVERSION}
PORTDOCS= *
OPTIONS_DEFINE= BASH
BASH_BUILD_DEPENDS= bash:${PORTSDIR}/shells/bash
BASH_RUN_DEPENDS= ${BASH_BUILD_DEPENDS}
BASH_PLIST_FILES= etc/bash_completion.d/gammu
BASH_EXTRA_PATCHES_OFF= ${FILESDIR}/extra-patch-contrib_CMakeLists.txt
post-patch:
@${REINPLACE_CMD} -i '' -e 's:/etc/bash_completion.d:${PREFIX}/etc/bash_completion.d:' \
${WRKSRC}/contrib/CMakeLists.txt
post-install:
(cd ${STAGEDIR}${PREFIX} && \
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py \
-d ${PYTHONPREFIX_SITELIBDIR} -f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;} && \
${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py \
-d ${PYTHONPREFIX_SITELIBDIR} -f ${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;})
.include <bsd.port.mk>
|