On 2009/06/17 00:02, merlyn wrote:
> Hello,
> I have made a port for links2. Archive is attached.
> Milan Bartos
Comments inline;
> # $OpenBSD: Makefile,v 1.14 2007/09/15 20:38:21 merdely Exp $
old template. please start from a new one for a new port.
>
> COMMENT= text browser, displays while downloading
>
> VERSION= 2.2
> DISTNAME= links-${VERSION}
> CATEGORIES= www
>
> HOMEPAGE= http://links.twibright.com/
> MAINTAINER= Milan Bartos <[email protected]>
>
> # GPL
this should have the version of GPL.
> PERMIT_PACKAGE_CDROM= Yes
> PERMIT_PACKAGE_FTP= Yes
> PERMIT_DISTFILES_CDROM= Yes
> PERMIT_DISTFILES_FTP= Yes
> WANTLIB= X11 c crypto ssl
>
> MASTER_SITES= http://links.twibright.com/download/ \
trailing \
>
> LIB_DEPENDS= png::graphics/png \
> jpeg::graphics/jpeg
<st...@zephyr:/usr/ports/mystuff/www/links2:21>$ make port-lib-depends-check
links-2.2:
Missing lib: bz2.10 (/usr/local/bin/links) (NOT REACHABLE)
WANTLIB: m.5 (/usr/local/bin/links) (system lib)
WANTLIB: z.4 (/usr/local/bin/links) (system lib)
Extra: X11.11
Extra: jpeg.62
Extra: png.8
WANTLIB += m z
*** Error code 1 (ignored)
> FLAVORS= x11
we normally reverse this and do no_x11, as in, for example
/usr/ports/www/links+ (which you should definitely take a look at).
> FLAVOR?=
>
> .if ${FLAVOR:L:Mx11}
> CONFIGURE_ARGS+=--enable-graphics
> .endif
>
> AUTOCONF_VERSION= 2.13
> CONFIGURE_STYLE= autoconf
we usually only do this when we have patched the autoconf files.
>
> .include <bsd.port.mk>
>