1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00
freebsd-ports/german/BBBike/Makefile
John Marino 60470628e8 german/BBBike: Clear up build warnings caused by early shell command
PR:		190667
Reported by:	Sean Bruno
Submitted by:	eserte12 (yahoo.de)
Approved by:	Just Fix It
2014-08-11 21:23:18 +00:00

65 lines
2.1 KiB
Makefile

# Created by: Slaven Rezic <eserte@cs.tu-berlin.de>
# $FreeBSD$
PORTNAME= BBBike
PORTVERSION= 3.18
PORTREVISION= 1
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 <bsd.port.pre.mk>
# 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 <bsd.port.post.mk>