mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
7f4572eae4
With hat: portmgr Sponsored by: Absolight
50 lines
1.3 KiB
Makefile
50 lines
1.3 KiB
Makefile
# Created by: Kirill Bezzubets <kirill@solaris.ru>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= gammu
|
|
PORTVERSION= 1.37.0
|
|
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:ftp/curl
|
|
|
|
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: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>
|