diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2013-10-27 22:29:46 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2013-10-27 22:29:46 +0000 |
commit | 338eecf23761d8a27351a0657ead88ab54a8f9da (patch) | |
tree | 2f75f2dd22479e7d9e0d627ea798a4d2a036e75f /net-p2p | |
parent | 2078f2a7ae31de5a4474e59c2d813276c225277f (diff) |
- use STAGEDIR
- use OPTIONS_DEFINE
Notes
Notes:
svn path=/head/; revision=331810
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/ed2k/Makefile | 17 |
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> |