a16fc84f19
WRKSRC= ${WRKDIR} This is much cleaner, much more indicative of what happens, and removes another of the negative definitions (NO_.* = value).
53 lines
1.5 KiB
Makefile
53 lines
1.5 KiB
Makefile
# $NetBSD: Makefile,v 1.8 2001/09/09 20:36:41 agc 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
|
|
WRKSRC= ${WRKDIR}
|
|
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"
|