# Created by: Slaven Rezic # $FreeBSD$ PORTNAME= BBBike PORTVERSION= 3.18 PORTREVISION= 2 CATEGORIES= german MASTER_SITES= SF/${PORTNAME:tl}/${PORTNAME}/${PORTVERSION} MAINTAINER= slaven@rezic.de COMMENT= 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 \ p5-Inline>=0:${PORTSDIR}/devel/p5-Inline \ p5-CDB_File>=0:${PORTSDIR}/databases/p5-CDB_File USES= perl5 POD2MAN= pod2man MYDESTDIR= ${STAGEDIR}${PREFIX}/BBBike .include # The following != assignment will generate a warning # with portlint et al. Problem is that the nearest # replacements ${PERL_VER}/${PERL_ARCH} do not work here: # the value of PERL_ARCH is always "mach" on FreeBSD systems, # but $Config{archname} here is something like "amd64-freebsd" .if exists(${PERL5}) LOCAL_PERL_ARCH!= ${PERL5} -MConfig -e '$$x = qq{$$Config{version}/$$Config{archname}}; $$x =~ s{/}{\\\\/}g; print $$x' .endif PLIST_SUB= LOCAL_PERL_ARCH=${LOCAL_PERL_ARCH} BBBIKE_PERL_EXE= bbbike cbbbike bbbikeclient cmdbbbike smsbbbike do-build: cd ${WRKSRC}/ext && ${MAKE} PERL=${PERL5} all install cd ${WRKSRC}/ext && ${MAKE} PERL=${PERL5} clean ${FIND} ${WRKSRC}/lib -name "*.so" | ${XARGS} ${CHMOD} u+w ${FIND} ${WRKSRC}/lib -name "*.so" | ${XARGS} ${STRIP_CMD} ${FIND} ${WRKSRC}/lib -name "*.so" | ${XARGS} ${CHMOD} u-w cd ${WRKSRC}; ${POD2MAN} --lax bbbike.pod > bbbike.1 .for f in ${BBBIKE_PERL_EXE} ${MV} ${WRKSRC}/$f ${WRKSRC}/$f.tmp ${ECHO_CMD} "#! ${PERL}" > ${WRKSRC}/$f ${CAT} ${WRKSRC}/$f.tmp >> ${WRKSRC}/$f ${RM} -f ${WRKSRC}/$f.tmp ${CHMOD} 0755 ${WRKSRC}/$f .endfor do-install: -${RM} -rf ${MYDESTDIR} ${INSTALL_MAN} ${WRKSRC}/bbbike.1 ${STAGEDIR}${PREFIX}/man/man1 ${FIND} ${WRKSRC} | ${XARGS} ${CHMOD} ugo+r ${FIND} ${WRKSRC} -perm -u=x | ${XARGS} ${CHMOD} go+x ${CP} -rp ${WRKSRC} ${MYDESTDIR} ${RM} -f ${MYDESTDIR}/bbbike.1 .for f in ${BBBIKE_PERL_EXE} -${RM} -f ${STAGEDIR}${PREFIX}/bin/$f ${LN} -s ../BBBike/$f ${STAGEDIR}${PREFIX}/bin/$f .endfor .include