aboutsummaryrefslogtreecommitdiffstats
path: root/german/BBBike/Makefile
blob: ae49a3076b10ce7ad55e2bcd374eed850702e9d9 (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
54
55
56
57
58
59
60
61
62
# 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.17
PORTREVISION=   1
CATEGORIES= german
MASTER_SITES=   SF/${PORTNAME:L}/${PORTNAME}/${PORTVERSION}

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

BUILD_DEPENDS=  p5-Inline>=0:${PORTSDIR}/devel/p5-Inline \
        p5-CDB_File>=0:${PORTSDIR}/databases/p5-CDB_File
RUN_DEPENDS=    p5-Tk>=0:${PORTSDIR}/x11-toolkits/p5-Tk \
        ${BUILD_DEPENDS}

USE_PERL5=  YES
POD2MAN=    pod2man

MAN1=       bbbike.1

MYDESTDIR=  ${PREFIX}/BBBike

LOCAL_PERL_ARCH=    ${PERL_ARCH}
PLIST_SUB=      LOCAL_PERL_ARCH=${LOCAL_PERL_ARCH}

do-build:
    cd ${WRKSRC}/ext && ${MAKE} PERL=${PERL5} all install
    cd ${WRKSRC}/ext && ${MAKE} PERL=${PERL5} clean
    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 smsbbbike
PLIST_IN=   ${PKGDIR}/pkg-plist.in
PLIST=      ${WRKDIR}/pkg-plist

pre-install:
    LOCAL_PERL_ARCH=`${PERL5} -MConfig -e '$$x = qq{$$Config{version}/$$Config{archname}}; $$x =~ s{/}{\\\\/}g; print $$x'`; \
    ${SED} -e "s/%%LOCAL_PERL_ARCH%%/$$LOCAL_PERL_ARCH/g" < ${PLIST_IN} > ${PLIST}

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

.include <bsd.port.mk>
an> * dist Spell.idlJP Rosevear2002-05-092-0/+5 * Instead of testing for SERVICE_CONNECTED, we need to also handleNot Zed2002-05-093-2/+12 * Implemented. (digest_getv): Implemented.Jeffrey Stedfast2002-05-0912-23/+364 * implemented (c'n'p-ed and updated) spell checking settingsRadek Doulik2002-05-098-38/+378 * Revert zh_CN and zh_TW changes because gettext sucksJP Rosevear2002-05-093-27321/+9244 * Add an explanation/warning about why we want Berkeley DB 3.1.17 andEttore Perazzoli2002-05-092-0/+44 * Pretty pixmap buttonsIain Holmes2002-05-092-2/+31 * Make the mail folders work okay.Iain Holmes2002-05-082-13/+95 * Change so there's no race conditions between the folder info and the session ...Iain Holmes2002-05-083-44/+119 * link against the libtool version of libversitJP Rosevear2002-05-082-1/+6 * Update the po files to cut down on dist timeJP Rosevear2002-05-08