mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-15 03:14:23 +00:00
9e5632dd66
the libtoolX ports instead of the one included with each port. Ports that set USE_LIBTOOL_VER=X will now use the ports version of libtool instead of the included version. To restore previous behavior, use the new macro, USE_INC_LIBTOOL_VER. Both macros accept the same argument: a libtool version. For example, to use the ports version of libtool-1.5, add the following to your Makefile: USE_LIBTOOL_VER= 15 To use the included version of libtool with extra hacks provided by libtool-1.5, add the following to your Makefile: USE_INC_LIBTOOL_VER= 15 With this change, ports that had to add additional libtool hacks to prevent .la files from being installed or to fix certain threading issues can now delete those hacks (after appropriate testing, of course). PR: 63944 Based on work by:eik and marcus Approved by: ade (autotools maintainer) Tested by: kris on pointyhat Bound to be hidden problems: You bet
44 lines
1.3 KiB
Makefile
44 lines
1.3 KiB
Makefile
# New ports collection makefile for: gnet
|
|
# Date created: 16 February 2000
|
|
# Whom: Yukihiro Nakai <nakai@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= gnet
|
|
PORTVERSION= 1.1.4
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://www.gnetlibrary.org/src/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= A simple network library built upon Glib
|
|
|
|
USE_REINPLACE= yes
|
|
USE_GNOME= gnomehack glib12
|
|
USE_INC_LIBTOOL_VER=13
|
|
INSTALLS_SHLIB= yes
|
|
|
|
MAN1= gnet-config.1
|
|
|
|
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
|
|
# install gnet-config.1 man (not another name). Revise at EVERY port update
|
|
@${REINPLACE_CMD} -e 's|\$$\$$inst|\$$\$$file|g' \
|
|
${WRKSRC}/doc/Makefile.in
|
|
# install configincludedir correctly
|
|
@${REINPLACE_CMD} -E -e 's|^(configincludedir).+$$|\1=\$$\(pkgincludedir\)|' \
|
|
${WRKSRC}/Makefile.in
|
|
|
|
post-install:
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/gnet-config ${PREFIX}/bin
|
|
|
|
.include <bsd.port.mk>
|