openbsd-ports/net/mldonkey/stable/Makefile
2010-03-30 07:56:30 +00:00

61 lines
1.7 KiB
Makefile

# $OpenBSD: Makefile,v 1.29 2010/03/30 08:03:31 dcoppa Exp $
COMMENT = e-donkey client
DISTNAME = mldonkey-3.0.1
PKGNAME = ${DISTNAME}p1
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 \
Xfixes Xi Xinerama Xrandr Xrender atk-1.0 c cairo \
charset expat fontconfig freetype gdk-x11-2.0 \
gdk_pixbuf-2.0 gio-2.0 glib-2.0 glitz gmodule-2.0 \
gobject-2.0 gtk-x11-2.0 iconv intl jpeg m pango-1.0 \
pangocairo-1.0 pangoft2-1.0 pixman-1 png pthread \
stdc++ pthread-stubs xcb 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 = rsvg-2::x11/gnome/librsvg \
bz2::archivers/bzip2 \
gd::graphics/gd \
magic::devel/libmagic
FAKE_FLAGS = MODOCAML_NATIVE=${MODOCAML_NATIVE}
NO_REGRESS = Yes
post-install:
mkdir -p ${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