From 6869fa842d2c6e96bad44cd348fb38794479292c Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Fri, 4 Apr 2008 17:22:04 +0000 Subject: Error on pre-configure if ghostscript-gnu is installed and warn to use ghostscript-gpl instead Requested by: mezz --- print/libspectre/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'print/libspectre') diff --git a/print/libspectre/Makefile b/print/libspectre/Makefile index 088dbfddf853..8e674da7dd2f 100644 --- a/print/libspectre/Makefile +++ b/print/libspectre/Makefile @@ -21,4 +21,12 @@ USE_GNOME= gnomehack gnomeprefix ltverhack USE_GHOSTSCRIPT=yes CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib" +pre-configure: + @if [ -n "`${PKG_INFO} -xI '^ghostscript-gnu-[0-9]*'`" ]; then \ + ${ECHO_CMD} "${PKGNAME}: ghostscript-gnu installed, please deinstall ghostscript-gnu"; \ + ${ECHO_CMD} "and use ghostscript-gpl. Make sure you don't have WITH_GHOSTSCRIPT_GNU"; \ + ${ECHO_CMD} "or GHOSTSCRIPT_PORT defined."; \ + ${FALSE}; \ + fi + .include -- cgit v1.2.3