summaryrefslogtreecommitdiff
path: root/palm/pilot-link-devel/Makefile
blob: 96459c070bb13430bbc4c63c13e3b43eb893086c (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
44
45
46
47
48
49
# New ports collection makefile for:    pilot-link
# Date created:         November, 1997
# Whom:                 Paul Traina <pst@freebsd.org>
#
# $FreeBSD$
#

PORTNAME=	pilot-link
PORTVERSION=	0.9.5
CATEGORIES=	palm comms tk83
MASTER_SITES=	http://www.gnu-designs.com/pilot-link/source/
DISTNAME=	${PORTNAME}.${PORTVERSION}

MAINTAINER=	dima@freebsd.org

LIB_DEPENDS=	tk83:${PORTSDIR}/x11-toolkits/tk83 \
		giconv:${PORTSDIR}/converters/libiconv

USE_BZIP2=	yes
USE_LIBTOOL=	yes
INSTALLS_SHLIB=	yes
USE_PERL5=	yes
PREFIX=		${LOCALBASE}/pilot
CONFIGURE_ARGS=	--with-perl5=${PERL5} --with-libiconv=${LOCALBASE}

MAN1=		dlpsh.1 ietf2datebook.1 install-datebook.1 \
		install-hinote.1 install-memo.1 install-user.1 \
		pilot-xfer.1 read-ical.1
MAN7=		pilot-link.7

CFLAGS+=	-I${LOCALBASE}/include

post-patch:
	# FreeBSD installs -lgiconv instead of -liconv. Patch configure.
	${PERL} -pi -e 's/([^g])iconv.h/\1giconv.h/g;' \
		-e 's/-liconv/-lgiconv/g' ${WRKSRC}/${CONFIGURE_SCRIPT} \
		${WRKSRC}/libsock/util.c
	# Remove the FORCE tag, which forced recompiling/relinking
	# of the otherwise up-to-date files.
	${PERL} -pi -e 's/: FORCE/:/;' -e 's/getopt.h//;' ${WRKSRC}/Makefile.in
	# When the day comes, and pilot-link starts using longopt,
	# we'll start using -lgnugetopt. No need for this files:
	${RM} -f ${WRKSRC}/getopt*

post-install:
	@${SED} "s|%%PREFIX%%|${PREFIX}|g" < ${FILESDIR}/pilot-link.sh > ${LOCALBASE}/etc/rc.d/pilot-link.sh
	@${CHMOD} 750 ${LOCALBASE}/etc/rc.d/pilot-link.sh

.include <bsd.port.mk>