diff options
author | Jeremy Lea <reg@FreeBSD.org> | 2000-10-05 06:47:41 +0000 |
---|---|---|
committer | Jeremy Lea <reg@FreeBSD.org> | 2000-10-05 06:47:41 +0000 |
commit | 3707e5b7408ecadb0bda141dd82ec9bbca5d0267 (patch) | |
tree | f1d64a9e396a97d08c7dc5b7eed24efc11a3fa10 /net-p2p/teknap | |
parent | Implement USE_GTK, part 2. (diff) |
Implment WANT_GTK.
Notes
Notes:
svn path=/head/; revision=33426
Diffstat (limited to 'net-p2p/teknap')
-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 |