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>