blob: 4d5f1cb93ca536f2b929aa0116c6827461225d61 (
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
47
48
49
50
51
52
53
|
# $NetBSD: Makefile,v 1.51 2004/06/15 02:27:10 minskim Exp $
DISTNAME= xpkgwedge-1.11
CATEGORIES= pkgtools devel x11
MASTER_SITES= # empty
DISTFILES= # empty
MAINTAINER= jlam@NetBSD.org
HOMEPAGE= ftp://ftp.NetBSD.org/pub/NetBSD/packages/pkgsrc/Packages.txt
COMMENT= Allows X11 pkgs to be built and used outside of $${X11BASE}
PKG_INSTALLATION_TYPES= overwrite pkgviews
WRKSRC= ${WRKDIR}
EXTRACT_ONLY= # empty
USE_LANGUAGES= # empty
NO_CONFIGURE= # defined
NO_BUILDLINK= # defined
NO_CHECKSUM= # defined
.include "../../mk/bsd.prefs.mk"
.if ${LOCALBASE} == ${X11BASE}
PKG_SKIP_REASON+= "xpkgwedge is not needed when X11BASE is LOCALBASE"
.endif
.if exists(${X11BASE}/bin/mkfontscale)
CONFLICTS+= mkfontscale-[0-9]*
.endif
USE_X11= YES
USE_PKGINSTALL= YES
DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/DEINSTALL
INSTALL_EXTRA_TMPL+= ${.CURDIR}/INSTALL
INSTALLATION_DIRS= bin lib/X11/config
# FONT_PROGS are symlinked from ${X11BASE}/bin to ${PREFIX}/bin to allow
# ${PREFIX}/bin/${prog} to always work.
#
FONT_PROGS= bdftopcf fstobdf mkfontdir mkfontscale
FILES_SUBST+= VIEWBASE=${VIEWBASE}
FILES_SUBST+= FONT_PROGS=${FONT_PROGS:Q}
FILES_SUBST+= MAKE=${MAKE_PROGRAM:Q}
do-build:
@${SED} ${FILES_SUBST_SED} ${FILESDIR}/pkgxmkmf.in > ${WRKDIR}/pkgxmkmf
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/lib/X11/config
${INSTALL_DATA} ${FILESDIR}/xpkgwedge.def ${PREFIX}/lib/X11/config
${INSTALL_SCRIPT} ${WRKSRC}/pkgxmkmf ${PREFIX}/bin/pkgxmkmf
.include "../../mk/bsd.pkg.mk"
|