summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authortron <tron>1998-05-07 15:17:46 +0000
committertron <tron>1998-05-07 15:17:46 +0000
commit97d35cbbd0b355741edf42d255bcd2274e2000f0 (patch)
treeb4bda563ab1111da6012e30d5b38b45172a6a014 /graphics
parentd2f88e1ace768bc64c20f7123106754d12bfa6a1 (diff)
downloadpkgsrc-97d35cbbd0b355741edf42d255bcd2274e2000f0.tar.gz
Because "gimp" uses its own binary to create a database it can't be built
without running X11. Add "IS_INTERACTIVE= yes" and a check for "$DISPLAY" to handle that properly.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/gimp/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/graphics/gimp/Makefile b/graphics/gimp/Makefile
index 3b3e406f092..ac01bafc241 100644
--- a/graphics/gimp/Makefile
+++ b/graphics/gimp/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.13 1998/05/04 22:01:16 tron Exp $
+# $NetBSD: Makefile,v 1.14 1998/05/07 15:17:46 tron Exp $
DISTNAME= gimp-0.99.28
CATEGORIES= graphics
@@ -20,6 +20,7 @@ DEPENDS+= xpm-3.4j:../../graphics/xpm
GIMP_DATA= gimp-data-extras-0.99a
+IS_INTERACTIVE= yes
USE_X11= yes
USE_GTEXINFO= yes
GNU_CONFIGURE= yes
@@ -37,6 +38,12 @@ post-configure:
PLIST_SRC= ${WRKDIR:T}/.PLIST-src
+pre-build:
+ @if [ "$$DISPLAY" = "" ]; then \
+ echo "${DISTNAME} can only be built under X11."; \
+ exit 1; \
+ fi
+
pre-install:
@if [ ! -f ${PREFIX}/info/dir ]; then \
${SED} -ne '1,/Menu:/p' ${LOCALBASE}/info/dir > ${PREFIX}/info/dir; \