aboutsummaryrefslogtreecommitdiff
path: root/comms/gammu
diff options
context:
space:
mode:
authorBoris Samorodov <bsam@FreeBSD.org>2014-03-28 14:10:58 +0000
committerBoris Samorodov <bsam@FreeBSD.org>2014-03-28 14:10:58 +0000
commitf1c48aa891a87d13c0cd11fe7bab195dc89acffc (patch)
tree128b2ad405711176d8b5c05b6555221706e72b5d /comms/gammu
parentd517af7b108c7ab5f9f0e13706800d2a9d2d4d1d (diff)
downloadports-f1c48aa891a87d13c0cd11fe7bab195dc89acffc.tar.gz
ports-f1c48aa891a87d13c0cd11fe7bab195dc89acffc.zip
Notes
Diffstat (limited to 'comms/gammu')
-rw-r--r--comms/gammu/Makefile33
-rw-r--r--comms/gammu/files/patch-CMakeLists.txt9
-rw-r--r--comms/gammu/pkg-plist23
3 files changed, 45 insertions, 20 deletions
diff --git a/comms/gammu/Makefile b/comms/gammu/Makefile
index 07a1ed77b34c..828d3c035c4e 100644
--- a/comms/gammu/Makefile
+++ b/comms/gammu/Makefile
@@ -3,6 +3,7 @@
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/
@@ -10,6 +11,9 @@ MASTER_SITES= http://dl.cihar.com/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]*
@@ -18,27 +22,29 @@ OPTIONS_DEFINE= BASH
CMAKE_ARGS+= -DINSTALL_LIBDATA_DIR=${LOCALBASE}/libdata
-USES= cmake gettext
+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= *
-NO_STAGE= yes
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
+ (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
@@ -46,17 +52,4 @@ PLIST_DIRSTRY+= etc/bash_completion.d
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-contrib_CMakeLists.txt
.endif
-.if ${PORT_OPTIONS:MDOCS}
-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
-.else
-CMAKE_ARGS+= -DINSTALL_DOC=OFF -DINSTALL_PHP_EXAMPLES=OFF -DINSTALL_MEDIA=OFF \
- -DINSTALL_GNAPPLET=OFF
-.endif
-
.include <bsd.port.mk>
diff --git a/comms/gammu/files/patch-CMakeLists.txt b/comms/gammu/files/patch-CMakeLists.txt
index 1381c27f8100..2bcf8649f6ea 100644
--- a/comms/gammu/files/patch-CMakeLists.txt
+++ b/comms/gammu/files/patch-CMakeLists.txt
@@ -1,5 +1,14 @@
--- CMakeLists.txt.orig 2011-12-21 17:25:37.000000000 +0400
+++ CMakeLists.txt 2011-12-23 14:57:04.447118270 +0400
+@@ -120,7 +120,7 @@
+ check_symbol_exists (getgrnam "grp.h" HAVE_GETGRNAM)
+ check_symbol_exists (getpwuid "pwd.h" HAVE_GETPWUID)
+ check_symbol_exists (getuid "unistd.h" HAVE_GETUID)
+-check_symbol_exists (initgroups "grp.h" HAVE_INITGROUPS)
++check_symbol_exists (initgroups "unistd.h" HAVE_INITGROUPS)
+ check_symbol_exists (setuid "unistd.h" HAVE_SETUID)
+ check_symbol_exists (setgid "unistd.h" HAVE_SETGID)
+ check_symbol_exists (SIGHUP "signal.h" HAVE_SIGHUP)
@@ -656,7 +656,7 @@ mark_as_advanced (INSTALL_DATA_DIR)
set (INSTALL_DOC_DIR "share/doc/gammu" CACHE STRING "Path for documentation installation")
mark_as_advanced (INSTALL_DOC_DIR)
diff --git a/comms/gammu/pkg-plist b/comms/gammu/pkg-plist
index 1e96e536c389..5945025b3ca8 100644
--- a/comms/gammu/pkg-plist
+++ b/comms/gammu/pkg-plist
@@ -1,5 +1,6 @@
bin/gammu
bin/gammu-config
+bin/gammu-detect
bin/gammu-smsd
bin/gammu-smsd-inject
bin/gammu-smsd-monitor
@@ -40,6 +41,26 @@ lib/libGammu.so.7.1.33.0
lib/libgsmsd.so
lib/libgsmsd.so.7
lib/libgsmsd.so.7.1.33.0
+man/man1/gammu-config.1.gz
+man/man1/gammu-detect.1.gz
+man/man1/gammu-smsd-inject.1.gz
+man/man1/gammu-smsd-monitor.1.gz
+man/man1/gammu-smsd.1.gz
+man/man1/gammu.1.gz
+man/man1/jadmaker.1.gz
+man/man5/gammu-backup.5.gz
+man/man5/gammu-smsbackup.5.gz
+man/man5/gammu-smsdrc.5.gz
+man/man5/gammurc.5.gz
+man/man7/gammu-smsd-dbi.7.gz
+man/man7/gammu-smsd-files.7.gz
+man/man7/gammu-smsd-mysql.7.gz
+man/man7/gammu-smsd-null.7.gz
+man/man7/gammu-smsd-odbc.7.gz
+man/man7/gammu-smsd-pgsql.7.gz
+man/man7/gammu-smsd-run.7.gz
+man/man7/gammu-smsd-sql.7.gz
+man/man7/gammu-smsd-tables.7.gz
share/gammu/gammu-s60-remote.sis
share/gammu/gnapplet.ini
share/gammu/gnapplet.sis
@@ -132,3 +153,5 @@ share/locale/zh_TW/LC_MESSAGES/libgammu.mo
@dirrm share/gammu
@dirrm include/gammu
@dirrm %%PYTHON_SITELIBDIR%%/gammu
+@dirrmtry %%PYTHON_SITELIBDIR%%
+@dirrmtry %%PYTHON_LIBDIR%%