2012-10-31 12:16:30 +01:00
|
|
|
# $NetBSD: Makefile,v 1.88 2012/10/31 11:17:00 asau Exp $
|
Initial import, from the FreeBSD ports collection, of glib-1.1.2,
which used to be part of gtk+. It is a library providing lists,
trees, hashes, memory allocation functionality and many other things.
Modified by me to use the NetBSD libtool package, add NetBSD RCS Ids,
correct the PLIST, install scripts correctly, correct the English etc.
1998-08-19 11:29:25 +02:00
|
|
|
|
2001-04-26 19:38:28 +02:00
|
|
|
DISTNAME= glib-1.2.10
|
2006-06-08 23:13:38 +02:00
|
|
|
PKGREVISION= 10
|
2000-06-05 02:54:47 +02:00
|
|
|
CATEGORIES= devel
|
|
|
|
MASTER_SITES= ftp://ftp.gtk.org/pub/gtk/v1.2/ \
|
2002-10-19 12:54:42 +02:00
|
|
|
${MASTER_SITE_GNOME:=sources/glib/1.2/}
|
Initial import, from the FreeBSD ports collection, of glib-1.1.2,
which used to be part of gtk+. It is a library providing lists,
trees, hashes, memory allocation functionality and many other things.
Modified by me to use the NetBSD libtool package, add NetBSD RCS Ids,
correct the PLIST, install scripts correctly, correct the English etc.
1998-08-19 11:29:25 +02:00
|
|
|
|
2008-05-25 16:45:16 +02:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2012-10-03 21:32:58 +02:00
|
|
|
HOMEPAGE= http://developer.gnome.org/glib/
|
2004-10-04 13:19:40 +02:00
|
|
|
COMMENT= Some useful routines for C programming (glib1)
|
Initial import, from the FreeBSD ports collection, of glib-1.1.2,
which used to be part of gtk+. It is a library providing lists,
trees, hashes, memory allocation functionality and many other things.
Modified by me to use the NetBSD libtool package, add NetBSD RCS Ids,
correct the PLIST, install scripts correctly, correct the English etc.
1998-08-19 11:29:25 +02:00
|
|
|
|
2000-06-05 02:54:47 +02:00
|
|
|
CONFLICTS= gtk+-1.0.*
|
2000-03-16 13:17:21 +01:00
|
|
|
|
2004-01-05 21:48:01 +01:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
|
2000-06-05 02:54:47 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_LIBTOOL= yes
|
2004-02-14 19:26:26 +01:00
|
|
|
PKGCONFIG_OVERRIDE= glib.pc.in
|
|
|
|
PKGCONFIG_OVERRIDE+= gmodule.pc.in
|
|
|
|
PKGCONFIG_OVERRIDE+= gthread.pc.in
|
2000-06-05 02:54:47 +02:00
|
|
|
CONFIGURE_ARGS+= --includedir=${PREFIX}/include/glib
|
2006-06-08 23:13:38 +02:00
|
|
|
INFO_FILES= yes
|
2007-01-18 20:50:54 +01:00
|
|
|
MAKE_JOBS_SAFE= no
|
1998-11-21 17:57:29 +01:00
|
|
|
|
2003-07-12 15:13:46 +02:00
|
|
|
TEST_TARGET= check
|
|
|
|
|
2003-03-04 20:53:26 +01:00
|
|
|
PTHREAD_OPTS+= require
|
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
# Force the result of this configure test, because the testing technique
|
|
|
|
# breaks with NetBSD's native libpthread.so.
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
|
|
CONFIGURE_ENV+= glib_cv_rtldglobal_broken=no
|
|
|
|
.endif
|
|
|
|
|
2003-06-11 22:50:50 +02:00
|
|
|
.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
|
2004-02-01 02:43:28 +01:00
|
|
|
GCC_REQD+= 3.0
|
1999-05-01 14:22:46 +02:00
|
|
|
.endif
|
Initial import, from the FreeBSD ports collection, of glib-1.1.2,
which used to be part of gtk+. It is a library providing lists,
trees, hashes, memory allocation functionality and many other things.
Modified by me to use the NetBSD libtool package, add NetBSD RCS Ids,
correct the PLIST, install scripts correctly, correct the English etc.
1998-08-19 11:29:25 +02:00
|
|
|
|
2001-06-19 08:04:41 +02:00
|
|
|
GLIB_VERSION= ${DISTNAME:S/glib-//}
|
2001-06-19 08:48:50 +02:00
|
|
|
GLIB_MAJOR_VERSION= ${GLIB_VERSION:C/\..*//}
|
|
|
|
GLIB_MINOR_VERSION= ${GLIB_VERSION:C/[^.]*\.//:C/\..*//}
|
|
|
|
GLIB_MICRO_VERSION= ${GLIB_VERSION:C/.*\.//}
|
2001-06-19 08:03:25 +02:00
|
|
|
|
2006-06-08 23:13:38 +02:00
|
|
|
SUBST_CLASSES+= shlib1
|
|
|
|
SUBST_MESSAGE.shlib1= Fixing shared library versions (part 1)
|
|
|
|
SUBST_STAGE.shlib1= pre-configure
|
|
|
|
SUBST_FILES.shlib1= glib-config.in docs/glib-config.1.in glib.pc.in \
|
|
|
|
gmodule.pc.in gthread.pc.in
|
|
|
|
SUBST_SED.shlib1= -e "s|@GLIB_VERSION@|${GLIB_VERSION}|g"
|
|
|
|
SUBST_SED.shlib1+= -e "s|@VERSION@|${GLIB_VERSION}|g"
|
|
|
|
|
|
|
|
SUBST_CLASSES+= shlib2
|
|
|
|
SUBST_MESSAGE.shlib2= Fixing shared library versions (part 2)
|
|
|
|
SUBST_STAGE.shlib2= post-configure
|
|
|
|
SUBST_FILES.shlib2= config.status config.h glibconfig.h
|
|
|
|
SUBST_SED.shlib2= -e "s|^\\(\#define.*GLIB_MAJOR_VERSION\\).*|\\1 ${GLIB_MAJOR_VERSION}|"
|
|
|
|
SUBST_SED.shlib2+= -e "s|^\\(\#define.*GLIB_MINOR_VERSION\\).*|\\1 ${GLIB_MINOR_VERSION}|"
|
|
|
|
SUBST_SED.shlib2+= -e "s|^\\(\#define.*GLIB_MICRO_VERSION\\).*|\\1 ${GLIB_MICRO_VERSION}|"
|
|
|
|
|
|
|
|
#post-configure:
|
|
|
|
# ${CHMOD} +x config.status
|
|
|
|
|
2001-10-06 19:52:21 +02:00
|
|
|
.if exists(/usr/include/sys/null.h)
|
2006-06-08 23:13:38 +02:00
|
|
|
SUBST_CLASSES+= null
|
|
|
|
SUBST_MESSAGE.null= Using "sys/null.h" to get definition of NULL.
|
|
|
|
SUBST_STAGE.null= post-configure
|
|
|
|
SUBST_FILES.null= glib.h
|
|
|
|
SUBST_SED.null= -e "s|^\#define.NULL.*|\#include <sys/null.h>|"
|
2001-10-06 19:52:21 +02:00
|
|
|
.endif
|
2001-06-19 08:48:50 +02:00
|
|
|
|
2004-01-05 21:48:01 +01:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
Initial import, from the FreeBSD ports collection, of glib-1.1.2,
which used to be part of gtk+. It is a library providing lists,
trees, hashes, memory allocation functionality and many other things.
Modified by me to use the NetBSD libtool package, add NetBSD RCS Ids,
correct the PLIST, install scripts correctly, correct the English etc.
1998-08-19 11:29:25 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|