aboutsummaryrefslogtreecommitdiff
path: root/print/ghostscript8
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2012-09-04 19:05:49 +0000
committerHiroki Sato <hrs@FreeBSD.org>2012-09-04 19:05:49 +0000
commit12b5de378c9d797d90583ee327bf952cedeadad7 (patch)
treebad9b2a649b3513c5296a8be3713086c85aaec3b /print/ghostscript8
parente39f0668ced510d9e5c6de1d6c1c5af07098fbd9 (diff)
downloadports-12b5de378c9d797d90583ee327bf952cedeadad7.tar.gz
ports-12b5de378c9d797d90583ee327bf952cedeadad7.zip
Notes
Diffstat (limited to 'print/ghostscript8')
-rw-r--r--print/ghostscript8/Makefile4
-rw-r--r--print/ghostscript8/Makefile.drivers2
-rw-r--r--print/ghostscript8/files/Makefile.drivers_post4
3 files changed, 7 insertions, 3 deletions
diff --git a/print/ghostscript8/Makefile b/print/ghostscript8/Makefile
index 45b7309abf23..359dd0c0bf68 100644
--- a/print/ghostscript8/Makefile
+++ b/print/ghostscript8/Makefile
@@ -90,8 +90,8 @@ MLINKS= gslp.1 gsbj.1 \
CIDFONTDIR= ${DATADIR}/${PORTVERSION}/Resource
EXCLUDE_DIRS= 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_//}
@@ -171,10 +171,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 ${DEVICE_${N}:M${D}.dev}
@${ECHO_CMD} 'DEVICE_${N}+= $$(DD)${D}.dev' >> ${WRKSRC}/base/drivers.mak
.endfor
.endif
+.endif
.endfor
.endfor
diff --git a/print/ghostscript8/Makefile.drivers b/print/ghostscript8/Makefile.drivers
index a2bc5f2901f8..175e4975a4ab 100644
--- a/print/ghostscript8/Makefile.drivers
+++ b/print/ghostscript8/Makefile.drivers
@@ -13,11 +13,9 @@ OPTIONS_X11= \
GS_x11rg16x \
GS_x11rg32x
-.if ${ARCH:Mamd64} || ${ARCH:Mi386}
OPTIONS_SVGALIB= \
GS_lvga256 \
GS_vgalib
-.endif
OPTIONS_ICONV= \
GS_oprp \
diff --git a/print/ghostscript8/files/Makefile.drivers_post b/print/ghostscript8/files/Makefile.drivers_post
index 20e7a086c9f3..ee68a8ffaafd 100644
--- a/print/ghostscript8/files/Makefile.drivers_post
+++ b/print/ghostscript8/files/Makefile.drivers_post
@@ -52,7 +52,11 @@ VGA_DEVS= lvga256 vgalib
.for D in ${VGA_DEVS}
.if ${PORT_OPTIONS:MGS_${D}}
+.if ${ARCH:Mamd64} || ${ARCH:Mi386}
_VGA_DEVS+= ${D}
+.else
+OPTIONS_UNSET+= ${PORT_OPTIONS:MGS_${D}}
+.endif
.endif
.endfor