1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/net-p2p/liberator/Makefile
Pawel Pekala 2071a2004a - Add staging support
- Convert to USES=tar:bzip2, USE_OCAML, new options framework
2014-06-27 18:39:57 +00:00

53 lines
1.5 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
USES= tar:bzip2
USE_OCAML= yes
ALL_TARGET= all opt
MAKE_JOBS_UNSAFE=yes
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
OPTIONS_DEFINE= DOCS
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:
${INSTALL_PROGRAM} ${WRKSRC}/liber ${STAGEDIR}${PREFIX}/bin/liber-real
${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${STAGEDIR}${PREFIX}/bin/liber
@${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${DATA_FILES:S|^|${WRKSRC}/|} ${STAGEDIR}${DATADIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOC_FILES:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/ocaml
${INSTALL_DATA} ${LIB_FILES:S|^|${WRKSRC}/|} \
${STAGEDIR}${PREFIX}/lib/ocaml
.include <bsd.port.mk>