add a no_x11 FLAVOR
This commit is contained in:
parent
e6ed534be0
commit
9320105419
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.21 2004/05/31 16:14:00 sturm Exp $
|
||||
# $OpenBSD: Makefile,v 1.22 2004/07/10 18:56:30 brad Exp $
|
||||
|
||||
COMMENT= "AFPL PostScript interpreter"
|
||||
|
||||
@ -51,73 +51,61 @@ BASE_FLAGS= INSTALL_PROGRAM='${INSTALL_SCRIPT}' \
|
||||
GLGENDIR=./objects \
|
||||
PSOBJDIR=./objects \
|
||||
PSGENDIR=./objects \
|
||||
STDLIBS='-pthread -lm'
|
||||
STDLIBS='-pthread -lm' \
|
||||
DEVICE_DEVS=
|
||||
|
||||
PDFDIR=share/ghostscript/${VERSION}/lib
|
||||
|
||||
BASE_FLAGS+= DEVICE_DEVS1='\
|
||||
$$(DD)x11.dev $$(DD)x11alpha.dev $$(DD)x11cmyk.dev $$(DD)x11cmyk2.dev \
|
||||
$$(DD)x11cmyk4.dev $$(DD)x11cmyk8.dev $$(DD)x11gray2.dev \
|
||||
$$(DD)x11gray4.dev $$(DD)x11mono.dev $$(DD)cljet5.dev $$(DD)deskjet.dev \
|
||||
$$(DD)djet500.dev $$(DD)laserjet.dev $$(DD)ljet2p.dev $$(DD)ljet3.dev \
|
||||
$$(DD)ljet3d.dev $$(DD)ljet4.dev $$(DD)ljetplus.dev $$(DD)lj5mono.dev \
|
||||
$$(DD)lj5gray.dev $$(DD)lp2563.dev $$(DD)oce9050.dev $$(DD)faxg3.dev \
|
||||
$$(DD)faxg32d.dev $$(DD)faxg4.dev $$(DD)tiffcrle.dev $$(DD)tiffg3.dev \
|
||||
$$(DD)tiffg32d.dev $$(DD)tiffg4.dev $$(DD)epswrite.dev $$(DD)pdfwrite.dev \
|
||||
$$(DD)pswrite.dev $$(DD)pxlmono.dev $$(DD)pxlcolor.dev $$(DD)bit.dev \
|
||||
$$(DD)bitrgb.dev $$(DD)bitcmyk.dev $$(DD)bmpmono.dev $$(DD)bmp16.dev \
|
||||
$$(DD)bmp256.dev $$(DD)bmp16m.dev $$(DD)cgmmono.dev $$(DD)cgm8.dev \
|
||||
$$(DD)cgm24.dev $$(DD)jpeg.dev $$(DD)jpeggray.dev $$(DD)miff24.dev \
|
||||
$$(DD)pcxmono.dev $$(DD)pcxgray.dev $$(DD)pcx16.dev $$(DD)pcx256.dev \
|
||||
$$(DD)pcx24b.dev $$(DD)pcxcmyk.dev $$(DD)pbm.dev $$(DD)pbmraw.dev \
|
||||
$$(DD)pgm.dev $$(DD)pgmraw.dev $$(DD)pgnm.dev $$(DD)pgnmraw.dev \
|
||||
$$(DD)pnm.dev $$(DD)pnmraw.dev $$(DD)ppm.dev $$(DD)ppmraw.dev \
|
||||
$$(DD)pkm.dev $$(DD)pkmraw.dev $$(DD)plan9bm.dev $$(DD)pngmono.dev \
|
||||
$$(DD)pnggray.dev $$(DD)png16.dev $$(DD)png256.dev $$(DD)png16m.dev \
|
||||
$$(DD)psmono.dev $$(DD)psgray.dev $$(DD)psrgb.dev $$(DD)tiff12nc.dev \
|
||||
$$(DD)tiff24nc.dev $$(DD)tifflzw.dev $$(DD)tiffpack.dev $$(DD)ap3250.dev \
|
||||
$$(DD)appledmp.dev $$(DD)bj10e.dev $$(DD)bj200.dev $$(DD)bjc600.dev \
|
||||
$$(DD)bjc800.dev $$(DD)cdeskjet.dev $$(DD)cdjcolor.dev \
|
||||
$$(DD)cdjmono.dev $$(DD)cdj500.dev $$(DD)cdj550.dev \
|
||||
$$(DD)declj250.dev $$(DD)djet500c.dev $$(DD)dnj650c.dev $$(DD)epson.dev \
|
||||
$$(DD)eps9mid.dev $$(DD)eps9high.dev $$(DD)epsonc.dev $$(DD)hl7x0.dev \
|
||||
$$(DD)ibmpro.dev $$(DD)imagen.dev $$(DD)iwhi.dev $$(DD)iwlo.dev \
|
||||
$$(DD)iwlq.dev $$(DD)jetp3852.dev \
|
||||
$$(DD)lbp8.dev $$(DD)lips3.dev \
|
||||
$$(DD)lj250.dev $$(DD)lj4dith.dev $$(DD)lp8000.dev \
|
||||
$$(DD)lq850.dev $$(DD)m8510.dev $$(DD)necp6.dev $$(DD)oki182.dev \
|
||||
$$(DD)okiibm.dev $$(DD)paintjet.dev $$(DD)pj.dev $$(DD)pjetxl.dev \
|
||||
$$(DD)pjxl.dev $$(DD)pjxl300.dev $$(DD)r4081.dev $$(DD)sj48.dev \
|
||||
$$(DD)st800.dev $$(DD)stcolor.dev $$(DD)t4693d2.dev $$(DD)t4693d4.dev \
|
||||
$$(DD)t4693d8.dev $$(DD)tek4696.dev $$(DD)uniprint.dev \
|
||||
$$(DD)dfaxhigh.dev $$(DD)dfaxlow.dev $$(DD)cif.dev \
|
||||
$$(DD)sgirgb.dev'
|
||||
X11_DEVICE_DEVS=\
|
||||
$$(DD)x11.dev $$(DD)x11alpha.dev $$(DD)x11cmyk.dev $$(DD)x11cmyk2.dev $$(DD)x11cmyk4.dev \
|
||||
$$(DD)x11cmyk8.dev $$(DD)x11gray2.dev $$(DD)x11gray4.dev $$(DD)x11mono.dev
|
||||
|
||||
BASE_DEVICE_DEVS1=\
|
||||
$$(DD)cljet5.dev $$(DD)deskjet.dev $$(DD)djet500.dev $$(DD)laserjet.dev $$(DD)ljet2p.dev \
|
||||
$$(DD)ljet3.dev $$(DD)ljet3d.dev $$(DD)ljet4.dev $$(DD)ljetplus.dev $$(DD)lj5mono.dev \
|
||||
$$(DD)lj5gray.dev $$(DD)lp2563.dev $$(DD)oce9050.dev $$(DD)faxg3.dev $$(DD)faxg32d.dev \
|
||||
$$(DD)faxg4.dev $$(DD)tiffcrle.dev $$(DD)tiffg3.dev $$(DD)tiffg32d.dev $$(DD)tiffg4.dev \
|
||||
$$(DD)epswrite.dev $$(DD)pdfwrite.dev $$(DD)pswrite.dev $$(DD)pxlmono.dev $$(DD)pxlcolor.dev \
|
||||
$$(DD)bit.dev $$(DD)bitrgb.dev $$(DD)bitcmyk.dev $$(DD)bmpmono.dev $$(DD)bmp16.dev \
|
||||
$$(DD)bmp256.dev $$(DD)bmp16m.dev $$(DD)cgmmono.dev $$(DD)cgm8.dev $$(DD)cgm24.dev \
|
||||
$$(DD)jpeg.dev $$(DD)jpeggray.dev $$(DD)miff24.dev $$(DD)pcxmono.dev $$(DD)pcxgray.dev \
|
||||
$$(DD)pcx16.dev $$(DD)pcx256.dev $$(DD)pcx24b.dev $$(DD)pcxcmyk.dev $$(DD)pbm.dev \
|
||||
$$(DD)pbmraw.dev $$(DD)pgm.dev $$(DD)pgmraw.dev $$(DD)pgnm.dev $$(DD)pgnmraw.dev \
|
||||
$$(DD)pnm.dev $$(DD)pnmraw.dev $$(DD)ppm.dev $$(DD)ppmraw.dev $$(DD)pkm.dev \
|
||||
$$(DD)pkmraw.dev $$(DD)plan9bm.dev $$(DD)pngmono.dev $$(DD)pnggray.dev $$(DD)png16.dev \
|
||||
$$(DD)png256.dev $$(DD)png16m.dev $$(DD)psmono.dev $$(DD)psgray.dev $$(DD)psrgb.dev \
|
||||
$$(DD)tiff12nc.dev $$(DD)tiff24nc.dev $$(DD)tifflzw.dev $$(DD)tiffpack.dev $$(DD)ap3250.dev \
|
||||
$$(DD)appledmp.dev $$(DD)bj10e.dev $$(DD)bj200.dev $$(DD)bjc600.dev $$(DD)bjc800.dev \
|
||||
$$(DD)cdeskjet.dev $$(DD)cdjcolor.dev $$(DD)cdjmono.dev $$(DD)cdj500.dev $$(DD)cdj550.dev \
|
||||
$$(DD)declj250.dev $$(DD)djet500c.dev $$(DD)dnj650c.dev $$(DD)epson.dev $$(DD)eps9mid.dev \
|
||||
$$(DD)eps9high.dev $$(DD)epsonc.dev $$(DD)hl7x0.dev $$(DD)ibmpro.dev $$(DD)imagen.dev \
|
||||
$$(DD)iwhi.dev $$(DD)iwlo.dev $$(DD)iwlq.dev $$(DD)jetp3852.dev $$(DD)lbp8.dev \
|
||||
$$(DD)lips3.dev $$(DD)lj250.dev $$(DD)lj4dith.dev $$(DD)lp8000.dev $$(DD)lq850.dev \
|
||||
$$(DD)m8510.dev $$(DD)necp6.dev $$(DD)oki182.dev $$(DD)okiibm.dev $$(DD)paintjet.dev \
|
||||
$$(DD)pj.dev $$(DD)pjetxl.dev $$(DD)pjxl.dev $$(DD)pjxl300.dev $$(DD)r4081.dev \
|
||||
$$(DD)sj48.dev $$(DD)st800.dev $$(DD)stcolor.dev $$(DD)t4693d2.dev $$(DD)t4693d4.dev \
|
||||
$$(DD)t4693d8.dev $$(DD)tek4696.dev $$(DD)uniprint.dev $$(DD)dfaxhigh.dev $$(DD)dfaxlow.dev \
|
||||
$$(DD)cif.dev $$(DD)sgirgb.dev
|
||||
|
||||
# $$(DD)la50.dev $$(DD)la70.dev $$(DD)la75.dev $$(DD)la75plus.dev
|
||||
# $$(DD)ln03.dev $$(DD)xes.dev
|
||||
MAKE_FLAGS= ${BASE_FLAGS} prefix=${PREFIX}
|
||||
CFLAGS+= -DSYS_TYPES_HAS_STDINT_TYPES
|
||||
|
||||
GS_SOURCES= ghostscript-${VERSION}.tar.gz
|
||||
# Note: the following two are real files that have symlinks with
|
||||
# later version numbers pointing to them. To avoid unnecessarily
|
||||
# downloading distfiles, do not change these when upgrading the port
|
||||
# unless the files really change.
|
||||
GS_FONTS_STD= ghostscript-fonts-std-6.0.tar.gz
|
||||
|
||||
ALL_TARGET= all
|
||||
INSTALL_TARGET= install
|
||||
# The pdf_sec.ps non-stub version has been moved to a separate package
|
||||
|
||||
FLAVORS=A4 gtk
|
||||
|
||||
FLAVORS= a4 gtk no_x11
|
||||
FLAVOR?=
|
||||
.if ${FLAVOR:U:MA4}
|
||||
|
||||
.if ${FLAVOR:U:Ma4}
|
||||
CFLAGS+= -DA4
|
||||
.endif
|
||||
|
||||
.if ${FLAVOR:L:Mgtk}
|
||||
.if ${FLAVOR:L:Mgtk} && ${FLAVOR:L:Mno_x11}
|
||||
ERRORS+= "Fatal: Conflicting flavors: ${FLAVOR}"
|
||||
.elif ${FLAVOR:L:Mgtk}
|
||||
LIB_DEPENDS+= gtk.1::x11/gtk+
|
||||
ALL_TARGET+=so
|
||||
INSTALL_TARGET+=soinstall
|
||||
@ -126,6 +114,13 @@ NOT_FOR_ARCHS=${NO_SHARED_ARCHS}
|
||||
end_install=
|
||||
.endif
|
||||
|
||||
.if !${FLAVOR:L:Mno_x11}
|
||||
USE_X11= Yes
|
||||
BASE_FLAGS+= DEVICE_DEVS1='${X11_DEVICE_DEVS1} ${BASE_DEVICE_DEVS1}'
|
||||
.else
|
||||
BASE_FLAGS+= DEVICE_DEVS1='${BASE_DEVICE_DEVS1}'
|
||||
.endif
|
||||
|
||||
NO_REGRESS= Yes
|
||||
|
||||
FAKE_FLAGS=${BASE_FLAGS} prefix=${WRKINST}${PREFIX}
|
||||
|
@ -22,3 +22,8 @@ Thomas Merz has written a Ghostscript manual in PDF format:
|
||||
|
||||
The manual is also available in German language, see:
|
||||
http://www.muc.de/~tm/free/free.html
|
||||
|
||||
Flavors:
|
||||
a4 - Build with support for A4 page size
|
||||
gtk - Build with Gtk+ support
|
||||
no_x11 - Build without X support
|
||||
|
Loading…
Reference in New Issue
Block a user