Hi,
On Thu, 27 Oct 2011 18:21:38 +0900, norc1212 <norc1212%gmail.com@localhost>
wrote:
My current trouble is to make a new package to install
in its own subdirectory under $LOCALBASE. Using the
pkgsrc developer's guide I created a new package (it went
smooth, thanks!). It installs its files in $LOCALBASE/bin,
$LOCALBASE/lib etc. However I need the program in various
versions in parallel - the same way lang/gcc?? do:
$LOCALBASE/mypkgAB/{bin,lib,...}
$LOCALBASE/mypkgCD/{bin,lib,...}
Unfortunately gcc Makefiles are too advanced to me to
learn the trick.
Can you give me some advice?
It depend on how to configure/compile/install the package.
For example, if it is GNU configure based package (GNU_CONFIGURE=yes),
GNU_CONFIGURE_PREFIX= ${PREFIX}/mypkgAB