50 lines
1.2 KiB
Makefile
50 lines
1.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.15 2006/06/05 10:50:25 alek Exp $
|
|
|
|
COMMENT= "portable low-level networking library"
|
|
COMMENT-python= "python interface to libdnet"
|
|
|
|
DISTNAME= libdnet-1.10
|
|
PKGNAME= ${DISTNAME}p1
|
|
PKGNAME-python= ${DISTNAME:S/^libdnet/py-libdnet/}p1
|
|
SHARED_LIBS= dnet 1.0
|
|
CATEGORIES= net
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libdnet/}
|
|
|
|
HOMEPAGE= http://libdnet.sourceforge.net/
|
|
|
|
MAINTAINER= Michael Coulter <mjc@openbsd.org>
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
WANTLIB= c
|
|
|
|
PSEUDO_FLAVORS= no_python
|
|
FLAVOR?=
|
|
|
|
USE_LIBTOOL= Yes
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
.if ${FLAVOR:L:Mno_python}
|
|
CONFIGURE_ARGS+= --without-python
|
|
.else
|
|
MULTI_PACKAGES= -python
|
|
SUBPACKAGE?=
|
|
CONFIGURE_ARGS+= --with-python
|
|
BUILD_DEPENDS+= :python-${PYTHON_VER}*:lang/python/${PYTHON_VER}
|
|
MAKE_FLAGS= PYTHON=${LOCALBASE}/bin/python${PYTHON_VER}
|
|
FAKE_FLAGS= ${MAKE_FLAGS} DESTDIR=${WRKINST}
|
|
PYTHON_VER= 2.4
|
|
SUBST_VARS= PYTHON_VER
|
|
REGRESS_DEPENDS= ::net/libdnet,-python
|
|
REGRESS_FLAGS= TESTS_ENVIRONMENT=${LOCALBASE}/bin/python${PYTHON_VER}
|
|
. if defined(PACKAGING) && ${SUBPACKAGE} == "-python"
|
|
RUN_DEPENDS= :python-${PYTHON_VER}*:lang/python/${PYTHON_VER}
|
|
WANTLIB=
|
|
. endif
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|