diff options
author | reg <reg@FreeBSD.org> | 2000-10-05 14:47:41 +0800 |
---|---|---|
committer | reg <reg@FreeBSD.org> | 2000-10-05 14:47:41 +0800 |
commit | 4495def283d3b8c777e1eb5b958cedb25b1aa16b (patch) | |
tree | d7741a9f974e1e8c5428027e641c709984c997cf /net-p2p | |
parent | 72ce7050d03c812e37966786e11996a90713afea (diff) | |
download | freebsd-ports-gnome-4495def283d3b8c777e1eb5b958cedb25b1aa16b.tar.gz freebsd-ports-gnome-4495def283d3b8c777e1eb5b958cedb25b1aa16b.tar.zst freebsd-ports-gnome-4495def283d3b8c777e1eb5b958cedb25b1aa16b.zip |
Implment WANT_GTK.
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/teknap/Makefile | 45 | ||||
-rw-r--r-- | net-p2p/teknap/files/patch-aa | 9 |
2 files changed, 30 insertions, 24 deletions
diff --git a/net-p2p/teknap/Makefile b/net-p2p/teknap/Makefile index 7959f730ac34..54476d48a136 100644 --- a/net-p2p/teknap/Makefile +++ b/net-p2p/teknap/Makefile @@ -13,9 +13,6 @@ MASTER_SITES= ftp://ftp.teknap.com/pub/TekNap/ \ MAINTAINER= cj@vallcom.net -.if defined(WITH_GTK) -LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12 -.endif .if defined(WITH_MP3) BUILD_DEPENDS= mpg123:${PORTSDIR}/audio/mpg123 .endif @@ -23,41 +20,41 @@ BUILD_DEPENDS= mpg123:${PORTSDIR}/audio/mpg123 BUILD_DEPENDS= xmms:${PORTSDIR}/audio/xmms .endif -GLIB_CONFIG?= ${LOCALBASE}/bin/glib12-config -GTK_CONFIG?= ${X11BASE}/bin/gtk12-config WRKSRC= ${WRKDIR}/TekNap -GNU_CONFIGURE= yes + +PLIST_SUB+= PORTVERSION="${PORTVERSION}" + USE_GMAKE= yes +WANT_GTK= yes +GNU_CONFIGURE= yes +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LIBS="-L${LOCALBASE}/lib" -.if defined(WITH_GTK) -CONFIGURE_ARGS+= --with-gtk +.include <bsd.port.pre.mk> + +.if defined(HAVE_GTK) +USE_GTK= yes +CONFIGURE_ARGS+=--with-gtk +.else +CONFIGURE_ARGS+=--without-gtk .endif + .if defined(WITH_MP3) -CONFIGURE_ARGS+= --enable-mp3 +CONFIGURE_ARGS+=--enable-mp3 .endif + .if defined(WITH_XMMS) -CONFIGURE_ARGS+= --enable-xmms +CONFIGURE_ARGS+=--enable-xmms .endif -CONFIGURE_ARGS+= --exec-prefix="${PREFIX}/share" \ - --bindir="${PREFIX}/bin" \ - --datadir="${PREFIX}/share" \ - --libdir="${PREFIX}/share" - -CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ - GLIB_CONFIG="${GLIB_CONFIG}" \ - GTK_CONFIG="${GTK_CONFIG}" -MAKE_ENV+= INSTALL_PROGRAM="${INSTALL_PROGRAM}" \ - INSTALL_DATA="${INSTALL_DATA}" -PLIST_SUB+= PORTVERSION="${PORTVERSION}" pre-extract: @${ECHO} "Available switches:" @${ECHO} "-------------------" - @${ECHO} "WITH_GTK - Add GTK support" @${ECHO} "WITH_MP3 - Support MP3 playback" @${ECHO} "WITH_XMMS - Support XMMS" + pre-configure: - ${PERL} -pi -e "s:-lc_r:-pthread:g" ${WRKSRC}/configure + @${PERL} -pi -e "s:-lc_r:-pthread:g" ${WRKSRC}/configure post-install: .if !defined(NOPORTDOCS) @@ -70,4 +67,4 @@ post-install: @${ECHO} .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/net-p2p/teknap/files/patch-aa b/net-p2p/teknap/files/patch-aa index fac576d842ec..9ce74dbfd745 100644 --- a/net-p2p/teknap/files/patch-aa +++ b/net-p2p/teknap/files/patch-aa @@ -1,5 +1,14 @@ --- Makefile.in.orig Thu Jun 22 11:32:39 2000 +++ Makefile.in Thu Jul 6 01:10:22 2000 +@@ -34,7 +34,7 @@ + NAPLIB = @NAPLIB@ + + CC = @CC@ +-DEFS = -I$$(srcdir)/../include -I$(topdir)/include ++DEFS = -I. -I$(topdir)/include -I- + LIBS = @LIBS@ + INCLUDES = @INCLUDES@ + @@ -58,8 +58,8 @@ # This command will be used to install the BitchX help files. If you don't |