diff options
author | steve <steve@FreeBSD.org> | 2000-07-07 19:59:26 +0000 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 2000-07-07 19:59:26 +0000 |
commit | 7879264d29ab2a706345ab21de9f9cd3139efc7a (patch) | |
tree | 0fb8a7b052271f54c6bdf617de3027472d998225 /math/geg | |
parent | c691dd330a3da8e70bfc74508b9fb3b585604a4d (diff) | |
download | FreeBSD-ports-7879264d29ab2a706345ab21de9f9cd3139efc7a.zip FreeBSD-ports-7879264d29ab2a706345ab21de9f9cd3139efc7a.tar.gz |
- Use GTK_CONFIG/GLIB_CONFIG instead of hardcoded gtk12-config/glib12-config
- Support CC/CFLAGS/PREIFX/LOCALBASE/X11BASE/MAKE/etc. properly
PR: 19623
Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
Diffstat (limited to 'math/geg')
-rw-r--r-- | math/geg/Makefile | 15 | ||||
-rw-r--r-- | math/geg/files/patch-ac | 12 |
2 files changed, 22 insertions, 5 deletions
diff --git a/math/geg/Makefile b/math/geg/Makefile index 0169dc0..717e127 100644 --- a/math/geg/Makefile +++ b/math/geg/Makefile @@ -16,12 +16,17 @@ MAINTAINER= domi@saargate.de LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12 -USE_X_PREFIX= yes -GNU_CONFIGURE= yes +GTK_CONFIG?= ${X11BASE}/bin/gtk12-config -CONFIGURE_ENV= LIBS="-L${X11BASE}/lib -L${LOCALBASE}/lib" +USE_X_PREFIX= yes +USE_AUTOMAKE= yes +AUTOMAKE= automake -a -i +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + GTK_CONFIG="${GTK_CONFIG}" \ + LIBS="-L${LOCALBASE}/lib" +MAN1= geg.1 -do-install: - @ ${INSTALL_PROGRAM} ${WRKSRC}/src/geg ${PREFIX}/bin +pre-configure: + @cd ${WRKSRC}; aclocal -I ${X11BASE}/share/aclocal .include <bsd.port.mk> diff --git a/math/geg/files/patch-ac b/math/geg/files/patch-ac new file mode 100644 index 0000000..8c2451c --- /dev/null +++ b/math/geg/files/patch-ac @@ -0,0 +1,12 @@ +--- configure.in.orig Wed Nov 24 08:01:41 1999 ++++ configure.in Sat Jul 1 18:57:50 2000 +@@ -30,8 +30,7 @@ + fi + fi + +-AC_CHECK_PROG(GTK_CFLAGS, gtk-config, `gtk-config --cflags`,,,) +-AC_CHECK_PROG(GTK_LIBS, gtk-config, `gtk-config --libs`,,,) ++AM_PATH_GTK(1.2.0, , AC_MSG_ERROR(GTK+ is not installed or badly configured on your system...)) + + dnl Checks for libraries. + dnl Replace `main' with a function in -libs: |