aboutsummaryrefslogtreecommitdiffstats
path: root/comms/gammu-devel/Makefile
blob: e4a1f7930aaf5365e7aa4f16cd4e7104847b0360 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# New ports collection makefile for:   gammu
# Date created:        12 december 2003
# Whom:                Kirill Bezzubets <kirill@solaris.ru>
#
# $FreeBSD$
#

PORTNAME=   gammu
PORTVERSION=    1.16.0
CATEGORIES= comms
MASTER_SITES=   ftp://dl.cihar.com/gammu/releases/ \
        http://dl.cihar.com/gammu/releases/

MAINTAINER= bsam@FreeBSD.org
COMMENT=    GNU All Mobile Management Utilities

BUILD_DEPENDS+= cmake:${PORTSDIR}/devel/cmake

CMAKE_ARGS= -DCMAKE_BUILD_TYPE:STRING=Release \
        -DCMAKE_INSTALL_PREFIX=${PREFIX} \
        -DINSTALL_LIBDATA_DIR=${LOCALBASE}/libdata

USE_GNOME=  pkgconfig

.if defined(NOPORTDOCS)
EXTRA_PATCHES=files/extra-patch-CMakeLists.txt
.else
MAN1=       gammu.1 gammu-config.1
PORTDOCS=   *
.endif

do-configure:
    @(cd ${WRKSRC}; \
    ${LOCALBASE}/bin/cmake ${CMAKE_ARGS})

.include <bsd.port.pre.mk>

post-patch:
.if ${OSVERSION} < 700042
    @${REINPLACE_CMD} -e 's@ -Wno-pointer-sign@@g' ${WRKSRC}/CMakeLists.txt
.endif

.include <bsd.port.post.mk>