freebsd-ports/net-p2p/i2p/Makefile

134 lines
3.3 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: i2p
# Date created: Sun Jan 9 05:05:02 UTC 2005
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= i2p
2006-10-09 05:05:22 +02:00
PORTVERSION= 0.6.1.26
Populate newly create net-p2p category with these ports: ftp/jigdo net/amule1 net/amule2 net/apollon net/azureus net/bnbt net/btpeer net/btqueue net/cdonkey net/ctorrent net/dcd net/dclib net/dctc net/dctc-gui net/dctc-gui-qt net/edonkey-gui-gtk net/edonkey-gui-gtk-urlslave net/fcptools net/fidelio net/freenet net/frost net/giftcurs net/giftoxic net/giftui net/gift net/gift-fasttrack net/gift-gnutella net/gift-openft net/gkrellm-gift net/gnewtellium net/gnome-btdownload net/gnunet net/gtkhx net/gtk-gnutella net/gtorrentviewer net/hagelslag net/hx net/i2p net/javadc net/kmldonkey net/ktorrent net/libbt net/liberator net/libfreenet net/libpdtp net/libtorrent net/limewire net/linux-agsatellite net/linux-edonkey-core net/linux-edonkey-server net/linux-jigdo net/linux-overnet-core net/minder net/mldonkey net/mldonkey-core net/mldonkey-core-devel net/mldonkey-devel net/mldonkey-gui net/mldonkey-gui-devel net/mldonkey-perlreactor net/mldonkey-sancho net/mldonkey-serverspy net/mldonkey-urlslave net/mutella net/mute-net net/mute-net-gui net/mute-net-text net/napshare net/nicotine net/opendchub net/peercast net/phex net/pyslsk net/py-bittornado net/py-bittornado-core net/py-bittorrent net/py-bittorrent-core net/py-bittorrent-core-devel net/py-bittorrent-devel net/py-fngrab net/py-kenosis net/py-kenosis-bittorrent net/py-py2play net/p5-pdonkey net/qtella net/qtorrent net/rtorrent net/squall net/torrentflux net/torrentsniff net/trackerbt net/transmission net/valknut net/verlihub net/verlihub-plugins net/xmule net/xnap misc/ed2k misc/edonkey-tool-hash misc/linux-edonkey-tool-recovermet Repocopies by: marcus
2006-01-30 22:36:28 +01:00
CATEGORIES= net-p2p java security
MASTER_SITES= http://dev.i2p.net/i2p/
MAINTAINER= lioux@FreeBSD.org
COMMENT= An anonymous network
BUILD_DEPENDS= ${LOCALBASE}/lib/libgmp.a:${PORTSDIR}/math/libgmp4 \
${JAVASHAREDIR}/jetty/ext/ant.jar:${PORTSDIR}/www/jetty \
${JAVASHAREDIR}/jetty/ext/commons-el.jar:${PORTSDIR}/www/jetty \
${JAVASHAREDIR}/jetty/ext/commons-logging.jar:${PORTSDIR}/www/jetty \
${JAVASHAREDIR}/jetty/ext/jasper-compiler.jar:${PORTSDIR}/www/jetty \
${JAVASHAREDIR}/jetty/ext/jasper-runtime.jar:${PORTSDIR}/www/jetty \
${JAVASHAREDIR}/jetty/ext/xercesImpl.jar:${PORTSDIR}/www/jetty \
${JAVASHAREDIR}/jetty/lib/javax.servlet.jar:${PORTSDIR}/www/jetty \
${JAVASHAREDIR}/jetty/lib/org.mortbay.jetty.jar:${PORTSDIR}/www/jetty
RUN_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
USE_BZIP2= yes
USE_RC_SUBR= i2p.sh
2006-04-06 05:33:42 +02:00
JAVA_BUILD= jdk
USE_JAVA= yes
JAVA_VERSION= 1.4
JAVA_OS= native
USE_ANT= yes
ALL_TARGET= \
updater \
tarball
.ifndef(NOPORTDOCS)
ALL_TARGET+= javadoc
.endif
JAVADOC_WRKSRC= ${WRKSRC}/build/javadoc
WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION:S/./_/g}
DOC_FILES= \
readme.html \
allclasses-frame.html \
allclasses-noframe.html \
constant-values.html \
deprecated-list.html \
help-doc.html \
index.html \
overview-frame.html \
overview-summary.html \
overview-tree.html \
package-list \
packages.html \
serialized-form.html \
stylesheet.css
DOC_DIRS= \
freenet/ \
index-files/ \
net/ \
2005-04-02 21:12:32 +02:00
org/ \
resources/
.ifndef(NOPORTDOCS)
PORTDOCS= ${DOC_FILES} \
${DOC_DIRS}
.endif
PLIST_DIRS= \
%%DATADIR%%
PLIST_FILES= \
sbin/i2prouter \
%%DATADIR%%/i2p.tar.bz2 \
%%DATADIR%%/i2pupdate.zip
JETTY_JAR_FILES= \
ext/ant.jar \
ext/commons-el.jar \
ext/commons-logging.jar \
ext/jasper-compiler.jar \
ext/jasper-runtime.jar \
ext/xercesImpl.jar \
lib/javax.servlet.jar \
lib/org.mortbay.jetty.jar
post-patch:
@${SED} \
-e "s|%%DATADIR%%|${DATADIR}|" \
${FILESDIR}/wrapper.sh > ${WRKDIR}/wrapper.sh
# postinstall.sh SHOULD only do post installation house keeping
@${REINPLACE_CMD} -E \
-e 's|./i2prouter[[:space:]]+start||' \
${WRKSRC}/installer/resources/postinstall.sh
pre-build:
# copy jetty jars instead of fetching/building
@${MKDIR} ${WRKSRC}/apps/jetty/jettylib
.for file in ${JETTY_JAR_FILES}
@${CP} ${JAVASHAREDIR}/jetty/${file} ${WRKSRC}/apps/jetty/jettylib
.endfor
do-install:
@${MKDIR} ${DATADIR}
# install
@${INSTALL_DATA} ${WRKSRC}/i2p.tar.bz2 \
${DATADIR}/
# update
@${INSTALL_DATA} ${WRKSRC}/i2pupdate.zip \
${DATADIR}/
# wrapper
@${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh \
${PREFIX}/sbin/i2prouter
# doc
.ifndef(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/readme.html ${DOCSDIR}
.for doc in ${DOC_FILES}
@if [ -f ${JAVADOC_WRKSRC}/${doc} ]; then \
${INSTALL_DATA} ${JAVADOC_WRKSRC}/${doc} ${DOCSDIR} ; \
fi
.endfor
# line taken from textproc/xerces-j maintained by hq@FreeBSD.org
@cd ${JAVADOC_WRKSRC} && \
${FIND} ${DOC_DIRS} -type d -exec ${MKDIR} "${DOCSDIR}/{}" \; && \
${FIND} ${DOC_DIRS} -not -type d -exec ${INSTALL_DATA} "{}" "${DOCSDIR}/{}" \;
.endif
.include <bsd.port.mk>