Trying to create a port - help needed

Oliver Eikemeier eikemeier at fillmore-labs.com
Sun Aug 8 01:01:17 PDT 2004


Am Sonntag den, 8. August 2004, um 07:17, schrieb Rob B:

> Hi,
>
> I'm trying to make a new port (first effort at this), and running the
> PREFIX test (make clean; make package PREFIX=/var/tmp/polipo), this is
> the failure :
>
> [...]
>
> This application has it's own Makefile, and the paths are set up thus:
>
> PREFIX = /usr/local
> BINDIR = $(PREFIX)/bin
> MANDIR = $(PREFIX)/man
> INFODIR = $(PREFIX)/info
> LOCAL_ROOT = /usr/share/polipo/www
> DISK_CACHE_ROOT = /var/cache/polipo
>
> Should I patch the Makefile to convert the $(PREFIX) variable into
> ${PREFIX} to get things working properly?


Since bsd.port.mk sets PREFIX in the environment, simply deleting the 
`PREFIX =' line might do the trick. You might also set MANDIR to 
MANPREFIX and patch LOCAL_ROOT / DISK_CACHE_ROOT to conform with hier(7).

-Oliver



More information about the freebsd-ports mailing list