aboutsummaryrefslogtreecommitdiffstats
path: root/irc
diff options
context:
space:
mode:
authorrene <rene@FreeBSD.org>2018-04-18 04:21:07 +0800
committerrene <rene@FreeBSD.org>2018-04-18 04:21:07 +0800
commitd934688db0402bf67ce67acf584a8b28701f093b (patch)
treee25e9392839ffe73742baa1c6158de81fc18111a /irc
parent1fca3ef8c2ce3b294223ffc075005683c3b684ac (diff)
downloadfreebsd-ports-gnome-d934688db0402bf67ce67acf584a8b28701f093b.tar.gz
freebsd-ports-gnome-d934688db0402bf67ce67acf584a8b28701f093b.tar.zst
freebsd-ports-gnome-d934688db0402bf67ce67acf584a8b28701f093b.zip
irc/cwirc: save from irc/xchat removal, that port expired
- port to irc/hexchat (runtime tested, works except for opening soundcard, no real keyer here) - remove bundled copy of xchat.h from irc/xchat during build - add a bunch of missing dependencies, found by stage-qa - bump PORTREVISION Approved by: fixit blanket
Diffstat (limited to 'irc')
-rw-r--r--irc/cwirc/Makefile12
-rw-r--r--irc/cwirc/files/Makefile6
-rw-r--r--irc/cwirc/pkg-plist2
3 files changed, 13 insertions, 7 deletions
diff --git a/irc/cwirc/Makefile b/irc/cwirc/Makefile
index 3b09b4d44343..9c99ab19a5b4 100644
--- a/irc/cwirc/Makefile
+++ b/irc/cwirc/Makefile
@@ -3,7 +3,7 @@
PORTNAME= cwirc
PORTVERSION= 2.0.0
-PORTREVISION= 6
+PORTREVISION= 7
CATEGORIES= irc comms hamradio
MASTER_SITES= http://myspace.voo.be/pcoupard/cwirc/download/ \
LOCAL/db
@@ -13,14 +13,20 @@ COMMENT= X-Chat Morse plugin
LICENSE= GPLv2
-BUILD_DEPENDS= xchat:irc/xchat
+BUILD_DEPENDS= hexchat:irc/hexchat
+LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \
+ libfreetype.so:print/freetype2
-USES= pkgconfig
+USES= gettext-runtime gnome pkgconfig
+USE_GNOME= atk cairo gdkpixbuf2 glib20 gtk20 pango
post-patch:
@${CP} ${FILESDIR}/Makefile ${WRKSRC}
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' \
-e 's|%%STAGEDIR%%|${STAGEDIR}|' ${WRKSRC}/Makefile
+ @${REINPLACE_CMD} -e 's|xchat|hexchat|g' \
+ -e 's|XCHAT|HEXCHAT|g' ${WRKSRC}/plugin.c
+ @${RM} -r ${WRKSRC}/xchat
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
diff --git a/irc/cwirc/files/Makefile b/irc/cwirc/files/Makefile
index 89cc21275856..c1eeced452e2 100644
--- a/irc/cwirc/files/Makefile
+++ b/irc/cwirc/files/Makefile
@@ -19,7 +19,7 @@
TARGET_OS=FREEBSD
STAGEDIR=%%STAGEDIR%%
PREFIX=%%PREFIX%%
-PLUGIN_INSTALL_DIRECTORY=${PREFIX}/lib/xchat/plugins
+PLUGIN_INSTALL_DIRECTORY=${PREFIX}/lib/hexchat/plugins
FRONTEND_INSTALL_DIRECTORY=${PREFIX}/bin
CWIRC_EXTENSIONS_DIRECTORY=${PREFIX}/share/cwirc/extensions
#EXTRA_LDFLAGS=
@@ -60,7 +60,7 @@ PWD?=pwd
CC?=gcc
STRIP?=strip
-XCHAT_PLUGIN_INCLUDE_PATH=xchat
+XCHAT_PLUGIN_INCLUDE_PATH=${PREFIX}/include
XCHAT_INC=-I$(XCHAT_PLUGIN_INCLUDE_PATH)
#CFLAGS=-Wall -Wstrict-prototypes -O2 -D$(TARGET_OS)
@@ -114,7 +114,7 @@ $(FRONTEND): $(FRONTEND_OBJS)
$(STRIP) $@
plugin.shared.o: plugin.c \
- $(XCHAT_PLUGIN_INCLUDE_PATH)/xchat-plugin.h \
+ $(XCHAT_PLUGIN_INCLUDE_PATH)/hexchat-plugin.h \
types.h \
common.h \
cwirc.h \
diff --git a/irc/cwirc/pkg-plist b/irc/cwirc/pkg-plist
index 65702bd8ac86..b2ae9bae4c09 100644
--- a/irc/cwirc/pkg-plist
+++ b/irc/cwirc/pkg-plist
@@ -1,5 +1,5 @@
bin/cwirc_frontend
-lib/xchat/plugins/cwirc.so
+lib/hexchat/plugins/cwirc.so
%%DOCSDIR%%/COPYING
%%DOCSDIR%%/LISEZMOI
%%DOCSDIR%%/README