Stuart Henderson <[email protected]> writes:
> On 2013/02/18 20:25, Jérémie Courrèges-Anglas wrote:
>>
>> I don't think arpd needs python. Makes it available on vax.
>
> ===> libdnet-1.12p5 requires shared libraries .
Well, yes, that's what I wanted to work around. With net/libdnet,-main
it builds fine (untested, though).
> Probably something like this. I haven't built it though.
>
>
> Index: Makefile
> ===================================================================
> RCS file: /cvs/ports/net/libdnet/Makefile,v
> retrieving revision 1.33
> diff -u -p -r1.33 Makefile
> --- Makefile 9 Feb 2013 14:49:52 -0000 1.33
> +++ Makefile 18 Feb 2013 21:44:28 -0000
> @@ -7,8 +7,7 @@ MODPY_EGG_VERSION=1.12
> DISTNAME= libdnet-${MODPY_EGG_VERSION}
> PKGNAME-main= ${DISTNAME}
> PKGNAME-python= py-${DISTNAME}
> -REVISION-main= 5
> -REVISION-python= 5
> +REVISION= 6
>
> SHARED_LIBS= dnet 1.0
>
> @@ -27,28 +26,29 @@ MASTER_SITES= http://libdnet.googlecode
> EXTRACT_SUFX= .tgz
>
> PSEUDO_FLAVORS= no_python
> +NOT_FOR_ARCHS-python= ${NO_SHARED_ARCHS}
> FLAVOR?=
>
> USE_LIBTOOL= Yes
> CONFIGURE_STYLE= gnu
> MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/config
> -MULTI_PACKAGES= -main
> -USE_GROFF = Yes
> +MULTI_PACKAGES= -main -python
>
> # override python.port.mk's RUN_DEPENDS
> RUN_DEPENDS-main=
>
> CONFIGURE_ARGS += --without-check
> -.if ${FLAVOR:Mno_python}
> -CONFIGURE_ARGS+= --without-python
> -.else
> +
> +.include <bsd.port.arch.mk>
> +.if ${BUILD_PACKAGES:M-python}
> MODULES+= lang/python
> -MULTI_PACKAGES+= -python
> CONFIGURE_ARGS+= --with-python
> MAKE_FLAGS= PYTHON=${MODPY_BIN}
> REGRESS_DEPENDS= net/libdnet,-python
> REGRESS_FLAGS= TESTS_ENVIRONMENT=${MODPY_BIN}
> WANTLIB-python=
> +.else
> +CONFIGURE_ARGS+= --without-python
> .endif
>
> .include <bsd.port.mk>
>
>
>
>>
>> Index: Makefile
>> ===================================================================
>> RCS file: /cvs/ports/net/arpd/Makefile,v
>> retrieving revision 1.16
>> diff -u -p -r1.16 Makefile
>> --- Makefile 15 Oct 2012 15:18:32 -0000 1.16
>> +++ Makefile 18 Feb 2013 19:14:16 -0000
>> @@ -23,6 +23,6 @@ USE_GROFF = Yes
>>
>> WRKDIST= ${WRKDIR}/arpd
>>
>> -LIB_DEPENDS= net/libdnet
>> +LIB_DEPENDS= net/libdnet,-main
>>
>> .include <bsd.port.mk>
>>
>
> This would need a bump, though I suspect it's not necessary at all.
Hmm, talking about the change, or the bump?
--
Jérémie Courrèges-Anglas
GPG Key fingerprint: 61DB D9A0 00A4 67CF 2A90 8961 6191 8FBF 06A1 1494