2022-02-03 22:17:27 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.80 2022/02/03 22:17:27 sthen Exp $
|
2005-06-07 17:24:49 +00:00
|
|
|
|
2011-06-24 08:42:31 +00:00
|
|
|
COMMENT-main = another eDonkey P2P file sharing client
|
2007-07-08 18:09:58 +00:00
|
|
|
COMMENT-web = webserver interface to amuled
|
|
|
|
COMMENT-daemon =stand-alone daemon/cmdline for amule
|
2005-06-07 17:24:49 +00:00
|
|
|
|
2022-02-03 22:17:27 +00:00
|
|
|
V = 2.3.3
|
2007-07-08 18:09:58 +00:00
|
|
|
DISTNAME = aMule-$V
|
|
|
|
CATEGORIES = net
|
2005-06-07 17:24:49 +00:00
|
|
|
|
2007-07-08 18:09:58 +00:00
|
|
|
HOMEPAGE = http://www.amule.org/
|
2021-02-28 12:40:28 +00:00
|
|
|
PORTROACH = site:https://github.com/amule-project/amule/releases/
|
2011-11-28 15:28:49 +00:00
|
|
|
|
2007-07-08 18:09:58 +00:00
|
|
|
MULTI_PACKAGES =-main -web -daemon
|
2011-11-28 15:28:49 +00:00
|
|
|
|
2010-07-12 22:07:37 +00:00
|
|
|
PKGNAME-main = amule-$V
|
2007-07-08 18:09:58 +00:00
|
|
|
PKGNAME-daemon =amuled-$V
|
|
|
|
PKGNAME-web = amuleweb-$V
|
2005-06-07 17:24:49 +00:00
|
|
|
|
2011-07-27 13:11:59 +00:00
|
|
|
# GPLv2
|
2019-07-12 20:46:54 +00:00
|
|
|
PERMIT_PACKAGE = Yes
|
2005-06-07 17:24:49 +00:00
|
|
|
|
2007-07-08 18:09:58 +00:00
|
|
|
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=amule/}
|
2011-11-28 15:28:49 +00:00
|
|
|
EXTRACT_SUFX = .tar.xz
|
2005-06-07 17:24:49 +00:00
|
|
|
|
2011-06-24 08:42:31 +00:00
|
|
|
LIB_DEPENDS =
|
|
|
|
WANTLIB =
|
|
|
|
RUN_DEPENDS =
|
2005-06-07 17:24:49 +00:00
|
|
|
|
2018-10-24 14:27:57 +00:00
|
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
|
2013-08-16 10:54:21 +00:00
|
|
|
# bison needed if .y files are patched
|
2017-09-14 16:21:15 +00:00
|
|
|
BUILD_DEPENDS = devel/bison \
|
2019-05-20 22:15:00 +00:00
|
|
|
devel/gettext,-tools
|
2005-06-07 17:24:49 +00:00
|
|
|
|
2019-04-29 08:24:06 +00:00
|
|
|
commonLIB_DEPENDS = x11/wxWidgets>=3.0.4
|
2005-06-07 17:24:49 +00:00
|
|
|
|
2011-06-24 08:42:31 +00:00
|
|
|
LIB_DEPENDS-main = ${LIB_DEPENDS} ${commonLIB_DEPENDS} \
|
|
|
|
devel/cryptopp>=5.6.0 \
|
2020-02-08 16:30:09 +00:00
|
|
|
graphics/gd
|
2011-06-24 08:42:31 +00:00
|
|
|
|
|
|
|
LIB_DEPENDS-daemon = ${LIB_DEPENDS} ${commonLIB_DEPENDS} \
|
|
|
|
devel/cryptopp>=5.6.0
|
|
|
|
|
2017-09-14 16:21:15 +00:00
|
|
|
LIB_DEPENDS-web = ${LIB_DEPENDS} ${commonLIB_DEPENDS} \
|
2022-02-03 22:17:27 +00:00
|
|
|
converters/libiconv \
|
2019-05-20 22:15:00 +00:00
|
|
|
devel/gettext,-runtime
|
2011-06-24 08:42:31 +00:00
|
|
|
|
|
|
|
RUN_DEPENDS-main = ${RUN_DEPENDS} \
|
|
|
|
devel/desktop-file-utils
|
|
|
|
|
2022-02-03 22:17:27 +00:00
|
|
|
commonWANTLIB = c execinfo m pthread ${COMPILER_LIBCXX} \
|
|
|
|
wx_baseu-3.0 wx_baseu_net-3.0 z
|
2011-06-24 08:42:31 +00:00
|
|
|
WANTLIB-main = ${WANTLIB} ${commonWANTLIB} \
|
2022-02-03 22:17:27 +00:00
|
|
|
cryptopp gd readline wx_gtk3u_adv-3.0 wx_gtk3u_core-3.0
|
2019-01-02 12:44:06 +00:00
|
|
|
|
2011-06-24 08:42:31 +00:00
|
|
|
WANTLIB-daemon = ${WANTLIB} ${commonWANTLIB} \
|
2019-01-02 12:44:06 +00:00
|
|
|
cryptopp readline
|
|
|
|
|
2011-06-24 08:42:31 +00:00
|
|
|
WANTLIB-web = ${WANTLIB} ${commonWANTLIB} \
|
2019-05-17 16:45:25 +00:00
|
|
|
iconv intl png readline
|
2011-06-24 08:42:31 +00:00
|
|
|
|
|
|
|
USE_GMAKE = Yes
|
|
|
|
|
|
|
|
CONFIGURE_STYLE = autoconf
|
2022-02-03 22:17:27 +00:00
|
|
|
AUTOCONF_VERSION = 2.69
|
2011-06-24 08:42:31 +00:00
|
|
|
|
|
|
|
CONFIGURE_ARGS = --disable-optimize \
|
|
|
|
--disable-profile \
|
2011-11-28 15:28:49 +00:00
|
|
|
--disable-plasmamule \
|
2019-04-29 08:24:06 +00:00
|
|
|
--disable-upnp \
|
2011-11-28 15:28:49 +00:00
|
|
|
--disable-xas \
|
2011-06-24 08:42:31 +00:00
|
|
|
--enable-alc \
|
|
|
|
--enable-alcc \
|
2007-07-08 18:09:58 +00:00
|
|
|
--enable-amule-daemon \
|
2011-06-24 08:42:31 +00:00
|
|
|
--enable-amule-gui \
|
2007-07-08 18:09:58 +00:00
|
|
|
--enable-amulecmd \
|
2011-06-24 08:42:31 +00:00
|
|
|
--enable-cas \
|
2007-07-08 18:09:58 +00:00
|
|
|
--enable-webserver \
|
2011-06-24 08:42:31 +00:00
|
|
|
--enable-wxcas \
|
|
|
|
--with-denoise-level=0 \
|
|
|
|
--with-libiconv-prefix=${LOCALBASE} \
|
2011-11-28 15:28:49 +00:00
|
|
|
--with-libpng-config=${LOCALBASE}/bin/libpng-config
|
2011-06-24 08:42:31 +00:00
|
|
|
|
|
|
|
.ifndef DEBUG
|
|
|
|
CONFIGURE_ARGS += --disable-debug
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS += --enable-debug
|
|
|
|
.endif
|
|
|
|
|
|
|
|
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include" \
|
2022-02-03 22:17:27 +00:00
|
|
|
LDFLAGS=-lexecinfo \
|
2011-06-24 08:42:31 +00:00
|
|
|
LOCALDIR="${LOCALBASE}" \
|
2022-02-03 22:17:27 +00:00
|
|
|
X11R6DIR="${X11BASE}" \
|
|
|
|
ac_cv_header_bfd_h=false
|
2011-06-24 08:42:31 +00:00
|
|
|
|
|
|
|
MAKE_FLAGS += CXXFLAGS="${CXXFLAGS} -Wno-deprecated \
|
2016-09-19 14:06:53 +00:00
|
|
|
-Wno-shadow -Wno-sign-compare \
|
|
|
|
-Wno-unused"
|
2005-06-07 17:24:49 +00:00
|
|
|
|
2011-06-24 08:42:31 +00:00
|
|
|
pre-configure:
|
|
|
|
${SUBST_CMD} ${WRKSRC}/src/utils/cas/configfile.c
|
2016-09-19 14:06:53 +00:00
|
|
|
rm ${WRKSRC}/docs/man/a*.*.1 \
|
|
|
|
${WRKSRC}/docs/man/e*.*.1 \
|
|
|
|
${WRKSRC}/src/utils/*/docs/a*.*.1 \
|
|
|
|
${WRKSRC}/src/utils/*/docs/c*.*.1 \
|
2016-09-19 19:15:48 +00:00
|
|
|
${WRKSRC}/src/utils/*/docs/w*.*.1
|
2007-07-08 18:09:58 +00:00
|
|
|
|
|
|
|
post-install:
|
2007-07-15 20:44:41 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKDIST}/src/utils/scripts/mldonkey_importer.pl \
|
|
|
|
${PREFIX}/bin/mldonkey_importer
|
2007-07-08 18:09:58 +00:00
|
|
|
|
2005-06-07 17:24:49 +00:00
|
|
|
.include <bsd.port.mk>
|