summaryrefslogtreecommitdiff
path: root/print/ghostscript7-base/files/Makefile.gprint
blob: f6d304b561332d732de969b0cf1df8139064305d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# $FreeBSD$
# Gimp-Print - very high quality driver for Epson, HPs,...
# http://gimp-print.sourceforge.net/
#
# NOTE:
# Support of stp driver interface has already been discontinued, and using
# ijs driver with ijsgimpprint (part of print/gimp-print port) is highly
# recommended.
#
# For that reason, integration of stp driver is disabled by default.

MASTER_SITES+=		SOURCEFORGE/gimp-print/:gprint
DISTFILES+=		gimp-print-4.2.7.tar.gz:gprint
EXTRADEVMKFILE+=	${FILESDIR}/stp.contrib.mak

post-extract-gprint:
	${TAR} -C ${WRKSRC} -xzf ${DISTDIR}/${DIST_SUBDIR}/gimp-print-4.2.7.tar.gz

post-configure-gprint:
	cd ${WRKSRC}/gimp-print-4.2.7 && \
		${SETENV} ${CONFIGURE_ENV} ${SH} ./configure \
			--without-translated-ppds --with-ghost \
			--without-gimp --without-samples \
			--without-cups --without-ijs \
			--without-user-guide --disable-escputil \
			--disable-nls --disable-shared \
			--prefix=${PREFIX}

pre-build-gprint:
	cd ${WRKSRC}/gimp-print-4.2.7 && \
		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} Makefile
	${LN} -sf ${WRKSRC}/gimp-print-4.2.7/src/ghost/*.[ch] \
		${WRKSRC}/src
	${MKDIR} ${WRKSRC}/gimp-print
	${LN} -sf ${WRKSRC}/gimp-print-4.2.7/include/gimp-print \
		${WRKSRC}/gimp-print/gimp-print
	${LN} -sf ${WRKSRC}/gimp-print-4.2.7/src/main/.libs/libgimpprint.a \
		${WRKSRC}/gimp-print/libgimpprint.a

post-extract: post-extract-gprint
post-configure: post-configure-gprint
pre-build: pre-build-gprint