aboutsummaryrefslogtreecommitdiffstats
path: root/print/ghostscript9/Makefile
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2012-09-05 03:05:49 +0800
committerhrs <hrs@FreeBSD.org>2012-09-05 03:05:49 +0800
commitfa2c92347a3fabc470870afee61c0a3d7fc24752 (patch)
treebad9b2a649b3513c5296a8be3713086c85aaec3b /print/ghostscript9/Makefile
parent907cffefbbb898dd4d3f7c624eb8ba6873a6d6f1 (diff)
downloadfreebsd-ports-gnome-fa2c92347a3fabc470870afee61c0a3d7fc24752.tar.gz
freebsd-ports-gnome-fa2c92347a3fabc470870afee61c0a3d7fc24752.tar.zst
freebsd-ports-gnome-fa2c92347a3fabc470870afee61c0a3d7fc24752.zip
Revert r303635 to fix an wrong OPTIONS handling and resolve svgalib dependency
in the case of !amd64 && !i386 in another way. Pointed out by: crees Pointy hat to: hrs
Diffstat (limited to 'print/ghostscript9/Makefile')
-rw-r--r--print/ghostscript9/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/print/ghostscript9/Makefile b/print/ghostscript9/Makefile
index 09a0b821e3c9..aace4e710856 100644
--- a/print/ghostscript9/Makefile
+++ b/print/ghostscript9/Makefile
@@ -95,8 +95,8 @@ MLINKS= gslp.1 gsbj.1 \
EXCLUDE_DIRS= freetype jbig2dec jpeg expat jasper libpng tiff zlib
-.include <bsd.port.pre.mk>
.include "Makefile.drivers"
+.include <bsd.port.pre.mk>
.include "${FILESDIR}/Makefile.drivers_post"
.for D in ${OPTIONS_DEFINE:MGS_*:S/^GS_//}
@@ -172,10 +172,12 @@ pre-build-drivers.mak:
.for D in ${OPTIONS_DEFINE:MGS_*:S/^GS_//}
.for N in ${DEVS_LIST}
.if ${PORT_OPTIONS:MGS_${D}}
+.if !defined(OPTIONS_UNSET) || !${OPTIONS_UNSET:MGS_${D}}
.for X in ${${N:S/^/DEVICE_/:S/^DEVICE_DISPLAY_DEV/DISPLAY_DEV/}:M${D}.dev}
@${ECHO_CMD} '${N:S/^/DEVICE_/:S/^DEVICE_DISPLAY_DEV/DISPLAY_DEV/}+= $$(DD)${D}.dev' >> ${WRKSRC}/base/drivers.mak
.endfor
.endif
+.endif
.endfor
.endfor