253d4c8ad2
sysconf is not. This causes glib to try and malloc UINT_MAX bytes of memeory which basically translates to -1 bytes. Sanity check the value returned by sysconf (_SC_GETPW_R_SIZE_MAX) to see that it's really implemented. This fixes an abort people started to see in Glib-based applications. Reported by: Shin-ichi YOSHIMOTO <yosimoto@waishi.jp>
34 lines
845 B
Makefile
34 lines
845 B
Makefile
# New ports collection makefile for: glib12
|
|
# Date Created: 28 July 1998
|
|
# Whom: Vanilla I. Shu <vanilla@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= glib
|
|
PORTVERSION= 1.2.10
|
|
PORTREVISION= 9
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ${MASTER_SITE_GNOME}
|
|
MASTER_SITE_SUBDIR= sources/glib/1.2
|
|
|
|
BUILD_DEPENDS= pkg-config:${PORTSDIR}/devel/pkgconfig
|
|
RUN_DEPENDS= pkg-config:${PORTSDIR}/devel/pkgconfig
|
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
|
COMMENT= Some useful routines of C programming (previous stable version)
|
|
|
|
USE_LIBTOOL= yes
|
|
INSTALLS_SHLIB= yes
|
|
LIBTOOLFLAGS= --disable-ltlibs --release-suffix
|
|
CONFIGURE_ARGS= --includedir=${PREFIX}/include/glib12
|
|
CONFIGURE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
|
PTHREAD_LIBS="${PTHREAD_LIBS}"
|
|
|
|
MAN1= glib-config.1
|
|
|
|
post-install:
|
|
${LN} -sf ${PREFIX}/bin/glib-config ${PREFIX}/bin/glib12-config
|
|
|
|
.include <bsd.port.mk>
|