2005-09-16 05:51:25 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.11 2005/09/16 09:51:27 espie Exp $
|
2002-01-26 17:53:21 -05:00
|
|
|
|
|
|
|
COMMENT= "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
|
2005-09-16 05:51:25 -04:00
|
|
|
PKGNAME= ${DISTNAME}p0
|
2005-05-23 18:59:42 -04:00
|
|
|
PKGNAME-python= ${DISTNAME:S/^libdnet/py-libdnet/}
|
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
|
|
|
|
2005-05-22 01:34:52 -04:00
|
|
|
PSEUDO_FLAVORS= no_python
|
|
|
|
FLAVOR?=
|
|
|
|
|
2002-01-26 17:53:21 -05:00
|
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
|
2005-05-22 01:34:52 -04:00
|
|
|
.if ${FLAVOR:L:Mno_python}
|
|
|
|
CONFIGURE_ARGS+= --without-python
|
|
|
|
.else
|
|
|
|
MULTI_PACKAGES= -python
|
|
|
|
SUBPACKAGE?=
|
|
|
|
CONFIGURE_ARGS+= --with-python
|
2005-06-16 01:14:42 -04:00
|
|
|
BUILD_DEPENDS+= :python-${PYTHON_VER}*:lang/python/${PYTHON_VER}
|
2005-05-22 01:34:52 -04:00
|
|
|
PYTHON_VER= 2.3
|
|
|
|
SUBST_VARS= PYTHON_VER
|
2005-05-23 18:59:42 -04:00
|
|
|
. if defined(PACKAGING) && ${SUBPACKAGE} == "-python"
|
2005-05-22 01:34:52 -04:00
|
|
|
LIB_DEPENDS+= python${PYTHON_VER}.0.0:python-${PYTHON_VER}*:lang/python/${PYTHON_VER}
|
|
|
|
WANTLIB+= m pthread util
|
|
|
|
. endif
|
|
|
|
.endif
|
|
|
|
|
2002-01-26 17:53:21 -05:00
|
|
|
.include <bsd.port.mk>
|