blob: c72b9c5decfe44f8a757f0ae3c6286a614004a65 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# 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
USE_OCAML_CAMLP4=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>
|