2017-09-14 16:21:15 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.64 2017/09/14 16:21:15 dcoppa 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
|
|
|
|
2016-09-19 14:06:53 +00:00
|
|
|
V = 2.3.2
|
2007-07-08 18:09:58 +00:00
|
|
|
DISTNAME = aMule-$V
|
2017-09-14 16:21:15 +00:00
|
|
|
REVISION = 6
|
2007-07-08 18:09:58 +00:00
|
|
|
CATEGORIES = net
|
2005-06-07 17:24:49 +00:00
|
|
|
|
2007-07-08 18:09:58 +00:00
|
|
|
HOMEPAGE = http://www.amule.org/
|
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
|
2007-07-08 18:09:58 +00:00
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
2005-06-07 17:24:49 +00:00
|
|
|
|
2012-11-08 10:06:04 +00:00
|
|
|
MAINTAINER = David Coppa <dcoppa@openbsd.org>
|
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
|
|
|
|
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 \
|
|
|
|
devel/gettext-tools
|
2005-06-07 17:24:49 +00:00
|
|
|
|
2011-07-28 11:06:40 +00:00
|
|
|
commonLIB_DEPENDS = x11/wxWidgets>=2.8.12 \
|
2011-06-24 08:42:31 +00:00
|
|
|
net/libupnp>=1.6.6
|
2005-06-07 17:24:49 +00:00
|
|
|
|
2011-06-24 08:42:31 +00:00
|
|
|
LIB_DEPENDS-main = ${LIB_DEPENDS} ${commonLIB_DEPENDS} \
|
2017-09-14 16:21:15 +00:00
|
|
|
converters/libiconv \
|
2011-06-24 08:42:31 +00:00
|
|
|
devel/cryptopp>=5.6.0 \
|
|
|
|
graphics/gd \
|
|
|
|
net/GeoIP
|
|
|
|
|
|
|
|
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} \
|
|
|
|
devel/gettext
|
2011-06-24 08:42:31 +00:00
|
|
|
|
|
|
|
RUN_DEPENDS-main = ${RUN_DEPENDS} \
|
|
|
|
devel/desktop-file-utils
|
|
|
|
|
2017-07-16 19:18:47 +00:00
|
|
|
commonWANTLIB = c ixml m pthread ${COMPILER_LIBCXX} threadutil upnp \
|
2011-06-24 08:42:31 +00:00
|
|
|
wx_base wx_base_net z
|
|
|
|
WANTLIB-main = ${WANTLIB} ${commonWANTLIB} \
|
2017-05-15 19:56:02 +00:00
|
|
|
GeoIP X11 cryptopp fontconfig tiff webp \
|
2017-09-14 16:21:15 +00:00
|
|
|
freetype gd iconv jpeg png wx_gtk2_adv wx_gtk2_core
|
2011-06-24 08:42:31 +00:00
|
|
|
WANTLIB-daemon = ${WANTLIB} ${commonWANTLIB} \
|
|
|
|
cryptopp readline termcap
|
|
|
|
WANTLIB-web = ${WANTLIB} ${commonWANTLIB} \
|
2017-09-14 16:21:15 +00:00
|
|
|
iconv intl png readline termcap
|
2011-06-24 08:42:31 +00:00
|
|
|
|
|
|
|
USE_GMAKE = Yes
|
|
|
|
|
|
|
|
CONFIGURE_STYLE = autoconf
|
2011-11-28 15:28:49 +00:00
|
|
|
AUTOCONF_VERSION = 2.65
|
2011-06-24 08:42:31 +00:00
|
|
|
|
|
|
|
CONFIGURE_ARGS = --disable-optimize \
|
|
|
|
--disable-profile \
|
2011-11-28 15:28:49 +00:00
|
|
|
--disable-plasmamule \
|
|
|
|
--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 \
|
|
|
|
--enable-geoip \
|
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" \
|
|
|
|
LOCALDIR="${LOCALBASE}" \
|
2015-11-20 17:17:50 +00:00
|
|
|
X11R6DIR="${X11BASE}"
|
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>
|