2006-11-22 03:29:56 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.16 2006/11/22 08:29:56 espie Exp $
|
2002-01-26 17:53:21 -05:00
|
|
|
|
2006-11-22 03:29:56 -05:00
|
|
|
COMMENT-main= "portable low-level networking library"
|
2005-05-22 01:34:52 -04:00
|
|
|
COMMENT-python= "python interface to libdnet"
|
2002-01-26 17:53:21 -05:00
|
|
|
|
2005-05-22 01:34:52 -04:00
|
|
|
DISTNAME= libdnet-1.10
|
2006-11-22 03:29:56 -05:00
|
|
|
PKGNAME-main= ${DISTNAME}p2
|
2006-06-05 06:50:25 -04:00
|
|
|
PKGNAME-python= ${DISTNAME:S/^libdnet/py-libdnet/}p1
|
2006-01-08 06:13:45 -05:00
|
|
|
SHARED_LIBS= dnet 1.0
|
2002-01-26 17:53:21 -05:00
|
|
|
CATEGORIES= net
|
2002-05-15 13:42:24 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libdnet/}
|
2002-01-26 17:53:21 -05:00
|
|
|
|
|
|
|
HOMEPAGE= http://libdnet.sourceforge.net/
|
|
|
|
|
2005-05-22 01:34:52 -04:00
|
|
|
MAINTAINER= Michael Coulter <mjc@openbsd.org>
|
2002-01-26 17:53:21 -05:00
|
|
|
|
2002-05-20 06:29:15 -04:00
|
|
|
# BSD
|
2002-01-26 17:53:21 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2004-12-15 19:31:20 -05:00
|
|
|
WANTLIB= c
|
2002-01-26 17:53:21 -05:00
|
|
|
|
2006-06-05 06:50:25 -04:00
|
|
|
PSEUDO_FLAVORS= no_python
|
2005-05-22 01:34:52 -04:00
|
|
|
FLAVOR?=
|
|
|
|
|
2006-06-05 06:50:25 -04:00
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
CONFIGURE_STYLE= gnu
|
2006-11-22 03:29:56 -05:00
|
|
|
MULTI_PACKAGES= -main
|
2002-01-26 17:53:21 -05:00
|
|
|
|
2005-05-22 01:34:52 -04:00
|
|
|
.if ${FLAVOR:L:Mno_python}
|
|
|
|
CONFIGURE_ARGS+= --without-python
|
|
|
|
.else
|
2006-11-22 03:29:56 -05:00
|
|
|
MULTI_PACKAGES+= -python
|
2005-05-22 01:34:52 -04:00
|
|
|
CONFIGURE_ARGS+= --with-python
|
2005-06-16 01:14:42 -04:00
|
|
|
BUILD_DEPENDS+= :python-${PYTHON_VER}*:lang/python/${PYTHON_VER}
|
2005-12-31 08:10:15 -05:00
|
|
|
MAKE_FLAGS= PYTHON=${LOCALBASE}/bin/python${PYTHON_VER}
|
|
|
|
FAKE_FLAGS= ${MAKE_FLAGS} DESTDIR=${WRKINST}
|
2006-06-05 06:50:25 -04:00
|
|
|
PYTHON_VER= 2.4
|
2005-05-22 01:34:52 -04:00
|
|
|
SUBST_VARS= PYTHON_VER
|
2006-06-05 06:50:25 -04:00
|
|
|
REGRESS_DEPENDS= ::net/libdnet,-python
|
|
|
|
REGRESS_FLAGS= TESTS_ENVIRONMENT=${LOCALBASE}/bin/python${PYTHON_VER}
|
2006-11-22 03:29:56 -05:00
|
|
|
RUN_DEPENDS-python= :python-${PYTHON_VER}*:lang/python/${PYTHON_VER}
|
|
|
|
WANTLIB-python=
|
2005-05-22 01:34:52 -04:00
|
|
|
.endif
|
|
|
|
|
2002-01-26 17:53:21 -05:00
|
|
|
.include <bsd.port.mk>
|