openbsd-ports/net/mldonkey/stable/Makefile

66 lines
1.7 KiB
Makefile
Raw Normal View History

2011-09-16 07:13:37 -04:00
# $OpenBSD: Makefile,v 1.44 2011/09/16 11:13:38 espie Exp $
COMMENT = e-donkey client
2011-09-16 06:04:32 -04:00
DISTNAME = mldonkey-3.1.0
CATEGORIES = net
2011-09-16 07:13:37 -04:00
REVISION = 3
HOMEPAGE = http://mldonkey.sourceforge.net/Main_Page
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=mldonkey/}
MAINTAINER = David Coppa <dcoppa@openbsd.org>
# GPLv2
PERMIT_PACKAGE_FTP = Yes
PERMIT_PACKAGE_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
EXTRACT_SUFX = .tar.bz2
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
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
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
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 \
devel/libmagic \
x11/gtk+2
FAKE_FLAGS = MODOCAML_NATIVE=${MODOCAML_NATIVE}
NO_REGRESS = Yes
2004-03-07 14:10:53 -05:00
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/mldonkey
cp -R ${WRKDIST}/distrib ${PREFIX}/share/mldonkey/
@${strip_binaries}
2004-03-07 14:10:53 -05:00
.include <bsd.port.mk>
.if ${MODOCAML_NATIVE:L} == "yes"
2006-10-27 03:23:50 -04:00
strip_binaries=cd ${PREFIX}/bin && strip mlnet mlgui mlnet+gui
.else
strip_binaries=:
.endif