update Sun Jan 17 06:37:00 PST 2010
[pkgsrc.git] / comms / gammu / Makefile
1 # $NetBSD: Makefile,v 1.5 2010/01/17 12:02:08 wiz Exp $
2 #
3
4 .include "Makefile.common"
5 PKGREVISION=    1
6
7 COMMENT=        Command line utility and library to work with mobile phones
8
9 # cmake tests for it; unclear for what it would be used
10 #BUILD_DEPENDS+=        doxygen-[0-9]*:../../devel/doxygen
11 # for gammu-config
12 DEPENDS+=       dialog-[0-9]*:../../misc/dialog
13
14 PKG_DESTDIR_SUPPORT=    user-destdir
15
16 USE_CMAKE=      yes
17 CMAKE_ARGS+=    -DBUILD_SHARED_LIBS=ON
18 CMAKE_ARGS+=    -DINSTALL_MAN_DIR:STRING=${PKGMANDIR}
19 # see py-gammu:
20 CMAKE_ARGS+=    -DWITH_PYTHON:BOOL=OFF
21 # make sure some optional dependencies are not found:
22 CMAKE_ARGS+=    -DWITH_MySQL:BOOL=OFF
23 CMAKE_ARGS+=    -DWITH_Postgres:BOOL=OFF
24 CMAKE_ARGS+=    -DWITH_LibDBI:BOOL=OFF
25 # avoid installing bash completion scripts
26 CMAKE_ARGS+=    -DBASH_BIN:FILEPATH=
27 #CMAKE_ARGS+=   -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON
28
29 USE_LANGUAGES=  c c++
30 USE_TOOLS+=     bash:run msgfmt
31 REPLACE_BASH=   utils/gammu-config utils/jadmaker
32
33 # needed because of https://bugs.cihar.com/view.php?id=908
34 BUILDLINK_TRANSFORM+=   rm:-Werror
35
36 .include "../../devel/libusb/buildlink3.mk"
37 .include "../../www/curl/buildlink3.mk"
38 .include "../../mk/bsd.pkg.mk"