mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-22 00:35:15 +00:00
21071c5ef5
- Add support for staging, use shebangfix, switch to GCC 4.7 - Give up maintainership
74 lines
1.9 KiB
Makefile
74 lines
1.9 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= libbobcat
|
|
PORTVERSION= 3.18.01
|
|
CATEGORIES= devel
|
|
MASTER_SITES= SF/bobcat/bobcat/${PORTVERSION}
|
|
DISTNAME= bobcat_${PORTVERSION}
|
|
EXTRACT_SUFX= .orig.tar.gz
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Brokken's Own Base Classes And Templates
|
|
|
|
LICENSE= GPLv3
|
|
|
|
BUILD_DEPENDS= icmake:${PORTSDIR}/devel/icmake \
|
|
yodl>=3.0:${PORTSDIR}/textproc/yodl
|
|
|
|
USE_XORG= x11
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
|
|
PORTDOCS= *
|
|
|
|
PLIST_SUB+= PORTVERSION="${PORTVERSION}"
|
|
|
|
USE_GCC= 4.7
|
|
USE_LDCONFIG= yes
|
|
WRKSRC= ${WRKDIR}/bobcat-${PORTVERSION}
|
|
|
|
USES= shebangfix
|
|
|
|
SHEBANG_LANG= icmake
|
|
icmake_OLD_CMD= /usr/bin/icmake
|
|
icmake_CMD= ${LOCALBASE}/bin/icmake
|
|
|
|
SHEBANG_FILES= build \
|
|
documentation/examples/sockets/client/build \
|
|
documentation/examples/sockets/client2/build \
|
|
documentation/examples/sockets/forkserver/build \
|
|
documentation/examples/sockets/forkserver2/build \
|
|
documentation/examples/sockets/server/build
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|"/usr"|"${PREFIX}"| ; \
|
|
s|"/share/doc/libbobcat3"|"/share/doc/${PORTNAME}-${PORTVERSION}"| ; \
|
|
s|"/share/doc/libbobcat3-dev"|"/share/doc/${PORTNAME}-${PORTVERSION}/dev"| ; \
|
|
s|"/share/man"|"/man"| ; \
|
|
s|"-d"|"-Pp"| ; \
|
|
s|#define MANHTML|| ; \
|
|
s|g++|g++47| ; \
|
|
s|gcc|gcc47|' \
|
|
${WRKSRC}/INSTALL.im
|
|
@${REINPLACE_CMD} -e 's|"-isystem tmp -Wall -O3"|"-isystem tmp ${LOCALBASE}/include -Wall ${CXXFLAGS}"|' \
|
|
${WRKSRC}/build
|
|
@${REINPLACE_CMD} -e 's|"cp -r |"cp -R |' \
|
|
${WRKSRC}/icmake/install
|
|
@${REINPLACE_CMD} -e 's|-lssl|-lssl -L${LOCALBASE}/lib| ; \
|
|
s|-lX11|-lX11 -L${LOCALBASE}/lib| ; \
|
|
s|-lmilter|-lmilter -lpthread|' \
|
|
${WRKSRC}/icmake/special
|
|
.if ! ${PORT_OPTIONS:MDOCS}
|
|
@${REINPLACE_CMD} -e 's|#define DOCOTHER||' \
|
|
${WRKSRC}/INSTALL.im
|
|
.endif
|
|
|
|
do-build:
|
|
@cd ${WRKSRC} && ./build libraries all strip && ./build man
|
|
|
|
do-install:
|
|
@cd ${WRKSRC} && ./build install ${STAGEDIR} ${STAGEDIR}
|
|
|
|
.include <bsd.port.mk>
|