aboutsummaryrefslogtreecommitdiffstats
path: root/palm/gnomepilot-conduits2/Makefile
blob: ce2d9e33645e8d4ab19d2ba7e3a0debd944a16be (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
# New ports collection makefile for:    gnomepilot-conduits2
# Date created:     15 April 2003
# Whom:         Joe Marcus Clarke <marcus@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   gnomepilot-conduits2
PORTVERSION=    2.0.8
CATEGORIES= palm comms gnome
MASTER_SITES=   ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/gnome-pilot-conduits/2.0
DISTNAME=   gnome-pilot-conduits-${PORTVERSION}
DIST_SUBDIR=    gnome2

MAINTAINER= gnome@FreeBSD.org
COMMENT=    Additional conduits for gnome-pilot2

LIB_DEPENDS=    gpilotd.3:${PORTSDIR}/palm/gnomepilot2

USE_BZIP2=  yes
USE_GMAKE=  yes
USE_X_PREFIX=   yes
USE_BISON=  yes
USE_GNOME=  gnomeprefix gnomehack libgnome
USE_LIBTOOL=    yes
USE_REINPLACE=  yes
CONFIGURE_ARGS= --with-pisock=${LOCALBASE}
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LIBS="-L${LOCALBASE}/lib"

post-patch:
    @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
         s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
    @${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|' \
        ${WRKSRC}/mal-conduit/mal/client/unix/MAL31DBConfig.c

.include <bsd.port.mk>