Writing port makefile
Lars Engels
lars.engels at 0x20.net
Thu Feb 14 14:26:38 UTC 2013
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20130214/57ea6867/attachment.sig>
More information about the freebsd-ports
mailing list