On Wed, Jan 11, 2012 at 10:37 AM, Paul Schmehl <pschmehl_li...@tx.rr.com> wrote: > --On January 11, 2012 10:44:11 AM +1000 Da Rock > <freebsd-po...@herveybayaustralia.com.au> wrote: >> >> >> My last problem is with the define knobs. I have an .if defined(WITH_PAM) >> .else ... .endif statement, but it keeps giving me trouble. I can't quite >> figure what I've got wrong. The statement looks like this: >> >> post-extract: >> .if defined(WITH_PAM) >> PLIST_FILES+=lib/security/pam_ldap.so >> >> >> .else >> @if [ -f ${WRKDIR}/lib/security/pam_ldap.so ]; then \ >> ${RM} ${WRKDIR}/lib/security/pam_ldap.so >> ${DIRRM} ${WRKDIR}/lib/; >> fi > > ^^^^^ > > This is what's wrong. In port Makefiles, it's .if, .else, .endif not fi.
You need both: .endif and fi in this case (the 'fi' is part of the shell script) -- Eitan Adler _______________________________________________ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"