summaryrefslogtreecommitdiff
path: root/print/adobeps-win/Makefile
blob: 33ea43e387c1acf1e18ccf1a3d9412ce2c7812f4 (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
43
44
45
46
# $NetBSD: Makefile,v 1.8 2006/03/14 16:00:41 jlam Exp $

DISTNAME=	winsteng
PKGNAME=	adobeps-win-1.0.6
PKGREVISION=	2
CATEGORIES=	print
MASTER_SITES=	ftp://ftp.adobe.com/pub/adobe/printerdrivers/win/1.x/
EXTRACT_SUFX=	.exe

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://www.adobe.com/products/printerdrivers/windows.html
COMMENT=	Adobe PostScript MS Windows drivers for CUPS/Samba

BUILD_DEPENDS+=	cabextract-[0-9]*:../../archivers/cabextract
DEPENDS+=	cups>=1.1.15:../../print/cups

DIST_SUBDIR=	${PKGNAME_NOREV}
WRKSRC=		${WRKDIR}
EXTRACT_CMD=	${LOCALBASE}/bin/cabextract ${DOWNLOADED_DISTFILE}
NO_CONFIGURE=	yes
NO_BUILD=	yes

NTFILES=	ADOBEPS5.DLL ADOBEPSU.DLL ADOBEPSU.HLP DEFPRTR2.PPD
9XFILES=	ADFONTS.MFM ADOBEPS4.DRV ADOBEPS4.HLP ICONLIB.DLL PSMON.DLL
DRIVERDIR=	${PREFIX}/share/cups/drivers

post-extract:
	cd ${WRKSRC}; for dir in WinNT Windows; do			\
		( cd $$dir; for file in *; do				\
			cap=`${ECHO} $$file | ${TR} '[a-z]' '[A-Z]'`;	\
			if [ $$file != $$cap ]; then			\
				${MV} $$file $$cap;			\
			fi;						\
		  done );						\
	done

do-install:
	${INSTALL_DATA_DIR} ${DRIVERDIR}
	for file in ${NTFILES}; do					\
		${INSTALL_DATA} ${WRKSRC}/WinNT/$$file ${DRIVERDIR};	\
	done
	for file in ${9XFILES}; do					\
		${INSTALL_DATA} ${WRKSRC}/Windows/$$file ${DRIVERDIR};	\
	done

.include "../../mk/bsd.pkg.mk"