Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 01 Jan 2002 11:48:58 +0900
From:      SASAKI Katuhiro <sahiro@crest.ocn.ne.jp>
To:        lehmann@ans-netz.de, ports@FreeBSD.org
Subject:   Some additonal build options for mail/sylpoheed.
Message-ID:  <3c3121a3.6525%sahiro@crest.ocn.ne.jp>

next in thread | raw e-mail | index | archive | help
Hi.

Recently, I tested to build Sylpheed with options which are not 
listed in present Makefile of mail/sylpheed. I succeeded to 
build with --enable-compface, --enable-jconv and --enable-jpilot 
(Build with --enable-ldap failed.).
Patch below add variables which control to enable and disable 
these options. Please consider to merge this into official 
port.

Thank you.


diff -urN /usr/ports/mail/sylpheed/Makefile sylpheed/Makefile
--- /usr/ports/mail/sylpheed/Makefile	Tue Dec 18 00:04:30 2001
+++ sylpheed/Makefile	Tue Jan  1 10:56:52 2002
@@ -18,34 +18,76 @@
 USE_IMLIB=	yes
 USE_LIBTOOL=	yes
 
-CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
-		LIBS="-L${LOCALBASE}/lib"
-CONFIGURE_ARGS=	--disable-compface --disable-gdk-pixbuf --enable-ipv6 --prefix=${PREFIX} --with-included-gettext
+CONFIGURE_ENV+=	CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include \
+		-I${LOCALBASE}/pilot/include" \
+		LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib \
+		-L${LOCALBASE}/pilot/lib"
+CONFIGURE_ARGS+=--disable-gdk-pixbuf --enable-ipv6 --with-included-gettext
 
-.if defined(WITH_GPGME)
+.if defined(WITH_GPGME) && ${WITH_GPGME} == yes
 LIB_DEPENDS+=	gpgme.4:${PORTSDIR}/security/gpgme
 RUN_DEPENDS+=	gpg:${PORTSDIR}/security/gnupg
 CONFIGURE_ARGS+=--enable-gpgme
+.else
+CONFIGURE_ARGS+=--disable-gpgme
+.endif
+.if defined(WITHOUT_SSL) && ${WITHOUT_SSL} == yes
+WITH_SSL=	no
 .endif
-.if !defined(WITHOUT_SSL)
+.if defined(WITH_SSL) && ${WITH_SSL} == no
+CONFIGURE_ARGS+=--disable-ssl
+.else
 USE_OPENSSL=	yes
 CONFIGURE_ARGS+=--enable-ssl
 .endif
+.if defined(WITH_COMPFACE) && ${WITH_COMPFACE} == yes
+LIB_DEPENDS+=	compface.1:${PORTSDIR}/mail/faces
+CONFIGURE_ARGS+=--enable-compface
+.else
+CONFIGURE_ARGS+=--disable-compface
+.endif
+.if defined(WITH_JCONV) && ${WITH_JCONV} == yes
+LIB_DEPENDS+=	jconv.0:${PORTSDIR}/japanese/libjconv
+CONFIGURE_ARGS+=--enable-jconv
+.else
+CONFIGURE_ARGS+=--disable-jconv
+.endif
+.if defined(WITH_JPILOT) && ${WITH_JPILOT} == yes
+LIB_DEPENDS+=	expense.1:${PORTSDIR}/palm/jpilot
+CONFIGURE_ARGS+=--enable-jpilot
+CFLAGS+=	-I${LOCALBASE}/pilot/include
+.else
+CONFIGURE_ARGS+=--disable-jpilot
+.endif
 
 PORTDOCS=	ChangeLog INSTALL README TODO
 
-pre-extract:
-.if defined(WITH_GPGME)
+.include <bsd.port.pre.mk>
+
+pre-everything::
+.if defined(WITH_GPGME) && ${WITH_GPGME} == yes
 	@${ECHO_MSG}
 	@${ECHO_MSG} "WARNING: GnuPG support using GPGME is still experimental."
 .else
 	@${ECHO_MSG}
-	@${ECHO_MSG} "You can enable GnuPG support using GPGME by defining WITH_GPGME."
-	@${ECHO_MSG} "WARNING: GnuPG support is still experimental."
+	@${ECHO_MSG} "You can enable GnuPG support using GPGME by setting WITH_GPGME=yes."
+	@${ECHO_MSG} "WARNING: GnuPG support using GPGME is still experimental."
+.endif
+.if !defined(WITH_SSL) || ${WITH_SSL} != no
+	@${ECHO_MSG}
+	@${ECHO_MSG} "You can disable OpenSSL support by setting WITH_SSL=no."
+.endif
+.if !defined(WITH_COMPFACE) || ${WITH_COMPFACE} != yes
+	@${ECHO_MSG}
+	@${ECHO_MSG} "You can enable X-Face support by setting WITH_COMPFACE=yes."
+.endif
+.if !defined(WITH_JCONV) || ${WITH_JCONV} != yes
+	@${ECHO_MSG}
+	@${ECHO_MSG} "You can enable libjconv support by setting WITH_JCONV=yes."
 .endif
-.if !defined(WITHOUT_SSL)
+.if !defined(WITH_JPILOT) || ${WITH_JPILOT} != yes
 	@${ECHO_MSG}
-	@${ECHO_MSG} "You can disable OpenSSL support by defining WITHOUT_SSL."
+	@${ECHO_MSG} "You can enable JPilot support by setting WITH_JPILOT=yes."
 .endif
 	@${ECHO_MSG}
 
@@ -61,4 +103,4 @@
 .endfor
 .endif
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>


================================================================
                       SASAKI Katuhiro

                mailto: sahiro@crest.ocn.ne.jp
================================================================

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3c3121a3.6525%sahiro>