diff options
author | Boris Samorodov <bsam@FreeBSD.org> | 2012-10-06 09:57:19 +0000 |
---|---|---|
committer | Boris Samorodov <bsam@FreeBSD.org> | 2012-10-06 09:57:19 +0000 |
commit | 4757fc55ca04b06dbf809b965691cfeab1fe3e67 (patch) | |
tree | 5e9aae258f8c5e0577469940bc1876096785db6c /comms/gammu | |
parent | 8930982ce0833eee74978da974218cd1b2f1e941 (diff) | |
download | ports-4757fc55ca04b06dbf809b965691cfeab1fe3e67.tar.gz ports-4757fc55ca04b06dbf809b965691cfeab1fe3e67.zip |
Notes
Diffstat (limited to 'comms/gammu')
-rw-r--r-- | comms/gammu/Makefile | 50 |
1 files changed, 23 insertions, 27 deletions
diff --git a/comms/gammu/Makefile b/comms/gammu/Makefile index fedd3652ff05..6ce895c2c1fb 100644 --- a/comms/gammu/Makefile +++ b/comms/gammu/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: gammu -# Date created: 12 december 2003 -# Whom: Kirill Bezzubets <kirill@solaris.ru> -# +# Created by: Kirill Bezzubets <kirill@solaris.ru> # $FreeBSD$ -# PORTNAME= gammu PORTVERSION= 1.32.0 @@ -18,7 +14,8 @@ RUN_DEPENDS= cdialog:${PORTSDIR}/devel/cdialog CONFLICTS= gammu-devel-[1-9]* gammu-python-[1-9]* -OPTIONS= BASH "Install bash completion script" off +OPTIONS_DEFINE= BASHCS +BASHCS_DESC= BASH completion script CMAKE_ARGS+= -DINSTALL_LIBDATA_DIR=${LOCALBASE}/libdata @@ -29,33 +26,19 @@ USE_GNOME= glib20 PORTDOCS= * -.if defined(NOPORTDOCS) -CMAKE_ARGS+= -DINSTALL_DOC=OFF -DINSTALL_PHP_EXAMPLES=OFF -DINSTALL_MEDIA=OFF \ - -DINSTALL_GNAPPLET=OFF -.else -MAN1= gammu.1 gammu-config.1 jadmaker.1 gammu-smsd.1 gammu-smsd-inject.1 \ - gammu-smsd-monitor.1 gammu-detect.1 -MAN5= gammu-backup.5 gammu-smsbackup.5 gammu-smsdrc.5 gammurc.5 -MAN7= gammu-smsd-files.7 gammu-smsd-mysql.7 \ - gammu-smsd-odbc.7 gammu-smsd-pgsql.7 \ - gammu-smsd-dbi.7 gammu-smsd-tables.7 gammu-smsd-null.7 \ - gammu-smsd-run.7 gammu-smsd-sql.7 - -.endif +post-patch: + @${REINPLACE_CMD} -i '' -e 's:bash:sh:' -e 's:dialog:cdialog:' ${WRKSRC}/utils/gammu-config + @${REINPLACE_CMD} -i '' -e 's:/etc/bash_completion.d:${PREFIX}/etc/bash_completion.d:' \ + ${WRKSRC}/contrib/CMakeLists.txt post-install: .for opt in -Qold -O ${PYTHON_CMD} ${opt} -m compileall -l ${PYTHONPREFIX_SITELIBDIR}/gammu .endfor -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -post-patch: - @${REINPLACE_CMD} -i '' -e 's:bash:sh:' -e 's:dialog:cdialog:' ${WRKSRC}/utils/gammu-config - @${REINPLACE_CMD} -i '' -e 's:/etc/bash_completion.d:${PREFIX}/etc/bash_completion.d:' \ - ${WRKSRC}/contrib/CMakeLists.txt - -.if defined(WITH_BASH) +.if ${PORT_OPTIONS:MBASHCS} BUILD_DEPENDS+= bash:${PORTSDIR}/shells/bash RUN_DEPENDS+= bash:${PORTSDIR}/shells/bash PLIST_FILES+= etc/bash_completion.d/gammu @@ -64,4 +47,17 @@ PLIST_DIRSTRY+= etc/bash_completion.d EXTRA_PATCHES+= ${FILESDIR}/extra-patch-contrib_CMakeLists.txt .endif -.include <bsd.port.post.mk> +.if ! ${PORT_OPTIONS:MDOCS} +CMAKE_ARGS+= -DINSTALL_DOC=OFF -DINSTALL_PHP_EXAMPLES=OFF -DINSTALL_MEDIA=OFF \ + -DINSTALL_GNAPPLET=OFF +.else +MAN1= gammu.1 gammu-config.1 jadmaker.1 gammu-smsd.1 gammu-smsd-inject.1 \ + gammu-smsd-monitor.1 gammu-detect.1 +MAN5= gammu-backup.5 gammu-smsbackup.5 gammu-smsdrc.5 gammurc.5 +MAN7= gammu-smsd-files.7 gammu-smsd-mysql.7 \ + gammu-smsd-odbc.7 gammu-smsd-pgsql.7 \ + gammu-smsd-dbi.7 gammu-smsd-tables.7 gammu-smsd-null.7 \ + gammu-smsd-run.7 gammu-smsd-sql.7 +.endif + +.include <bsd.port.mk> |