summaryrefslogtreecommitdiff
path: root/german/BBBike/Makefile
blob: 5a257803494ec3197e6a87086d210296102063f3 (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
50
51
52
53
# New ports collection makefile for:	BBBike
# Date created:		Fri Aug 14 15:32:26 CEST 1998
# Whom:			Slaven Rezic <eserte@cs.tu-berlin.de>
#
# $FreeBSD$
#

PORTNAME=	BBBike
PORTVERSION=	3.12
CATEGORIES=	german
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=     bbbike

MAINTAINER=	slaven@rezic.de
COMMENT=	A route-finder for cyclists in Berlin and Brandenburg

RUN_DEPENDS=	${SITE_PERL}/${PERL_ARCH}/Tk.pm:${PORTSDIR}/x11-toolkits/p5-Tk

USE_PERL5=	YES
POD2MAN=	pod2man

MAN1=		bbbike.1

MYDESTDIR=	${PREFIX}/BBBike

.if !defined(PERL_VER) || ${PERL_VER} == 5.005
PLIST=		${PKGDIR}/pkg-plist.5005
.endif

do-build:
	cd ${WRKSRC}/ext/BBBikeXS; ${PERL5} Makefile.PL; make all install clean; ${RM} Makefile.old
	cd ${WRKSRC}/ext/VirtArray; ${PERL5} Makefile.PL; make all install clean; ${RM} Makefile.old
	cd ${WRKSRC}; ${POD2MAN} --lax bbbike.pod > bbbike.1
	${MV} ${WRKSRC}/bbbike ${WRKSRC}/bbbike.tmp
	${ECHO_CMD} "#! ${PERL}" > ${WRKSRC}/bbbike
	${CAT} ${WRKSRC}/bbbike.tmp >> ${WRKSRC}/bbbike
	${RM} -f ${WRKSRC}/bbbike.tmp
	${CHMOD} 0755 ${WRKSRC}/bbbike

BBBIKEEXE=	bbbike cbbbike bbbikeclient cmdbbbike

do-install:
	-${RM} -rf ${MYDESTDIR}
	${CP} -r  ${WRKSRC} ${MYDESTDIR}
	${FIND} ${MYDESTDIR} -exec ${CHMOD} ugo+r {} \;
	${FIND} ${MYDESTDIR} -perm -u=x -exec ${CHMOD} go+x {} \;
.for f in ${BBBIKEEXE}
	-${RM} -f ${PREFIX}/bin/$f
	${LN} -s  ${MYDESTDIR}/$f ${PREFIX}/bin/$f
.endfor
	${INSTALL_MAN} ${WRKSRC}/bbbike.1 ${PREFIX}/man/man1

.include <bsd.port.mk>