openbsd-ports/devel/glib/Makefile

52 lines
1.6 KiB
Makefile
Raw Normal View History

1999-09-04 00:56:24 -04:00
# $OpenBSD: Makefile,v 1.16 1999/09/04 04:56:24 brad Exp $
1999-09-04 00:56:24 -04:00
DISTNAME= glib-1.2.4
CATEGORIES= devel
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/
NEED_VERSION= 1.73
MAINTAINER= brad@openbsd.org
1999-09-04 00:56:24 -04:00
SEPARATE_BUILD= simple
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"; \
1999-03-25 20:53:44 -05:00
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 "|"; \
1999-03-25 20:53:44 -05:00
echo "| pkg_delete -f `pkg_info -e 'gtk+-*'`"; \
1999-03-25 20:55:53 -05:00
echo "| ldconfig ${X11BASE}/lib"; \
echo "| ldconfig -m ${LOCALBASE}/lib"; \
echo "|"; \
echo "+-------------------"; \
exit 1; \
fi
post-extract:
@${RM} ${WRKSRC}/docs/*.info
post-install:
@${MKDIR} ${LOCALBASE}/share/aclocal
@${INSTALL_DATA} ${WRKSRC}/glib.m4 ${LOCALBASE}/share/aclocal/
1999-04-22 17:54:34 -04:00
@test -f ${PREFIX}/info/dir || \
sed -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/info/dir
@install-info ${PREFIX}/info/glib.info ${PREFIX}/info/dir
${LDCONFIG} -m ${PREFIX}/lib
.include <bsd.port.mk>