2001-10-23 15:14:43 +02:00
|
|
|
# $NetBSD: Makefile,v 1.67 2001/10/23 13:15:08 jlam Exp $
|
1998-02-03 11:07:45 +01:00
|
|
|
|
2001-04-26 19:42:54 +02:00
|
|
|
DISTNAME= gtk+-1.2.10
|
2000-06-05 03:12:37 +02:00
|
|
|
CATEGORIES= x11
|
|
|
|
MASTER_SITES= ftp://ftp.gtk.org/pub/gtk/v1.2/ \
|
|
|
|
ftp://ftp.cs.umn.edu/pub/gimp/gtk/v1.2/ \
|
|
|
|
http://www.ameth.org/gimp/pub/gtk/v1.2/ \
|
2001-04-27 13:46:34 +02:00
|
|
|
${MASTER_SITE_GNOME:=stable/sources/gtk/}
|
1998-02-03 11:07:45 +01:00
|
|
|
|
2000-06-05 03:12:37 +02:00
|
|
|
MAINTAINER= tron@netbsd.org
|
|
|
|
HOMEPAGE= http://www.gtk.org/
|
2001-02-17 18:06:11 +01:00
|
|
|
COMMENT= Gimp toolkit. Libraries for building X11 user interfaces
|
1998-02-03 11:07:45 +01:00
|
|
|
|
2001-04-30 06:16:08 +02:00
|
|
|
BUILD_DEPENDS+= perl>=${PERL5_REQD}:../../lang/perl5
|
2001-03-27 05:19:43 +02:00
|
|
|
BUILD_USES_MSGFMT= yes
|
1998-08-21 00:16:38 +02:00
|
|
|
|
2001-06-18 23:32:23 +02:00
|
|
|
USE_BUILDLINK_ONLY= yes
|
2000-06-05 03:12:37 +02:00
|
|
|
USE_LIBTOOL= yes
|
|
|
|
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
|
|
|
|
USE_X11BASE= yes
|
|
|
|
USE_GMAKE= yes
|
1998-02-03 11:07:45 +01:00
|
|
|
|
2000-06-05 03:12:37 +02:00
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS+= --with-xinput=xfree
|
2001-06-11 08:34:17 +02:00
|
|
|
CONFIGURE_ENV+= X_LDFLAGS="${X_LDFLAGS}"
|
1998-07-19 01:14:27 +02:00
|
|
|
|
2000-06-05 03:12:37 +02:00
|
|
|
INFO_FILES= gdk.info gtk.info
|
1998-02-03 11:07:45 +01:00
|
|
|
|
2001-02-26 22:42:57 +01:00
|
|
|
MAKE_ENV+= PKGLOCALEDIR="${PKGLOCALEDIR}"
|
2000-06-05 03:12:37 +02:00
|
|
|
PLIST_SUBST+= LOCALBASE=${LOCALBASE}
|
1999-10-07 05:57:51 +02:00
|
|
|
|
|
|
|
# The following ensures that `gtk-config --libs' includes the correct linker
|
|
|
|
# flags for linking the X11 libs.
|
|
|
|
#
|
2001-08-30 00:41:00 +02:00
|
|
|
X_LDFLAGS= -Wl,-R${X11BASE}/lib -L${BUILDLINK_X11_DIR}/lib
|
1998-12-19 00:53:15 +01:00
|
|
|
|
2001-06-19 08:52:10 +02:00
|
|
|
GTK_VERSION= ${DISTNAME:S/gtk+-//}
|
|
|
|
GTK_MAJOR_VERSION= ${GTK_VERSION:C/\..*//}
|
|
|
|
GTK_MINOR_VERSION= ${GTK_VERSION:C/[^.]*\.//:C/\..*//}
|
|
|
|
GTK_MICRO_VERSION= ${GTK_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="gtk-config.in docs/gtk-config.1.in gdk.pc.in gtk+.pc.in gtk/gtkfeatures.h.in"; \
|
|
|
|
for file in $${files}; do \
|
|
|
|
${MV} -f $${file} $${file}.fixme; \
|
|
|
|
${SED} -e "s|@GTK_MAJOR_VERSION@|${GTK_MAJOR_VERSION}|g" \
|
|
|
|
-e "s|@GTK_MINOR_VERSION@|${GTK_MINOR_VERSION}|g" \
|
|
|
|
-e "s|@GTK_MICRO_VERSION@|${GTK_MICRO_VERSION}|g" \
|
|
|
|
-e "s|@VERSION@|${GTK_VERSION}|g" \
|
|
|
|
$${file}.fixme > $${file}; \
|
|
|
|
${RM} $${file}.fixme; \
|
|
|
|
done
|
|
|
|
|
1999-10-23 01:35:04 +02:00
|
|
|
post-install:
|
|
|
|
${TEST} ${PREFIX} = ${LOCALBASE} || \
|
|
|
|
${LN} -fs ${PREFIX}/share/aclocal/gtk.m4 \
|
|
|
|
${LOCALBASE}/share/aclocal/gtk.m4
|
|
|
|
|
2001-10-23 15:14:43 +02:00
|
|
|
.include "../../mk/x11.buildlink.mk"
|
2001-06-29 06:54:49 +02:00
|
|
|
.include "../../devel/gettext-lib/buildlink.mk"
|
|
|
|
.include "../../devel/glib/buildlink.mk"
|
1998-04-15 12:38:15 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|