|
From: Motoi W. <a6...@h8...> - 2005-05-02 13:55:50
|
On 2005/05/02, at 18:26, strk wrote: > On Sun, May 01, 2005 at 11:42:03PM +0900, Motoi Washida wrote: >> Hi Ming developers, >> >> I'm trying to make Ming package for Fink. Fink is software to maintain >> open source software easily on Mac OS X, like RPM, Debian package, or >> Portage of Gentoo/Linux. >> http://fink.sourceforge.net >> >> Each Fink package is made from one package info file and one small >> patch file, if needed. The package info file contains information >> about >> its software, version, etc. One of the most important information is a >> process to install the software from source, such as configure options >> and make target. >> >> At first, I thought making package from Ming 0.3 beta1, but I had to >> make a long patch. CVS version of Ming looked better, and I can >> install >> shared libraries now. But there is still a few problems to make a >> package: >> 1. Fink installs libraries on /sw/lib, and I want to use -L/sw/lib >> linker option to use /sw/lib/libpng.dylib and /sw/lib/libgif.dylib. >> But >> I can't find how to set such option without any patch. I'm happy if I >> can set those options by running configure like this: >> $ ./configure --prefix=/sw CPPFLAGS=/sw/include LDFLAGS=/sw/lib >> >> 2. Fink does not allow installing files directly. Instead, Fink >> installs those files on a temporary directory such as >> /sw/src/root-ming-0.3-1/ and create .deb package. We can specify such >> a >> directory if the Makefile of the software supports running command >> like: >> $ make install DESTDIR=/sw/src/root-ming-0.3-1 >> >> Any thoughts? I will write a patch if you like. > > LDFLAGS=-L/sw/lib should definitely work. If it doesn't patch is > accepted. > (probably Makefile.config needs using += when setting LDFLAGS if it > doesn't work). Utils/Makefile uses "LDFLAGS += -L.. -lming $(LIBS)", but if I set LDFLAGS=-L/sw, /sw/lib/libming.dylib is used to build executables. > DESTDIR should be --prefix=, agains should work already - patch welcome > otherwise. I think DESTDIR should be different from --prefix. This is because prefix is not only used when copying files, but when building shared libraries on some systems (you know, one of them is Darwin :) ) to specify directory where the library is really installed. For example, if you set prefix to /sw and make with option like DESTDIR=/sw/src/root-ming-0.3-1, files are copied as such as /sw/src/root-ming-0.3-1/sw/lib/libming-0.3.0.dylib and /sw/src/root-ming-0.3.1/sw/bin/swftophp2. But swftophp2 tries to load Ming library from /sw/lib/libming-0.3.0.dylib. Maybe it is enough if I modify linker options to build shared library, but I think setting DESTDIR and LDFLAGS like above one is supported by many projects. > About packaging, I think we can make an effort toward a release, but > the code under utils/ is still unstable. Maybe I did the wrong thing > getting the patches from Stuart as he's not finding time to fixing > things up. He did a good job reducing the codebase but we currently > don't have a listswf working the way it did before (listing tags > instead of decompiling). Decompile has always been unstable, but > listing tags worked fine... I think this is one of the things to > fix before release. > --strk; > >> >> Thanks, >> -- >> Motoi Washida -- Motoi Washida |