89 lines
2.7 KiB
Makefile
89 lines
2.7 KiB
Makefile
# $NetBSD: Makefile,v 1.59 2003/07/12 13:17:56 dillo Exp $
|
|
# FreeBSD Id: Makefile,v 1.2 1998/08/06 14:55:12 vanilla Exp
|
|
#
|
|
|
|
DISTNAME= glib-1.2.10
|
|
PKGREVISION= 5
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ftp://ftp.gtk.org/pub/gtk/v1.2/ \
|
|
ftp://ftp.cs.umn.edu/pub/gimp/gtk/v1.2/ \
|
|
${MASTER_SITE_GNOME:=sources/glib/1.2/}
|
|
|
|
MAINTAINER= tron@netbsd.org
|
|
HOMEPAGE= http://developer.gnome.org/doc/API/glib/index.html
|
|
COMMENT= Some useful routines for C programming
|
|
|
|
CONFLICTS= gtk+-1.0.*
|
|
|
|
USE_BUILDLINK2= yes
|
|
GNU_CONFIGURE= yes
|
|
USE_LIBTOOL= yes
|
|
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
|
|
PKGCONFIG_OVERRIDE= ${WRKSRC}/glib.pc.in
|
|
PKGCONFIG_OVERRIDE+= ${WRKSRC}/gmodule.pc.in
|
|
PKGCONFIG_OVERRIDE+= ${WRKSRC}/gthread.pc.in
|
|
CONFIGURE_ARGS+= --includedir=${PREFIX}/include/glib
|
|
|
|
INFO_FILES= glib.info
|
|
USE_NEW_TEXINFO= YES
|
|
|
|
TEST_TARGET= check
|
|
|
|
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
|
|
|
|
.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
|
|
USE_GCC3=YES
|
|
. include "../../mk/gcc.buildlink2.mk"
|
|
.endif
|
|
|
|
GLIB_VERSION= ${DISTNAME:S/glib-//}
|
|
GLIB_MAJOR_VERSION= ${GLIB_VERSION:C/\..*//}
|
|
GLIB_MINOR_VERSION= ${GLIB_VERSION:C/[^.]*\.//:C/\..*//}
|
|
GLIB_MICRO_VERSION= ${GLIB_VERSION:C/.*\.//}
|
|
|
|
# We patch the version info in the configure scripts for reasons related to
|
|
# shared library numbering, but we don't want it to leak into the various
|
|
# installed files. Explicitly replace the version number with the correct
|
|
# one derived from the package name.
|
|
#
|
|
pre-configure:
|
|
@cd ${WRKSRC}; \
|
|
files="glib-config.in docs/glib-config.1.in glib.pc.in gmodule.pc.in gthread.pc.in"; \
|
|
for f in $${files}; do \
|
|
${SED} -e "s|@GLIB_VERSION@|${GLIB_VERSION}|g" \
|
|
-e "s|@VERSION@|${GLIB_VERSION}|g" \
|
|
$${f} > $${f}.fixed; \
|
|
${MV} -f $${f}.fixed $${f}; \
|
|
done
|
|
|
|
post-configure:
|
|
@cd ${WRKSRC}; \
|
|
files="config.status config.h glibconfig.h"; \
|
|
for f in $${files}; do \
|
|
${SED} -e "s|^\(#define.*GLIB_MAJOR_VERSION\).*|\1 ${GLIB_MAJOR_VERSION}|" \
|
|
-e "s|^\(#define.*GLIB_MINOR_VERSION\).*|\1 ${GLIB_MINOR_VERSION}|" \
|
|
-e "s|^\(#define.*GLIB_MICRO_VERSION\).*|\1 ${GLIB_MICRO_VERSION}|" \
|
|
$${f} > $${f}.fixed; \
|
|
${MV} $${f}.fixed $${f}; \
|
|
done; \
|
|
${CHMOD} +x config.status
|
|
.if exists(/usr/include/sys/null.h)
|
|
@cd ${WRKSRC}; \
|
|
files="glib.h"; \
|
|
for f in $${files}; do \
|
|
${SED} -e "s|^#define.NULL.*|#include <sys/null.h>|" \
|
|
$${f} > $${f}.fixed; \
|
|
${MV} $${f}.fixed $${f}; \
|
|
done
|
|
.endif
|
|
|
|
.include "../../mk/pthread.buildlink2.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|