I have been trying to remove all dependencies on the broken muine port
and discovered that an error in the serpentine port Makefile causes
serpentine to always depend on muine.

The Makefile uses the config option MUINE to indicate whether to build
the muine plugin, but the script then checks "WITH_MUINE" and always
build the muine plugin and creates a dependency on muine.

I have opened PR ports/138179.

I patched the Makefile with:
--- sysutils/serpentine/Makefile.orig   2009-08-25 10:45:24.000000000 -0700
+++ sysutils/serpentine/Makefile        2009-08-25 10:07:00.000000000 -0700
@@ -29,7 +29,7 @@
 
 .include <bsd.port.pre.mk>
 
-.if (defined(WITH_MUINE) || exists(${LOCALBASE}/bin/muine)) && ${ARCH}=="i386"
+.if (defined(MUINE) || exists(${LOCALBASE}/bin/muine)) && ${ARCH}=="i386"
 BUILD_DEPENDS+=        muine:${PORTSDIR}/audio/muine
 RUN_DEPENDS+=  muine:${PORTSDIR}/audio/muine
 PLIST_SUB+=    MUINE=""

This may not be the best way as it overloads the MUINE variable
differently than it is now overloaded, but it looks like it is logically
correct.

The obvious alternative is to add:
.if defined(MUINE)
WITH_MUINE=     yes
.endif
-- 
R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: ober...@es.net                  Phone: +1 510 486-8634
Key fingerprint:059B 2DDF 031C 9BA3 14A4  EADA 927D EBB3 987B 3751
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to