treating OPTIONS
SADA Kenji
sada at FreeBSD.org
Sat Mar 27 09:39:58 PST 2004
Please see the PR 63930
<http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/63930>
it gets portlint fatal error that OPTIONS appears after the line
".include <bsd.port.pre.mk>".
My plan is pre-defined LOCALBASE, like:
---
PORTNAME= libhome
PORTVERSION= 0.7.1
PORTREVISION= 1
CATEGORIES= misc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= pll
MAINTAINER= kiwi at oav.net
COMMENT= Library providing a getpwname() emulation
LOCALBASE?= ${DESTDIR}/usr/local
.if exists(${LOCALBASE}/lib/libldap.so)
WITH_LDAP= yes
OPTIONS+= LDAP "Support for LDAP queries" on
.else
OPTIONS+= LDAP "Support for LDAP queries" off
.endif
<snip>
.include <bsd.port.pre.mk>
<snip>
.include <bsd.port.post.mk>
---
This gets one portlint warning instead of many fatal errors.
Other options?
More information about the freebsd-ports
mailing list