freebsd-ports/german/BBBike/Makefile
Sunpoet Po-Chuan Hsieh 9eaef9aa18 - Update *_DEPENDS
- Bump PORTREVISION for dependency change
- While I'm here, fix check-plist error

====> Checking for pkg-plist issues (check-plist)
===> Parsing plist
===> Checking for items in STAGEDIR missing from pkg-plist
Error: Orphaned: BBBike/tmp/.keep_me
===> Checking for items in pkg-plist which are not in STAGEDIR
===> Error: Plist issues found.
*** Error code 1

Stop.
make: stopped in /usr/ports/german/BBBike
====>> Error: check-plist failures detected
2015-01-03 07:12:06 +00:00

67 lines
2.2 KiB
Makefile

# Created by: Slaven Rezic <eserte@cs.tu-berlin.de>
# $FreeBSD$
PORTNAME= BBBike
PORTVERSION= 3.18
PORTREVISION= 3
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-C>=0:${PORTSDIR}/devel/p5-Inline-C \
p5-CDB_File>=0:${PORTSDIR}/databases/p5-CDB_File
RUN_DEPENDS= p5-Tk>=0:${PORTSDIR}/x11-toolkits/p5-Tk \
p5-Inline-C>=0:${PORTSDIR}/devel/p5-Inline-C \
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
post-patch:
@${RM} ${WRKSRC}/tmp/.keep_me
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>