# $OpenBSD: Makefile,v 1.15 1999/03/26 04:50:45 marc Exp $ DISTNAME= gtk+-1.2.0 CATEGORIES= x11 NEED_VERSION= 1.79 MAINTAINER= marc@openbsd.org 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/ BUILD_DEPENDS= gettext:${PORTSDIR}/devel/gettext RUN_DEPENDS= gettext:${PORTSDIR}/devel/gettext LIB_DEPENDS= glib.1.2:${PORTSDIR}/devel/glib USE_X11= yes USE_PERL5= yes SYSCONFDIR= ${PREFIX}/lib SEPARATE_BUILD= yes GNU_CONFIGURE= yes CONFIGURE_ARGS= ${CONFIGURE_SHARED} CONFIGURE_ARGS+= --enable-static --sysconfdir=${SYSCONFDIR} CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LIBS="-L${LOCALBASE}/lib" # People that installed an older version of gtk+ wound up with # libglib.a and other things 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 gtk+ installation"; \ echo "| before installing this version. Run these commands"; \ echo "| as user root to remove the package:"; \ 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} ${WRKSRC}/docs/*.info post-install: @${MKDIR} ${LOCALBASE}/share/aclocal @${INSTALL_DATA} ${WRKSRC}/gtk.m4 ${LOCALBASE}/share/aclocal/ test -f ${PREFIX}/info/dir || \ sed -ne '1,/Menu:/p' /usr/share/info/dir > ${PREFIX}/info/dir install-info ${PREFIX}/info/gtk.info ${PREFIX}/info/dir install-info ${PREFIX}/info/gdk.info ${PREFIX}/info/dir ${LDCONFIG} -m ${PREFIX}/lib .include