mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
cbb2144658
a bash completion file. Restore BUILD_DEPENDS upon bash for non-default BASH option. Reported by: Łukasz Wąsikowski <lukasz@wasikowski.net> (via e-mail)
57 lines
1.5 KiB
Makefile
57 lines
1.5 KiB
Makefile
# Created by: Kirill Bezzubets <kirill@solaris.ru>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= gammu
|
|
PORTVERSION= 1.33.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= comms
|
|
MASTER_SITES= http://dl.cihar.com/gammu/releases/ \
|
|
http://dl.cihar.com.nyud.net/gammu/releases/
|
|
|
|
MAINTAINER= bsam@FreeBSD.org
|
|
COMMENT= GNU All Mobile Management Utilities
|
|
|
|
LICENSE= GPLv2
|
|
|
|
LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
|
|
RUN_DEPENDS= cdialog:${PORTSDIR}/devel/cdialog
|
|
|
|
CONFLICTS= gammu-devel-[1-9]* gammu-python-[1-9]*
|
|
|
|
OPTIONS_DEFINE= BASH
|
|
|
|
CMAKE_ARGS+= -DINSTALL_LIBDATA_DIR=${LOCALBASE}/libdata
|
|
|
|
USES= cmake gettext pkgconfig shebangfix
|
|
SHEBANG_FILES= utils/jadmaker utils/gammu-config
|
|
bash_CMD= /bin/sh
|
|
USE_PYTHON= yes
|
|
USE_GNOME= glib20
|
|
USE_LDCONFIG= yes
|
|
|
|
PORTDOCS= *
|
|
|
|
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.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MBASH}
|
|
BUILD_DEPENDS+= bash:${PORTSDIR}/shells/bash
|
|
RUN_DEPENDS+= bash:${PORTSDIR}/shells/bash
|
|
PLIST_FILES+= etc/bash_completion.d/gammu
|
|
PLIST_DIRSTRY+= etc/bash_completion.d
|
|
.else
|
|
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-contrib_CMakeLists.txt
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|