2001-10-14 18:42:58 +02:00
|
|
|
# $NetBSD: Makefile,v 1.30 2001/10/14 16:42:58 tron Exp $
|
1998-06-26 18:39:23 +02:00
|
|
|
|
2001-10-14 18:42:58 +02:00
|
|
|
DISTNAME= xpkgwedge-1.7
|
1998-09-27 20:37:51 +02:00
|
|
|
CATEGORIES= pkgtools devel x11
|
2000-10-23 19:32:06 +02:00
|
|
|
MASTER_SITES= # empty
|
|
|
|
DISTFILES= # empty
|
1998-06-26 18:39:23 +02:00
|
|
|
|
2000-10-23 19:32:06 +02:00
|
|
|
MAINTAINER= jlam@netbsd.org
|
2001-05-31 12:25:21 +02:00
|
|
|
HOMEPAGE= ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc/Packages.txt
|
2001-02-17 18:42:09 +01:00
|
|
|
COMMENT= allows X11 pkgs to be built and used outside of /usr/X11R6
|
1998-06-26 18:39:23 +02:00
|
|
|
|
2000-10-23 19:32:06 +02:00
|
|
|
EXTRACT_ONLY= # empty
|
|
|
|
NO_CONFIGURE= # defined
|
2001-09-09 22:36:07 +02:00
|
|
|
WRKSRC= ${WRKDIR}
|
2000-10-23 19:32:06 +02:00
|
|
|
NO_CHECKSUM= # defined
|
1998-06-26 18:39:23 +02:00
|
|
|
|
2000-10-23 19:32:06 +02:00
|
|
|
DEINSTALL_FILE= ${WRKDIR}/DEINSTALL
|
|
|
|
INSTALL_FILE= ${WRKDIR}/INSTALL
|
1998-09-17 17:47:08 +02:00
|
|
|
|
2001-06-18 07:17:14 +02:00
|
|
|
FILES_SUBST= X11BASE=${X11BASE}
|
|
|
|
FILES_SUBST+= PREFIX=${PREFIX}
|
2001-07-13 09:09:17 +02:00
|
|
|
FILES_SUBST+= CMP=${CMP:Q}
|
2001-06-18 07:17:14 +02:00
|
|
|
FILES_SUBST+= CP=${CP:Q}
|
|
|
|
FILES_SUBST+= GREP=${GREP: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!@/}
|
|
|
|
|
1998-06-26 18:39:23 +02:00
|
|
|
pre-extract:
|
1998-07-31 17:00:41 +02:00
|
|
|
@if [ ! -f ${X11BASE}/include/X11/X.h ]; then \
|
|
|
|
${ECHO} 'xpkgwedge requires $$X11BASE to point to the real X distribution.'; \
|
|
|
|
${ECHO} 'If you are setting this variable in mk.conf, fix or remove the setting'; \
|
1998-06-26 18:39:23 +02:00
|
|
|
${ECHO} 'and then install xpkgwedge.'; \
|
|
|
|
${FALSE}; \
|
|
|
|
fi
|
|
|
|
|
2000-10-23 19:32:06 +02:00
|
|
|
do-build:
|
2001-06-18 07:17:14 +02:00
|
|
|
${SED} ${FILES_SUBST_SED} ${FILESDIR}/pkgxmkmf.in > ${WRKDIR}/pkgxmkmf
|
|
|
|
|
|
|
|
pre-install:
|
|
|
|
${SED} ${FILES_SUBST_SED} ${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE}
|
|
|
|
${SED} ${FILES_SUBST_SED} ${PKGDIR}/INSTALL > ${INSTALL_FILE}
|
1998-06-26 18:39:23 +02:00
|
|
|
|
2000-10-23 19:32:06 +02:00
|
|
|
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
|
2001-10-14 18:42:58 +02:00
|
|
|
for FILE in bdftopcf fstobdf mkfontdir; do \
|
|
|
|
${LN} -fs ${X11BASE}/bin/$$FILE ${PREFIX}/bin; \
|
|
|
|
done
|
2000-10-23 19:32:06 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
|
1998-07-31 17:00:41 +02:00
|
|
|
|
2000-10-23 19:32:06 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|
1998-08-11 21:29:26 +02:00
|
|
|
|
1998-07-31 17:00:41 +02:00
|
|
|
# Clear the build dependencies list so that xpkgwedge will not be recursively
|
|
|
|
# dependent on itself.
|
|
|
|
BUILD_DEPENDS=
|