1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00
freebsd-ports/net-p2p/liberator/Makefile
2013-10-06 21:51:02 +00:00

65 lines
1.6 KiB
Makefile

# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
# $FreeBSD$
PORTNAME= liberator
PORTVERSION= 2.0.2
PORTREVISION= 1
CATEGORIES= net-p2p
MASTER_SITES= SF/${PORTNAME}/ofcp/ofcp-${PORTVERSION}
DISTNAME= ofcp-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Command line client to FreeNet Network
MAKE_JOBS_UNSAFE= yes
BUILD_DEPENDS= ocamlc:${PORTSDIR}/lang/ocaml
USE_BZIP2= yes
ALL_TARGET= all opt
DATA_FILES= liber_mimetypes
DOC_FILES= COPYING FREESITE-HOWTO README TODO
LIB_FILES= fcp.cma hlfi.cma asfi.cma fcp.cmxa hlfi.cmxa asfi.cmxa \
fcp.mli hlfreenet.mli asfreenet.mli fieldset.mli \
fstream.mli \
fcp.cmi hlfreenet.cmi asfreenet.cmi fieldset.cmi \
fstream.cmi
NO_STAGE= yes
post-patch:
@${SED} -e 's|%%PREFIX%%|${PREFIX}|; \
s|%%DATADIR%%|${DATADIR:S,^${PREFIX}/,,}|' \
${FILESDIR}/wrapper.sh > ${WRKDIR}/wrapper.sh
do-configure:
@${REINPLACE_CMD} -E \
-e 's|^(PREFIX).*$$|\1=${PREFIX}|; \
s|^(OCAML_PREFIX).*$$|\1=${PREFIX}/lib/ocaml|' \
${WRKSRC}/Makefile
do-install:
# bin
@${INSTALL_PROGRAM} ${WRKSRC}/liber ${PREFIX}/bin/liber-real
@${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/liber
# data
@${MKDIR} ${DATADIR}
.for file in ${DATA_FILES}
@${INSTALL_DATA} ${WRKSRC}/${file} ${DATADIR}
.endfor
# doc
.ifndef(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
.for file in ${DOC_FILES}
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
.endfor
.endif
# lib
@${MKDIR} ${PREFIX}/lib/ocaml
.for file in ${LIB_FILES}
@${INSTALL_DATA} ${WRKSRC}/${file} ${PREFIX}/lib/ocaml
.endfor
.include <bsd.port.mk>