Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 May 2014 00:11:09 +0200
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        "Montgomery-Smith, Stephen" <stephen@missouri.edu>
Cc:        "freebsd-ports@FreeBSD.org" <freebsd-ports@FreeBSD.org>
Subject:   Re: Problems with libtool and graphics/opendx; was: To all port maintainers: libtool
Message-ID:  <20140511001109.7a1812ba@kalimero.tijl.coosemans.org>
In-Reply-To: <536E8A8D.3070504@missouri.edu>
References:  <20140508002420.5d37e7f6@kalimero.tijl.coosemans.org> <536E8A8D.3070504@missouri.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 10 May 2014 20:22:39 +0000 Montgomery-Smith, Stephen wrote:
> I am trying to get the libtool changes to work with the port
> graphics/opendx.  I made the changes:
> 
> Index: Makefile
> ===================================================================
> --- Makefile    (revision 353598)
> +++ Makefile    (working copy)
> @@ -16,10 +16,11 @@
>                 cdf:${PORTSDIR}/science/cdf
> 
>  USE_XORG=      xinerama xext xpm xmu sm ice
> -USES=          bison motif gmake
> +USES=          bison motif gmake libtool
>  USE_GCC=       any
>  USE_GL=                yes
> -USE_AUTOTOOLS= libtool
> +GNU_CONFIGURE= yes
> +#USE_AUTOTOOLS=        libtool
>  USE_LDCONFIG=  yes
>  CFLAGS+=       ${PTHREAD_CFLAGS}
>  CONFIGURE_ENV= ARCH=freebsd
> 
> Then when I do "make install" I got
> pkg-static:
> lstat(/usr/ports/graphics/opendx/work/stage/usr/local/dx/lib_freebsd/libDX.la):
> No such file or directory
> pkg-static:
> lstat(/usr/ports/graphics/opendx/work/stage/usr/local/dx/lib_freebsd/libDX.so):
> No such file or directory
> pkg-static:
> lstat(/usr/ports/graphics/opendx/work/stage/usr/local/dx/lib_freebsd/libDX.so.4):
> No such file or directory
> etc.
> 
> When I do "find . -name "libDX.*"", I get
> ./work/dx-4.4.4/src/exec/.libs/libDX.lai
> ./work/dx-4.4.4/src/exec/.libs/libDX.a
> ./work/dx-4.4.4/src/exec/.libs/libDX.la
> ./work/dx-4.4.4/src/exec/libDX.la
> ./work/stage/usr/local/dx/lib_freebsd/libDX.a
> suggesting that the "*.so" files were never created.
> 
> Did I miss something?
> 
> The modifiers :keepla and :oldver don't seem to help.

If you go to the work directory and run "./configure --help" the output
contains this:

  --enable-shared[=PKGS]
                          build shared libraries [default=no]
  --enable-static[=PKGS]
                          build static libraries [default=yes]

This means shared libraries aren't built by default, but you can enable
them by adding "CONFIGURE_ARGS=--enable-shared" to the port Makefile.
You'll have to make some changes to pkg-plist but running "make check-plist'
will help you with that.

You can also delete files/patch-ltmain.sh.  USES=libtool handles that now.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140511001109.7a1812ba>