aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p/ed2k
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2013-10-28 06:29:46 +0800
committerdinoex <dinoex@FreeBSD.org>2013-10-28 06:29:46 +0800
commita9ff4b49c10701f4d22eb1a173e03064089672bb (patch)
tree2f75f2dd22479e7d9e0d627ea798a4d2a036e75f /net-p2p/ed2k
parentaa3da1c84cdb0e5dfb190c16f74ea3d9def166a7 (diff)
downloadfreebsd-ports-gnome-a9ff4b49c10701f4d22eb1a173e03064089672bb.tar.gz
freebsd-ports-gnome-a9ff4b49c10701f4d22eb1a173e03064089672bb.tar.zst
freebsd-ports-gnome-a9ff4b49c10701f4d22eb1a173e03064089672bb.zip
- use STAGEDIR
- use OPTIONS_DEFINE
Diffstat (limited to 'net-p2p/ed2k')
-rw-r--r--net-p2p/ed2k/Makefile17
1 files changed, 11 insertions, 6 deletions
diff --git a/net-p2p/ed2k/Makefile b/net-p2p/ed2k/Makefile
index 40d6e5824c80..fad5b9755cca 100644
--- a/net-p2p/ed2k/Makefile
+++ b/net-p2p/ed2k/Makefile
@@ -13,20 +13,25 @@ MAINTAINER= dinoex@FreeBSD.org
COMMENT= Calculates 'eMule' hashes or producing ed2k:// file links
CONFLICTS= amule-*
-NO_STAGE= yes
NO_WRKSUBDIR= yes
MAKEFILE= /dev/null
ALL_TARGET= ed2k
PLIST_FILES= bin/ed2k
-.if defined(WITHOUT_OPENSSL)
-OPENSSLSUFFIX= -rsa
-CFLAGS+= -DWITH_RSA
-.else
+OPTIONS_DEFINE= OPENSSL
+OPTIONS_DEFAULT=OPENSSL
+OPENSSL_DESC= use faster hash libs from OpenSSL
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MOPENSSL}
OPENSSLSUFFIX= -openssl
USE_OPENSSL= yes
LDLIBS+= -lmd
+.else
+OPENSSLSUFFIX= -rsa
+CFLAGS+= -DWITH_RSA
.endif
MAKE_ARGS+= CFLAGS="${CFLAGS}"
@@ -36,6 +41,6 @@ post-extract:
${CP} -p ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME} ${WRKSRC}/
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/ed2k ${PREFIX}/bin/
+ ${INSTALL_PROGRAM} ${WRKSRC}/ed2k ${STAGEDIR}${PREFIX}/bin/
.include <bsd.port.mk>
.04 to v1.05aaron2006-05-292-5/+3 * Replace ugly "@unexec rmdir %D... 2>/dev/null || true" with @dirrmtryedwin2006-01-221-2/+2 * Take a perl@ hat and add SHA256 checksumsmat2005-11-141-0/+1 * search.cpan.org redirect reduction canonicalization project, pass 1:fenner2005-09-221-1/+1 * * reflect renaming on CPAN File-Spec to PathToolsskv2005-06-121-14/+5 * Update to 1.04.tobez2005-03-182-3/+3