Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Feb 2013 17:14:14 -0800
From:      Jason Helfman <jgh@FreeBSD.org>
To:        Lars Engels <lars.engels@0x20.net>
Cc:        "Gary J. Hayers" <gary@hayers.org>, FreeBSD Ports List <freebsd-ports@freebsd.org>
Subject:   Re: Writing port makefile
Message-ID:  <CAMuy=%2BhqLSojQ%2BPJKAeCryksSwmDoUBMCh02o6HnMMrB%2Bp6Y9g@mail.gmail.com>
In-Reply-To: <20130214142635.GP83110@e-new.0x20.net>
References:  <511BAD63.5050202@hayers.org> <CADLo83-wtCOnL2x%2BmUQVfuAiETVjAciPc%2BZXxMWOyudnm_s6WA@mail.gmail.com> <511BB2A3.100@hayers.org> <20130213153700.GN83110@e-new.0x20.net> <511BB3FE.8050401@hayers.org> <511BD239.9040700@hayers.org> <511BDA8E.3030504@hayers.org> <20130214142635.GP83110@e-new.0x20.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Feb 14, 2013 at 6:26 AM, Lars Engels <lars.engels@0x20.net> wrote:

> On Wed, Feb 13, 2013 at 06:25:18PM +0000, Gary J. Hayers wrote:
> > On 13/02/2013 17:49, Gary J. Hayers wrote:
> > > On 13/02/2013 15:40, Gary J. Hayers wrote:
> > >> Thanks Lars, I am going through it slowly, it's not like the first
> port
> > >> I ported which was fairly easy in comparison.
> > >
> > > Ok sor got that going now but after I run make I get:
> > > "Makefile", line 19: Need an operator
> > > make: fatal errors encountered -- cannot continue
> > >
> > > Anyone got any thoughts? Below is my Makefile or partial anyway
> > >
> > > LICENSE=        GPLv2
> > > LICENSE_FILE=   ${WRKSRC}/gpl.txt
> > >
> > > RUN_DEPENDS=    p5-NNTPClient:${PORTSDIR}/news/p5-NNTPClient
> > >
> > > NO_BUILD=       yes
> > >
> > > do-install:
> > >          ${INSTALL_SCRIPT} ${WRKSRC}/script ${PREFIX}/bin
> > >          ${MKDIR} ${PREFIX}/doc/${PORTNAME}
> > >          ${INSTALL_DATA} ${WRKSRC}/README.txt ${PREFIX}/doc/${PORTNAME}
> > >          ${INSTALL_DATA} ${WRKSRC}/Changelog ${PREFIX}/doc/${PORTNAME}
> > >          ${INSTALL_DATA} ${WRKSRC}/gpl.txt ${PREFIX}/doc/${PORTNAME}
> > >
> > > .include <bsd.port.mk>
> >
> > Scratch that, got it working. Many thanks all
>
> I would suggest that you add a trailing / to the ${INSTALL_} macros if
> you want to install into a directory, so you get an error if the
> directory does not exist, for what reason ever.
>

The directories will exist in this case, though. The directory is created
for docs in the installation target. It also requires perl, which will
create /usr/local/bin for the installation.

Thanks for your contribution, Gary!

-jgh

--
Jason Helfman          | FreeBSD Committer
jgh@FreeBSD.org     | http://people.freebsd.org/~jgh  | The Power to Serve



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAMuy=%2BhqLSojQ%2BPJKAeCryksSwmDoUBMCh02o6HnMMrB%2Bp6Y9g>