openbsd-ports/net/mldonkey/stable/Makefile
2010-10-11 08:11:24 +00:00

65 lines
1.8 KiB
Makefile

# $OpenBSD: Makefile,v 1.35 2010/10/11 08:16:51 jasper Exp $
COMMENT = e-donkey client
DISTNAME = mldonkey-3.0.5
REVISION = 0
CATEGORIES = net
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
WANTLIB += X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext
WANTLIB += Xfixes Xi Xinerama Xrandr Xrender atk-1.0 bz2
WANTLIB += c cairo charset expat fontconfig freetype gd
WANTLIB += gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 glib-2.0
WANTLIB += gmodule-2.0 gobject-2.0 gthread-2.0
WANTLIB += gtk-x11-2.0 iconv intl jpeg m magic pango-1.0
WANTLIB += pangocairo-1.0 pangoft2-1.0 pixman-1 png
WANTLIB += pthread pthread-stubs rsvg-2 stdc++ xcb
WANTLIB += xcb-render xcb-render-util z
CONFIGURE_STYLE = autoconf no-autoheader
AUTOCONF_DIR = ${WRKSRC}/config
AUTOCONF_VERSION = 2.61
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/config
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'
USE_X11 = Yes
USE_GMAKE = Yes
MODULES = lang/ocaml
BUILD_DEPENDS = ::x11/lablgtk2
LIB_DEPENDS = ::x11/gnome/librsvg \
::archivers/bzip2 \
::graphics/gd \
::devel/libmagic
FAKE_FLAGS = MODOCAML_NATIVE=${MODOCAML_NATIVE}
NO_REGRESS = Yes
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/mldonkey
cp -R ${WRKDIST}/distrib ${PREFIX}/share/mldonkey/
@${strip_binaries}
.include <bsd.port.mk>
.if ${MODOCAML_NATIVE:L} == "yes"
strip_binaries=cd ${PREFIX}/bin && strip mlnet mlgui mlnet+gui
.else
strip_binaries=:
.endif