openbsd-ports/devel/glib/Makefile
2000-03-08 01:13:13 +00:00

53 lines
1.5 KiB
Makefile

# $OpenBSD: Makefile,v 1.22 2000/03/08 01:13:13 espie Exp $
DISTNAME= glib-1.2.6
CATEGORIES= devel
NEED_VERSION= 1.218
MASTER_SITES= ftp://ftp.gimp.org/pub/gtk/v1.2/ \
ftp://ftp.cs.umn.edu/pub/gimp/gtk/v1.2/ \
http://www.ameth.org/gimp/gtk/v1.2/
MAINTAINER= brad@openbsd.org
LICENSE_TYPE= GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
FAKE= Yes
GNU_CONFIGURE= Yes
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
CONFIGURE_ARGS+= --enable-static --disable-threads \
--includedir="${PREFIX}/include/glib"
# People that installed an older version of gtk+ wound up with
# libglib.a and libglib.so.1.6 in /usr/X11R6/lib... these files
# MUST be removed as the version was incorrect (it came from 1.0.6
# sources). Check that out here (and bitch if necessary).
pre-extract:
@if [ -f ${X11BASE}/lib/libglib.a ]; then \
echo "+-------------------"; \
echo "| ERROR: you MUST remove the existing glib installation"; \
echo "| before installing this version. Glib was installed as"; \
echo "| part of an older version of gtk+. To fully remove run"; \
echo "| these commands as user root"; \
echo "|"; \
echo "| pkg_delete -f `pkg_info -e 'gtk+-*'`"; \
echo "| ldconfig ${X11BASE}/lib"; \
echo "| ldconfig -m ${LOCALBASE}/lib"; \
echo "|"; \
echo "+-------------------"; \
exit 1; \
fi
post-extract:
@rm -f ${WRKSRC}/docs/glib.info*
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/aclocal
${INSTALL_DATA} ${WRKSRC}/glib.m4 ${PREFIX}/share/aclocal/
.include <bsd.port.mk>