d72588da8b
(Thank you, Takahiro.)
48 lines
1.3 KiB
Makefile
48 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.47 2004/01/04 04:51:47 reed Exp $
|
|
|
|
DISTNAME= xpkgwedge-1.9
|
|
WRKSRC= ${WRKDIR}
|
|
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
|
|
|
|
EXTRACT_ONLY= # 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
|
|
|
|
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
|
|
|
|
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"
|