diff options
author | wiz <wiz@pkgsrc.org> | 2009-05-26 21:31:21 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2009-05-26 21:31:21 +0000 |
commit | 0dac296979849cb411dcdff45dc23aac7c70a843 (patch) | |
tree | 856c7c4a79ff19246160a809c74ea77c1c9287e7 /comms/gammu/Makefile | |
parent | ed4ad3a073d77b84fbe26d0e8d729a6f3fabeec4 (diff) | |
download | pkgsrc-0dac296979849cb411dcdff45dc23aac7c70a843.tar.gz |
- enable shared libraries
- do not build the python bindings, they're python version dependant
and should be built separately
- move common parts from Makefile into Makefile.common for use by
the python binding package Makefile
- add a patch for python/setup.py to add smsd.c to the sources
which was obviously forgotten by the gammu team because they are
building the extension with cmake.
- add a buildlink3.mk for the python bindings package
From Joachim König in private mail.
PKGREVISION++.
While here, make sure that some optional dependencies are not found
and that the bash completion script is not installed.
Diffstat (limited to 'comms/gammu/Makefile')
-rw-r--r-- | comms/gammu/Makefile | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/comms/gammu/Makefile b/comms/gammu/Makefile index 6d8ece9b98d..034cf9fb96d 100644 --- a/comms/gammu/Makefile +++ b/comms/gammu/Makefile @@ -1,18 +1,10 @@ -# $NetBSD: Makefile,v 1.1.1.1 2009/05/25 12:50:00 wiz Exp $ +# $NetBSD: Makefile,v 1.2 2009/05/26 21:31:21 wiz Exp $ # -DISTNAME= gammu-1.24.0 -CATEGORIES= comms -MASTER_SITES= http://dl.cihar.com/gammu/releases/ \ - http://mirror.clickcreations.com/gammu/releases/ \ - http://dl.cihar.com.nyud.net/gammu/releases/ \ - ftp://dl.cihar.com/gammu/releases/ -EXTRACT_SUFX= .tar.bz2 +.include "Makefile.common" -MAINTAINER= pkgsrc-users@NetBSD.org -HOMEPAGE= http://cihar.com/gammu/ COMMENT= Command line utility and library to work with mobile phones -LICENSE= gnu-gpl-v2 +PKGREVISION= 1 # cmake tests for it; unclear for what it would be used #BUILD_DEPENDS+= doxygen-[0-9]*:../../devel/doxygen @@ -22,20 +14,24 @@ DEPENDS+= dialog-[0-9]*:../../misc/dialog PKG_DESTDIR_SUPPORT= user-destdir USE_CMAKE= yes +CMAKE_ARGS+= -DBUILD_SHARED_LIBS=ON CMAKE_ARGS+= -DINSTALL_MAN_DIR:STRING=${PKGMANDIR} +# see py-gammu: +CMAKE_ARGS+= -DWITH_PYTHON:BOOL=OFF +# make sure some optional dependencies are not found: +CMAKE_ARGS+= -DWITH_MySQL:BOOL=OFF +CMAKE_ARGS+= -DWITH_Postgres:BOOL=OFF +CMAKE_ARGS+= -DWITH_LibDBI:BOOL=OFF +# avoid installing bash completion scripts +CMAKE_ARGS+= -DBASH_BIN:FILEPATH= USE_LANGUAGES= c c++ USE_TOOLS+= bash:run REPLACE_BASH= utils/gammu-config utils/jadmaker -PY_PATCHPLIST= yes # needed because of https://bugs.cihar.com/view.php?id=908 BUILDLINK_TRANSFORM+= rm:-Werror -#-- MySQL not found. -#-- Could not find PostgreSQL -#-- libdbi not found. -.include "../../lang/python/extension.mk" .include "../../devel/libusb/buildlink3.mk" .include "../../www/curl/buildlink3.mk" .include "../../mk/bsd.pkg.mk" |