2011-09-16 07:13:37 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.44 2011/09/16 11:13:38 espie Exp $
|
2009-10-29 04:28:09 -04:00
|
|
|
|
|
|
|
COMMENT = e-donkey client
|
2011-09-16 06:04:32 -04:00
|
|
|
DISTNAME = mldonkey-3.1.0
|
2009-10-29 04:28:09 -04:00
|
|
|
CATEGORIES = net
|
|
|
|
|
2011-09-16 07:13:37 -04:00
|
|
|
REVISION = 3
|
|
|
|
|
2009-10-29 04:28:09 -04:00
|
|
|
HOMEPAGE = http://mldonkey.sourceforge.net/Main_Page
|
|
|
|
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=mldonkey/}
|
|
|
|
|
2010-03-30 03:56:30 -04:00
|
|
|
MAINTAINER = David Coppa <dcoppa@openbsd.org>
|
2009-10-29 04:28:09 -04:00
|
|
|
|
|
|
|
# GPLv2
|
|
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
PERMIT_DISTFILES_FTP = Yes
|
|
|
|
PERMIT_DISTFILES_CDROM =Yes
|
|
|
|
|
|
|
|
EXTRACT_SUFX = .tar.bz2
|
2010-10-11 02:45:10 -04:00
|
|
|
|
2011-09-16 06:04:32 -04:00
|
|
|
WANTLIB += GL X11 Xcomposite Xcursor Xdamage Xext
|
|
|
|
WANTLIB += Xfixes Xi Xinerama Xrandr Xrender atk-1.0
|
|
|
|
WANTLIB += bz2 c cairo charset expat fontconfig
|
|
|
|
WANTLIB += freetype gd gdk-x11-2.0 gdk_pixbuf-2.0
|
|
|
|
WANTLIB += gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0
|
|
|
|
WANTLIB += gthread-2.0 gtk-x11-2.0 jpeg m magic
|
|
|
|
WANTLIB += pixman-1 pango-1.0 pangocairo-1.0
|
|
|
|
WANTLIB += pangoft2-1.0 png pthread pthread-stubs
|
|
|
|
WANTLIB += rsvg-2 stdc++ xcb xcb-render xcb-shm z
|
2010-10-11 02:45:10 -04:00
|
|
|
|
2009-10-29 04:28:09 -04:00
|
|
|
CONFIGURE_STYLE = autoconf no-autoheader
|
|
|
|
AUTOCONF_DIR = ${WRKSRC}/config
|
2011-09-16 06:04:32 -04:00
|
|
|
AUTOCONF_VERSION = 2.68
|
2004-08-03 14:24:40 -04:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/config
|
2004-03-07 14:10:53 -05:00
|
|
|
|
2009-10-29 04:28:09 -04:00
|
|
|
CONFIGURE_ARGS += --enable-gui=newgui2
|
|
|
|
CONFIGURE_ENV += CPPFLAGS='-I${LOCALBASE}/include/libpng\
|
|
|
|
-I${LOCALBASE}/include -I${X11BASE}/include'
|
|
|
|
CONFIGURE_ENV += LDFLAGS='-L${LOCALBASE}/lib -L${X11BASE}/lib'
|
2004-03-07 14:10:53 -05:00
|
|
|
|
2009-10-29 04:28:09 -04:00
|
|
|
USE_GMAKE = Yes
|
2011-07-06 14:57:09 -04:00
|
|
|
MODULES = lang/ocaml devel/gettext
|
2010-11-19 17:31:32 -05:00
|
|
|
BUILD_DEPENDS = x11/lablgtk2
|
|
|
|
LIB_DEPENDS = x11/gnome/librsvg \
|
|
|
|
archivers/bzip2 \
|
|
|
|
graphics/gd \
|
2011-04-05 10:42:39 -04:00
|
|
|
devel/libmagic \
|
|
|
|
x11/gtk+2
|
2006-06-07 03:50:47 -04:00
|
|
|
|
2009-10-29 04:28:09 -04:00
|
|
|
FAKE_FLAGS = MODOCAML_NATIVE=${MODOCAML_NATIVE}
|
|
|
|
NO_REGRESS = Yes
|
2004-03-07 14:10:53 -05:00
|
|
|
|
|
|
|
post-install:
|
2010-10-11 02:45:10 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/mldonkey
|
|
|
|
cp -R ${WRKDIST}/distrib ${PREFIX}/share/mldonkey/
|
2005-05-16 14:49:13 -04:00
|
|
|
@${strip_binaries}
|
2004-03-07 14:10:53 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|
2005-05-16 14:49:13 -04:00
|
|
|
|
|
|
|
.if ${MODOCAML_NATIVE:L} == "yes"
|
2006-10-27 03:23:50 -04:00
|
|
|
strip_binaries=cd ${PREFIX}/bin && strip mlnet mlgui mlnet+gui
|
2005-05-16 14:49:13 -04:00
|
|
|
.else
|
|
|
|
strip_binaries=:
|
|
|
|
.endif
|