diff options
author | Jeremy Lea <reg@FreeBSD.org> | 2000-10-05 07:22:56 +0000 |
---|---|---|
committer | Jeremy Lea <reg@FreeBSD.org> | 2000-10-05 07:22:56 +0000 |
commit | 7b4c77811e89d7fc1131ca6e63df3e719bc86b1d (patch) | |
tree | 9695733a1620c4c290c86f161a4f1b73160ed39a /irc/bitchx/Makefile | |
parent | Implement USE_GNOME, part 2. (diff) |
Implement WANT_GNOME.
Notes
Notes:
svn path=/head/; revision=33430
Diffstat (limited to 'irc/bitchx/Makefile')
-rw-r--r-- | irc/bitchx/Makefile | 115 |
1 files changed, 37 insertions, 78 deletions
diff --git a/irc/bitchx/Makefile b/irc/bitchx/Makefile index d7734f2d33fb..f74895dd4348 100644 --- a/irc/bitchx/Makefile +++ b/irc/bitchx/Makefile @@ -13,71 +13,62 @@ MASTER_SITES= ftp://ftp.bitchx.com/pub/BitchX/source/ \ MAINTAINER= cj@vallcom.net -.if defined(WITH_GNOME) -LIB_DEPENDS= gnome.4:${PORTSDIR}/x11/gnomelibs -.endif - -.if defined(WITH_TCL) -BUILD_DEPENDS= ${LOCALBASE}/include/tcl8.3/tcl.h:${PORTSDIR}/lang/tcl83 -.endif - -GLIB_CONFIG?= ${LOCALBASE}/bin/glib12-config -GTK_CONFIG?= ${X11BASE}/bin/gtk12-config WRKSRC= ${WRKDIR}/BitchX + USE_AUTOCONF= yes USE_GMAKE= yes -.if defined(WITH_GNOME) -CONFIGURE_ARGS+= --with-gtk +WANT_ESOUND= yes +WANT_GNOME= yes +CONFIGURE_ARGS= --exec-prefix="${PREFIX}/share" \ + --bindir="${PREFIX}/bin" \ + --datadir="${PREFIX}/share" \ + --libdir="${PREFIX}/share" +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LIBS="-L{LOCALBASE}/lib" + +.include <bsd.port.pre.mk> + +.if defined(HAVE_GNOME) +USE_GNOME= yes +CONFIGURE_ARGS+=--with-gtk .else -CONFIGURE_ARGS+= --without-gtk +CONFIGURE_ARGS+=--without-gtk .endif -.if defined(WITH_TCL) -CONFIGURE_ARGS+= --with-tcl \ - --with-tcl-includes="${PREFIX}/include/tcl8.3" \ - --with-tcl-libs="${PREFIX}/lib" +.if defined(HAVE_ESOUND) +USE_ESOUND= yes +CONFIGURE_ARGS+=--enable-sound .endif -.if defined(WITH_ESD) -CONFIGURE_ARGS+= --enable-sound + +.if defined(WITH_TCL) +BUILD_DEPENDS+= ${LOCALBASE}/include/tcl8.3/tcl.h:${PORTSDIR}/lang/tcl83 +CONFIGURE_ARGS+=--with-tcl \ + --with-tcl-includes=/usr/local/include/tcl8.3 \ + --with-tcl-libs=/usr/local/lib +CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/tcl8.3" +post-extract: + @uudecode -p ${FILESDIR}/tcl-freebsd.o.uu > ${WRKSRC}/source/tcl.o .endif + .if defined(WITH_PLUGINS) -CONFIGURE_ARGS+= --with-plugins=pkga,possum,encrypt,hint,abot,acro,amp,blowfish,scan,wavplay,qmail,fserv,nap,qbx +CONFIGURE_ARGS+=--with-plugins=pkga,possum,encrypt,hint,abot,acro,amp,blowfish,scan,wavplay,qmail,fserv,nap,qbx +PLIST_SUB+= PLUGINS:="" .else -CONFIGURE_ARGS+= --without-plugins +CONFIGURE_ARGS+=--without-plugins +PLIST_SUB+= PLUGINS:="@comment " .endif -CONFIGURE_ARGS+= --exec-prefix="${PREFIX}/share" \ - --bindir="${PREFIX}/bin" \ - --datadir="${PREFIX}/share" \ - --libdir="${PREFIX}/share" -.if defined(WITH_TCL) -CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/tcl8.3" -.else -CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" +.if defined(WITH_LATIN) +pre-patch: + @${PERL} -pi -e "s!#undef LATIN1!#define LATIN1!" ${WRKSRC}/include/config.h .endif -CONFIGURE_ENV+= GLIB_CONFIG="${GLIB_CONFIG}" \ - GTK_CONFIG="${GTK_CONFIG}" - -MAKE_ENV+= INSTALL_PROGRAM="${INSTALL_PROGRAM}" \ - INSTALL_DATA="${INSTALL_DATA}" pre-extract: @${ECHO} "Available switches:" @${ECHO} "-------------------" - @${ECHO} "WITH_GNOME - Build GTK BitchX" - @${ECHO} "WITH_ESD - Build GTK BitchX with ESD sound support" @${ECHO} "WITH_PLUGINS - Build the plugins" @${ECHO} "WITH_LATIN - Recommended if you are using an ISO-8859-1 display" @${ECHO} "WITH_TCL - Build BitchX with TCL scripting" -.if defined(WITH_TCL) -post-extract: - @uudecode -p ${FILESDIR}/tcl-freebsd.o.uu > ${WRKSRC}/source/tcl.o -.endif - -.if defined(WITH_LATIN) -pre-patch: - @${PERL} -pi -e "s!#undef LATIN1!#define LATIN1!" ${WRKSRC}/include/config.h -.endif post-install: .if !defined(NOPORTDOCS) ${MKDIR} ${PREFIX}/share/bx/help @@ -87,36 +78,4 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/doc/bxfaq.html ${PREFIX}/share/doc/bitchx .endif -.if defined(WITH_PLUGINS) - @${ECHO} share/bx/plugins/BitchX.hints >> ${TMPPLIST} - @${ECHO} share/bx/plugins/acro.so >> ${TMPPLIST} - @${ECHO} share/bx/plugins/amp.so >> ${TMPPLIST} - @${ECHO} share/bx/plugins/autobot.so >> ${TMPPLIST} - @${ECHO} share/bx/plugins/blowfish.so >> ${TMPPLIST} - @${ECHO} share/bx/plugins/encrypt.so >> ${TMPPLIST} - @${ECHO} share/bx/plugins/fserv.so >> ${TMPPLIST} - @${ECHO} share/bx/plugins/hint.so >> ${TMPPLIST} - @${ECHO} share/bx/plugins/nap.so >> ${TMPPLIST} - @${ECHO} share/bx/plugins/pkga.so >> ${TMPPLIST} - @${ECHO} share/bx/plugins/possum.so >> ${TMPPLIST} - @${ECHO} share/bx/plugins/qmail.so >> ${TMPPLIST} - @${ECHO} share/bx/plugins/scan.so >> ${TMPPLIST} - @${ECHO} share/bx/plugins/wavplay.so >> ${TMPPLIST} - @${ECHO} share/bx/plugins/qbx.so >> ${TMPPLIST} - @${ECHO} @dirrm share/bx/plugins >> ${TMPPLIST} -.endif -.if defined(WITH_GNOME) - @${ECHO} bin/gtkBitchX >> ${TMPPLIST} - @${ECHO} bin/gtkBitchX-1.0c17 >> ${TMPPLIST} -.else - @${ECHO} bin/BitchX >> ${TMPPLIST} - @${ECHO} bin/BitchX-1.0c17 >> ${TMPPLIST} - @${ECHO} bin/scr-bx >> ${TMPPLIST} - @${ECHO} share/bx/wserv >> ${TMPPLIST} -.endif - @${ECHO} @dirrm share/bx/help >> ${TMPPLIST} - @${ECHO} @dirrm share/bx/script >> ${TMPPLIST} - @${ECHO} @dirrm share/bx/translation >> ${TMPPLIST} - @${ECHO} @dirrm share/bx >> ${TMPPLIST} - -.include <bsd.port.mk> +.include <bsd.port.post.mk> |