2003-02-23 12:34:03 -05:00
|
|
|
# New ports collection makefile for: gnet-glib2
|
|
|
|
# Date created: 15 February 2003
|
|
|
|
# Whom: Joe Marcus Clarke <marcus@FreeBSD.org>
|
2000-02-16 07:01:25 -05:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-09 14:14:07 -04:00
|
|
|
PORTNAME= gnet
|
2003-02-23 12:34:03 -05:00
|
|
|
PORTVERSION= 1.1.8
|
2000-02-16 07:01:25 -05:00
|
|
|
CATEGORIES= net
|
2001-05-26 03:13:56 -04:00
|
|
|
MASTER_SITES= http://www.gnetlibrary.org/src/
|
2000-02-16 07:01:25 -05:00
|
|
|
|
2003-02-23 12:34:03 -05:00
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
|
|
|
COMMENT= A simple network library built upon Glib
|
2000-02-16 07:01:25 -05:00
|
|
|
|
2003-02-23 12:34:03 -05:00
|
|
|
LATEST_LINK= gnet-glib2
|
2002-06-27 01:57:24 -04:00
|
|
|
USE_REINPLACE= yes
|
2003-04-22 00:46:36 -04:00
|
|
|
USE_GNOME= gnomehack glib20
|
2000-02-28 05:01:09 -05:00
|
|
|
USE_LIBTOOL= yes
|
2000-06-16 17:52:40 -04:00
|
|
|
INSTALLS_SHLIB= yes
|
2003-02-23 12:34:03 -05:00
|
|
|
CONFIGURE_ARGS= --enable-glib2
|
2000-02-16 07:01:25 -05:00
|
|
|
|
2003-02-23 12:34:03 -05:00
|
|
|
MAN1= gnet-glib2-config.1
|
2002-06-27 01:57:24 -04:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
# fix pthreads detection
|
|
|
|
@${REINPLACE_CMD} -E -e 's,-lpthread|-lc_r,${PTHREAD_LIBS},' \
|
|
|
|
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
|
|
|
# remove "release" information from lib name
|
|
|
|
@${REINPLACE_CMD} -E -e 's|-release[ ]+\$$\(LT_RELEASE\)||g' \
|
|
|
|
${WRKSRC}/src/Makefile.in
|
|
|
|
# don't install gnet-config script with odd name. We will install it ourselves
|
|
|
|
@${REINPLACE_CMD} -E -e 's|^(install-exec-am:).+$$|\1|' \
|
|
|
|
${WRKSRC}/Makefile.in
|
2003-02-23 12:34:03 -05:00
|
|
|
# don't install any of the config files. We will do it ourselves.
|
|
|
|
@${REINPLACE_CMD} -E -e 's|^(install-data-am:).+$$|\1|' \
|
|
|
|
${WRKSRC}/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -E -e 's|^[[:space:]]+install-pkgconfigDATA$$||' \
|
|
|
|
${WRKSRC}/Makefile.in
|
|
|
|
# don't install the manpage. We will do it ourselves.
|
|
|
|
@${REINPLACE_CMD} -E -e 's|^(install-data-am:).+$$|\1 install-data-local|' \
|
2002-06-27 01:57:24 -04:00
|
|
|
${WRKSRC}/doc/Makefile.in
|
|
|
|
# install configincludedir correctly
|
2003-02-23 12:34:03 -05:00
|
|
|
@${REINPLACE_CMD} -E -e 's|^(configincludedir).+$$|\1=\$$\(pkgincludedir\)-glib2|' \
|
2002-06-27 01:57:24 -04:00
|
|
|
${WRKSRC}/Makefile.in
|
|
|
|
|
|
|
|
post-install:
|
2003-02-23 12:35:10 -05:00
|
|
|
@${MKDIR} ${PREFIX}/bin
|
2003-02-23 12:34:03 -05:00
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/gnet-config ${PREFIX}/bin/gnet-glib2-config
|
2003-02-23 12:35:10 -05:00
|
|
|
@${MKDIR} ${PREFIX}/share/aclocal
|
2003-02-23 12:34:03 -05:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/gnet.m4 ${PREFIX}/share/aclocal/gnet-glib2.m4
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/gnetconfig.h \
|
|
|
|
${PREFIX}/include/gnet-glib2
|
2003-02-23 12:35:10 -05:00
|
|
|
@${MKDIR} ${PREFIX}/libdata/pkgconfig
|
2003-02-23 12:34:03 -05:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/gnet.pc \
|
|
|
|
${PREFIX}/libdata/pkgconfig/gnet-glib2.pc
|
2003-02-23 12:35:10 -05:00
|
|
|
@${MKDIR} ${PREFIX}/man/man1
|
2003-02-23 12:34:03 -05:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/gnet-config.1 \
|
|
|
|
${PREFIX}/man/man1/gnet-glib2-config.1
|
2002-06-27 01:57:24 -04:00
|
|
|
|
2000-02-16 07:01:25 -05:00
|
|
|
.include <bsd.port.mk>
|