summaryrefslogtreecommitdiff
path: root/korean/bitchx/Makefile
diff options
context:
space:
mode:
authorCHOI Junho <cjh@FreeBSD.org>2000-07-07 12:17:19 +0000
committerCHOI Junho <cjh@FreeBSD.org>2000-07-07 12:17:19 +0000
commit588df037f1a8989b53b2d99df4d55b19305067ca (patch)
treeeb6bb3f63241a2103099a0ce7e94c80153f7fc77 /korean/bitchx/Makefile
parentFix script I broke. (diff)
Update to 1.0c16/Korean.
PR: ports/19709 Submitted by: JunSeon Oh <hollywar@holywar.net>
Notes
Notes: svn path=/head/; revision=30294
Diffstat (limited to '')
-rw-r--r--korean/bitchx/Makefile82
1 files changed, 65 insertions, 17 deletions
diff --git a/korean/bitchx/Makefile b/korean/bitchx/Makefile
index bea3705b732d..fe38c9e61d74 100644
--- a/korean/bitchx/Makefile
+++ b/korean/bitchx/Makefile
@@ -1,31 +1,79 @@
# New ports collection makefile for: BitchX ircII client patched for korean
# Date created: 3 Jun 1999
-# Whom: hollywar
+# Whom: JunSeon Oh <hollywar@mail.holywar.net>
#
# $FreeBSD$
#
-PORTNAME= bitchx
-PORTVERSION= 75.1
-CATEGORIES= korean net
-MASTER_SITES= ftp://ftp.holywar.net/pub/FreeBSD/ \
- ftp://ftp.kr.freebsd.org/pub/FreeBSD-kr/distfiles/
-DISTNAME= bitchx-ko
+PORTNAME= BitchX
+PORTVERSION= 1.0c16
+CATEGORIES= korean irc gnome
+MASTER_SITES= ftp://ftp.bitchx.com/pub/BitchX/source/ \
+ ftp://ukug.uk.freebsd.org/pub/lord_cj/
+
+PATCH_SITES= ftp://ftp.holywar.net/pub/FreeBSD/
+PATCHFILES= bx-korean-aa.patch
+PATCH_DIST_STRIP= -p1
MAINTAINER= hollywar@mail.holywar.net
-GNU_CONFIGURE= yes
+.if defined(WITH_GNOME)
+LIB_DEPENDS= gnome.4:${PORTSDIR}/x11/gnomelibs
+.endif
+
+#PATCH_DIST_ARGS= -d ${WRKDIR}/ --forward --quiet -E ${PATCH_DIST_STRIP}
+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-plugins --with-gtk --enable-sound
+.else
+CONFIGURE_ARGS+= --with-plugins --without-gtk
+.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}"
-post-patch:
- ${SED} -e s,__PREFIX__,$(PREFIX), $(WRKSRC)/include/config.h > $(WRKSRC)/include/config.h.new
- ${MV} $(WRKSRC)/include/config.h.new $(WRKSRC)/include/config.h
+.if !defined(WITH_GNOME)
+pre-extract:
+ @${ECHO} "You can add hooks for GNOME by defining WITH_GNOME"
+.endif
-do-install:
- ${MKDIR} ${PREFIX}/lib/bx
- ${INSTALL_PROGRAM} ${WRKSRC}/source/BitchX ${PREFIX}/bin
+post-install:
@(${LN} -sf ${PREFIX}/bin/BitchX ${PREFIX}/bin/bx)
- ${INSTALL_PROGRAM} ${WRKSRC}/source/scr-bx ${PREFIX}/bin
- ${INSTALL_PROGRAM} ${WRKSRC}/source/wserv ${PREFIX}/bin
- ${INSTALL_DATA} ${WRKSRC}/BitchX.help ${PREFIX}/lib/bx
+.if !defined(NOPORTDOCS)
+ ${MKDIR} ${PREFIX}/share/bx/help
+ ${MKDIR} ${PREFIX}/share/doc/bitchx
+ ${CP} -r ${WRKSRC}/bitchx-docs/* ${PREFIX}/share/bx/help
+ ${INSTALL_DATA} ${WRKSRC}/doc/bxfaq.html ${PREFIX}/share/doc/bitchx
+ ${RMDIR} ${PREFIX}/share/bx/help/4_Misc/fset
+ ${RMDIR} ${PREFIX}/share/bx/help/4_Misc/wset
+.endif
+.if defined(WITH_GNOME)
+ @${ECHO} bin/gtkBitchX >> ${TMPPLIST}
+ @${ECHO} bin/gtkBitchX-1.0c16+H1 >> ${TMPPLIST}
+ @${ECHO} share/bx/plugins/nicklist.so >> ${TMPPLIST}
+.else
+ @${ECHO} bin/bx >> ${TMPPLIST}
+ @${ECHO} bin/BitchX >> ${TMPPLIST}
+ @${ECHO} bin/BitchX-1.0c16+H1 >> ${TMPPLIST}
+ @${ECHO} bin/scr-bx >> ${TMPPLIST}
+ @${ECHO} share/bx/wserv >> ${TMPPLIST}
+.endif
+ @${ECHO} @dirrm share/bx/help >> ${TMPPLIST}
+ @${ECHO} @dirrm share/bx/plugins >> ${TMPPLIST}
+ @${ECHO} @dirrm share/bx/script >> ${TMPPLIST}
+ @${ECHO} @dirrm share/bx/translation >> ${TMPPLIST}
+ @${ECHO} @dirrm share/bx >> ${TMPPLIST}
.include <bsd.port.mk>