move WANTLIB+=${MODPY_WANTLIB} within the .if ${FLAVOR:L:Mpython} block;

no package change as the python module is only included if the python
flavour is selected (and unless that's included, MODPY_WANTLIB is blank),
but it's clearer this way.

side-note, python bindings should probably be split into a subpackage
sometime, there seems to be no need to have a separate flavour for this.
This commit is contained in:
sthen 2011-06-15 23:33:00 +00:00
parent d3e2db6d34
commit 5cafe8835d

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.21 2011/06/08 18:15:29 rpointel Exp $
# $OpenBSD: Makefile,v 1.22 2011/06/15 23:33:00 sthen Exp $
SHARED_ONLY= Yes
@ -18,7 +18,8 @@ PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c pthread z ${MODPY_WANTLIB}
WANTLIB= c pthread z
MASTER_SITES= ${HOMEPAGE}/downloads/
@ -37,6 +38,7 @@ FLAVOR?=
.if ${FLAVOR:L:Mpython}
MODULES= lang/python
CONFIGURE_ARGS+= --with-python=${MODPY_BIN}
WANTLIB+= ${MODPY_WANTLIB}
.else
CONFIGURE_ARGS+= --disable-python
.endif