vlc with -CURRENT

Sean McNeil sean at mcneil.com
Fri Aug 13 11:56:23 PDT 2004


I do not understand why the vlc port is turned off for OSVERSION >=
502010 nor why -lpthread is replaced with -lpthread-broken.  I believe
the appropriate thing would be to replace -lpthread with -pthread.  This
should work for everyone (I think) and might have been broken for
-CURRENT but only for a short period of time.  At least the following
change works for me with -CURRENT right now.

Cheers,
Sean

*** /root/vlc.Makefile  Thu Aug 12 19:32:42 2004
--- /usr/ports/multimedia/vlc/Makefile  Sun Jul 25 07:10:25 2004
*************** PLIST_FILES+=   lib/vlc/libi420_rgb_mmx.a
*** 322,327 ****
--- 322,330 ----
                lib/vlc/libmemcpymmxext.a
  .endif

+ .if ${OSVERSION} >= 502010
+ BROKEN=               "conflicts with new threads architecture"
+ .endif
  .if ${ARCH} == "alpha" && ${OSVERSION} < 500000
  # libstdc++.a(eh_terminate.o): gp-relative relocation against dynamic
symbol __cxxabiv1::__terminate_handler
  BROKEN=               "gp-relative relocation against dynamic symbol"
*************** pre-everything::
*** 334,340 ****
        @${ECHO_MSG} "For example, make WITH_AUTODETECT=yes"

  post-patch:
!       @${REINPLACE_CMD} -e 's/-lpthread/-pthread/' \
                -e 's/-lc_r/${PTHREAD_LIBS}/' \
                -e
's|postproc/postprocess.h|ffmpeg/postproc/postprocess.h|' \
                ${WRKSRC}/configure
--- 337,343 ----
        @${ECHO_MSG} "For example, make WITH_AUTODETECT=yes"

  post-patch:
!       @${REINPLACE_CMD} -e 's/-lpthread/-lpthread-broken/' \
                -e 's/-lc_r/${PTHREAD_LIBS}/' \
                -e
's|postproc/postprocess.h|ffmpeg/postproc/postprocess.h|' \
                ${WRKSRC}/configure
	



More information about the freebsd-ports mailing list