summaryrefslogtreecommitdiff
path: root/net-p2p/linux-edonkey-core/Makefile
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2002-01-22 15:47:28 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2002-01-22 15:47:28 +0000
commita24eab08cd055c48e9743c4eb80abfcaef433883 (patch)
tree7cc770dd6b12a24468e77662662e0dc00df22230 /net-p2p/linux-edonkey-core/Makefile
parentUpdate to 1.0. (diff)
o New port edonkey-core version 0.2000.15.16.58.0.2: eDonkey2000
'core' command line client o README.FreeBSD worked with pat Reviewed by: pat
Notes
Notes: svn path=/head/; revision=53573
Diffstat (limited to 'net-p2p/linux-edonkey-core/Makefile')
-rw-r--r--net-p2p/linux-edonkey-core/Makefile57
1 files changed, 57 insertions, 0 deletions
diff --git a/net-p2p/linux-edonkey-core/Makefile b/net-p2p/linux-edonkey-core/Makefile
new file mode 100644
index 000000000000..550c7564338c
--- /dev/null
+++ b/net-p2p/linux-edonkey-core/Makefile
@@ -0,0 +1,57 @@
+# New ports collection makefile for: eDonkey2000 'core' command line client
+# Date created: Fri Jan 4 22:44:56 BRST 2002
+# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= edonkey
+PORTVERSION= 0.2000.15.16.58.0.2
+CATEGORIES= net linux
+MASTER_SITES= http://users.aber.ac.uk/tpm01/
+PKGNAMESUFFIX= -core
+DISTNAME= donkey_s_58test-2
+EXTRACT_SUFX= .gz
+EXTRACT_ONLY=
+
+MAINTAINER= lioux@FreeBSD.org
+
+ONLY_FOR_ARCHS= i386
+USE_LINUX= yes
+NO_WRKSUBDIR= yes
+NO_BUILD= yes
+STRIP=
+
+STRIP_CMD= ${LINUXBASE}/usr/bin/strip
+
+.if exists(/usr/bin/brandelf)
+BRANDELF?= /usr/bin/brandelf
+.else
+BRANDELF?= brandelf
+.endif
+
+BINARY_NAME= donkey
+
+post-extract:
+ @${GZCAT} ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} > ${WRKSRC}/${BINARY_NAME}
+
+post-patch:
+ @${SED} -e "s|%%PREFIX%%|${PREFIX}|" ${FILESDIR}/wrapper.sh > \
+ ${WRKDIR}/wrapper.sh
+
+pre-install:
+.if exists(${STRIP_CMD})
+ @${STRIP_CMD} ${WRKSRC}/${BINARY_NAME}
+.endif
+ @${BRANDELF} -t Linux ${WRKSRC}/${BINARY_NAME}
+
+do-install:
+ @${INSTALL_PROGRAM} ${WRKSRC}/${BINARY_NAME} ${PREFIX}/bin/${BINARY_NAME}-real
+ @${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/${BINARY_NAME}
+.ifndef(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}${PKGNAMESUFFIX}
+ @${INSTALL_DATA} ${FILESDIR}/README.FreeBSD ${DOCSDIR}${PKGNAMESUFFIX}
+.endif
+ @${SED} s!/usr/local/share/doc/edonkey-core!${DOCSDIR}${PKGNAMESUFFIX}! ${PKGMESSAGE}
+
+.include <bsd.port.mk>