From owner-freebsd-ports@freebsd.org Fri Jun 9 09:41:20 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6FC6DBF0CBC for ; Fri, 9 Jun 2017 09:41:20 +0000 (UTC) (envelope-from mbeis@xs4all.nl) Received: from yokozuna.lan (unknown [IPv6:2001:980:66e8:1:20e:cff:fe3d:e16d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "yokozuna.lan", Issuer "yokozuna.lan" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 184BC9A3 for ; Fri, 9 Jun 2017 09:41:19 +0000 (UTC) (envelope-from mbeis@xs4all.nl) Received: from yokozuna (yokozuna [IPv6:0:0:0:0:0:0:0:1]) by yokozuna.lan (8.15.2/8.15.2) with ESMTPS id v599fGP1003635 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Fri, 9 Jun 2017 11:41:17 +0200 (CEST) (envelope-from mbeis@xs4all.nl) Date: Fri, 9 Jun 2017 11:41:16 +0200 (CEST) From: Marco Beishuizen Sender: marco@yokozuna.lan Reply-To: Marco Beishuizen To: freebsd-ports@freebsd.org Subject: mail/alpine new Makefile Message-ID: User-Agent: Alpine 2.21 (BSF 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jun 2017 09:41:20 -0000 Hi, Being the maintainer of mail/alpine, I'm trying to cleanup it's Makefile. What I now have is this: PORTNAME?= alpine PORTVERSION= 2.21 PORTREVISION?= 0 CATEGORIES?= mail news ipv6 MASTER_SITES= http://alpine.freeiz.com/alpine/release/src/ DIST_SUBDIR= alpine-${PORTVERSION} MAINTAINER= mbeis@xs4all.nl COMMENT?= Mail and news client descended from Pine LICENSE= APACHE20 USES+= ssl libtool ncurses tar:xz gettext-runtime MAKE_JOBS_UNSAFE= yes GNU_CONFIGURE= yes CONFIGURE_ARGS+= --with-debug-level=2 \ --enable-background-post \ --without-krb5 \ --without-tcl \ --with-system-pinerc=${PREFIX}/etc/alpine.conf \ --with-system-fixed-pinerc=${PREFIX}/etc/alpine.conf.fixed \ --with-password-prog=/usr/bin/passwd \ --with-system-mail-directory=/var/mail MAKE_ARGS+= CC="${CC}" CXX="${CXX}" GCCCFLAGS="${CFLAGS}" OPTIONS_DEFINE= ASPELL CONS25 DOCS IPV6 LDAP MAILDIR MOUSE NLS NOSPELL PASSFILE PICO THREADS OPTIONS_DEFAULT+= MOUSE PICO THREADS CONS25_DESC= Add a patch to support color for default console MAILDIR_DESC= Add a patch for maildir support NOSPELL_DESC= Use simple spellcheck PASSFILE_DESC= Support for a stored password file PICO_DESC= Build and install pico, the default editor .include # Option ASPELL ASPELL_CONFIGURE_WITH= interactive-spellcheck ASPELL_CONFIGURE_ON= --with-interactive-spellcheck=${LOCALBASE}/bin/aspell ASPELL_BUILD_DEPENDS= aspell:textproc/aspell ASPELL_RUN_DEPENDS= aspell:textproc/aspell # Option CONS25 CONS25_EXTRA_PATCHES= ${FILESDIR}/cons25-alpine_keymenu.c # Option IPV6 IPV6_CONFIGURE_WITH= ipv6 # Option LDAP OPENLDAP_USE= openldap=yes LDAP_CONFIGURE_WITH= ldap LDAP_CONFIGURE_ON= --with-ldap-dir=${LOCALBASE} # Option MAILDIR MAILDIR_PATCH_SITES= http://alpine.freeiz.com/alpine/patches/alpine-${PORTVERSION}/ MAILDIR_PATCHFILES+= maildir.patch.gz:-p1 # Option MOUSE MOUSE_CONFIGURE_ENABLE= mouse # Option NLS NLS_CONFIGURE_ENABLE= nls # Option NOSPELL NOSPELL_CONFIGURE_WITH= simple-spellcheck # Option PASSFILE PASSFILE_CONFIGURE_WITH= passfile PASSFILE_CONFIGURE_ON= --with-passfile=.alpine-passfile # Option PICO PICO_RUN_DEPENDS= pico:editors/pico-alpine # Option THREADS THREADS_CONFIGURE_WITH= pthread .include post-patch: @${CP} ${WRKSRC}/imap/Makefile ${WRKSRC}/imap/Makefile.presed @${SED} -e "s#^\(all:.*\) bundled\$$#\1#" \ ${WRKSRC}/imap/Makefile.presed > ${WRKSRC}/imap/Makefile @${CP} ${WRKSRC}/pico/Makefile.in ${WRKSRC}/pico/Makefile.in.presed @${SED} -e "s#^bin_PROGRAMS = pico.*#bin_PROGRAMS =#" \ -e "s#\$$(pico_SOURCES) \$$(pilot_SOURCES)##" \ ${WRKSRC}/pico/Makefile.in.presed > ${WRKSRC}/pico/Makefile.in @${CP} ${WRKSRC}/Makefile.in ${WRKSRC}/Makefile.in.presed @${SED} -e "s#doc/man1/pico.1 doc/man1/pilot.1 ##" \ ${WRKSRC}/Makefile.in.presed > ${WRKSRC}/Makefile.in @${CP} ${WRKSRC}/imap/src/osdep/unix/Makefile \ ${WRKSRC}/imap/src/osdep/unix/Makefile.presed @${SED} -e "s#^LOCKPGM=.*#LOCKPGM= ${PREFIX}/libexec/mlock#" \ ${WRKSRC}/imap/src/osdep/unix/Makefile.presed \ > ${WRKSRC}/imap/src/osdep/unix/Makefile @for i in ${WRKSRC}/README ${WRKSRC}/doc/man1/alpine.1 \ ${WRKSRC}/doc/*.txt \ ${WRKSRC}/doc/tech-notes/*.txt \ ${WRKSRC}/doc/tech-notes/*.html \ ${WRKSRC}/pith/pine.hlp ; do \ ${CP} $$i $$i.presed ; \ ${SED} -e "s:/usr/local/lib/:${PREFIX}/etc/:g" \ -e "s:/usr/local/pine.conf:${PREFIX}/etc/pine.conf:g" \ -e "s:pine\.conf:alpine.conf:g" \ -e "s:/usr/local:${PREFIX}:g" \ -e "s:@@PREFIX@@:${PREFIX}:g" \ $$i.presed > $$i ; \ done PORTDOCSbase= LICENSE NOTICE README PORTDOCSdoc= brochure.txt PORTDOCShtml= tech-notes/background.html tech-notes/cmd-line.html \ tech-notes/config-notes.html tech-notes/config.html \ tech-notes/index.html tech-notes/installation.html \ tech-notes/introduction.html tech-notes/low-level.html \ tech-notes/tech-notes.txt PORTDOCS= ${PORTDOCSbase} ${PORTDOCSdoc} ${PORTDOCShtml} post-install: ${STAGEDIR}${PREFIX}/bin/alpine -conf > ${STAGEDIR}${PREFIX}/etc/alpine.conf.sample post-install-DOCS-on: ${INSTALL} -d ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${DOCSDIR}/tech-notes .for f in ${PORTDOCSbase} ${INSTALL_MAN} ${WRKSRC}/$f ${STAGEDIR}${DOCSDIR} .endfor .for f in ${PORTDOCSdoc} ${INSTALL_MAN} ${WRKSRC}/doc/$f ${STAGEDIR}${DOCSDIR} .endfor .for f in ${PORTDOCShtml} ${INSTALL_MAN} ${WRKSRC}/doc/$f ${STAGEDIR}${DOCSDIR}/tech-notes .endfor .include The port builds and installs just fine, except that the port options don't work. The checked options, other than the default, are being ignored. For testing I've marked all options to on, but Alpine for example still doesn't have the possibility to save passwords built in. So what is wrong with this Makefile? Regards, Marco -- Kansas state law requires pedestrians crossing the highways at night to wear tail lights.