Date: Sun, 28 Mar 2004 02:39:52 +0900 From: SADA Kenji <sada@FreeBSD.org> To: ports@FreeBSD.org Cc: sada@FreeBSD.org Subject: treating OPTIONS Message-ID: <20040328023952.06ffa2ce.sada@FreeBSD.org>
next in thread | raw e-mail | index | archive | help
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@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?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040328023952.06ffa2ce.sada>