1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/astro/routino/Makefile
Stefan Eßer 98f7d7db7e Fix CONFLICTS entries in archivers, astro, audio
Fix conflicts entries based on a script that searches for duplicate
files installed by several ports.

Some patters seem to make ports conflict with themselves, but this is
actually not the case due to the check-*-conflicts logic implemented
in bsd.port.mk, which excludes self-conflicts.

PHP based ports have been ignored in this commit as requested by the
committers currently working on the php-8.1 import.

Approved by:	portmgr (implicit)
2022-01-13 22:01:28 +01:00

45 lines
1.2 KiB
Makefile

# Created by: Muhammad Moinur Rahman <bofh@FreeBSD.org>
PORTNAME= routino
PORTVERSION= 3.3.3
CATEGORIES= astro
MASTER_SITES= http://www.routino.org/download/
MAINTAINER= bofh@FreeBSD.org
COMMENT= Router for OpenStreetMap Data
LICENSE= AGPLv3
OPTIONS_DEFINE= DOCS
USES= compiler gmake perl5 tar:tgz
USE_LDCONFIG= yes
CONFLICTS_INSTALL= jabberd # bin/router
.include <bsd.port.pre.mk>
post-patch:
${REINPLACE_CMD} 's|doc/routino|share/doc/routino|' \
${WRKSRC}/Makefile.conf
${REINPLACE_CMD} 's|gcc|${CC}|' \
${WRKSRC}/Makefile.conf
.if ${CHOSEN_COMPILER_TYPE} == gcc && ${COMPILER_VERSION} <= 42
${REINPLACE_CMD} -e '/pragma/d' ${WRKSRC}/src/xmlparse.c
.endif
post-install:
${MKDIR} ${STAGEDIR}${WWWDIR}
(cd ${WRKSRC}/web && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR} \
"! -name Makefile")
${RM} ${STAGEDIR}${PREFIX}/lib/libroutino*.so
${RM} ${STAGEDIR}${PREFIX}/lib/libroutino*.so.0
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib*
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*
${STRIP_CMD} ${STAGEDIR}${WWWDIR}/bin/*
.for f in routino.so.0.0.0 routino-slim.so.0.0.0
${LN} -sf lib${f} ${STAGEDIR}${PREFIX}/lib/lib${f:R:R}
${LN} -sf lib${f:R:R} ${STAGEDIR}${PREFIX}/lib/lib${f:R:R:R}
.endfor
.include <bsd.port.post.mk>