blob: a4e4b02e60efb44809f718d305d6ae41fc85139b (
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.7 2001/08/22 17:45:57 jlam Exp $
DISTNAME= buildlink-x11-0.8
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 using the buildlink.mk infrastructure
EXTRACT_ONLY= # empty
NO_CHECKSUM= # defined
NO_WRKSUBDIR= # defined
NO_CONFIGURE= # defined
NO_MTREE= # defined
USE_X11BASE= # defined
DEINSTALL_FILE= ${WRKDIR}/DEINSTALL
INSTALL_FILE= ${WRKDIR}/INSTALL
FILES_SUBST= X11BASE=${X11BASE}
FILES_SUBST+= PREFIX=${PREFIX}
FILES_SUBST+= CMP=${CMP:Q}
FILES_SUBST+= CP=${CP:Q}
FILES_SUBST+= ECHO=${ECHO:Q}
FILES_SUBST+= GREP=${GREP:Q}
FILES_SUBST+= LN=${LN:Q}
FILES_SUBST+= MV=${MV:Q}
FILES_SUBST+= RM=${RM:Q}
FILES_SUBST+= RMDIR=${RMDIR:Q}
FILES_SUBST+= TRUE=${TRUE:Q}
FILES_SUBST_SED= ${FILES_SUBST:S/=/@!/:S/$/!g/:S/^/ -e s!@/}
pre-install:
${SED} ${FILES_SUBST_SED} ${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE}
${SED} ${FILES_SUBST_SED} ${PKGDIR}/INSTALL > ${INSTALL_FILE}
do-build:
${SED} ${FILES_SUBST_SED} \
${FILESDIR}/buildlink-xmkmf.in > ${WRKSRC}/buildlink-xmkmf
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/lib/X11/config
${INSTALL_DATA} ${FILESDIR}/buildlinkX11.def ${PREFIX}/lib/X11/config
${INSTALL_DATA} ${FILESDIR}/buildlinkX11.rules ${PREFIX}/lib/X11/config
${INSTALL_SCRIPT} ${WRKSRC}/buildlink-xmkmf \
${PREFIX}/bin/buildlink-xmkmf
post-install:
PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
.include "../../mk/bsd.pkg.mk"
|