pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

irssi-icb -> glib2



Hi!

The attached patch is sufficient to convert irssi-icb to build and
link against glib2, to remove another glib1 dependency.

What is the proper way to set the GLIB2_* variables? The != way I used
gives warnings about missing pkg-config during a pbulk.

Other than that, please test!

Thanks,
 Thomas

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/chat/irssi-icb/Makefile,v
retrieving revision 1.25
diff -u -r1.25 Makefile
--- Makefile    19 Jan 2009 10:20:03 -0000      1.25
+++ Makefile    6 Apr 2009 10:38:23 -0000
@@ -2,7 +2,7 @@
 #
 
 DISTNAME=      irssi-icb-0.14
-PKGREVISION=   12
+PKGREVISION=   13
 CATEGORIES=    chat
 MASTER_SITES=  http://www.irssi.org/files/plugins/icb/
 DISTFILES=     ${DISTNAME}.tar.gz ${IRSSI_DISTFILE}
@@ -22,9 +22,17 @@
 GNU_CONFIGURE= yes
 
 USE_LIBTOOL=   yes
+USE_TOOLS+=    pkg-config
 SHLIBTOOL_OVERRIDE=    # empty
 
+GLIB2_CFLAGS!= pkg-config --cflags glib-2.0
+GLIB2_LIBS!=   pkg-config --cflags glib-2.0
+CPPFLAGS+=     ${GLIB2_CFLAGS}
+LDFLAGS+=      ${GLIB2_LIBS}
+
 CONFIGURE_ARGS+=       --with-irssi=${WRKDIR}/${IRSSI_DISTNAME}
+CONFIGURE_ARGS+=       --with-glib-prefix=${BUILDLINK_PREFIX.glib2}
+CONFIGURE_ARGS+=       --disable-glibtest
 
 INSTALLATION_DIRS+=    share/doc/irssi
 
@@ -37,5 +45,5 @@
 post-install:
        ${INSTALL_DATA} ${WRKSRC}/README 
${DESTDIR}${PREFIX}/share/doc/irssi/README.icb
 
-.include "../../devel/glib/buildlink3.mk"
+.include "../../devel/glib2/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"


Home | Main Index | Thread Index | Old Index