2005-05-08 00:24:04 +02:00
|
|
|
# $NetBSD: Makefile,v 1.55 2005/05/07 22:24:04 wiz Exp $
|
1998-06-26 18:39:23 +02:00
|
|
|
|
2004-07-31 03:42:06 +02:00
|
|
|
DISTNAME= xpkgwedge-1.12
|
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
|
|
|
|
2003-07-18 00:50:55 +02:00
|
|
|
MAINTAINER= jlam@NetBSD.org
|
2005-05-08 00:24:04 +02:00
|
|
|
HOMEPAGE= ftp://ftp.NetBSD.org/pub/NetBSD/packages/pkgsrc/doc/pkgsrc.html
|
2003-10-18 12:12:09 +02:00
|
|
|
COMMENT= Allows X11 pkgs to be built and used outside of $${X11BASE}
|
1998-06-26 18:39:23 +02:00
|
|
|
|
2004-01-04 00:34:19 +01:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
|
2004-01-20 13:18:15 +01:00
|
|
|
WRKSRC= ${WRKDIR}
|
2000-10-23 19:32:06 +02:00
|
|
|
EXTRACT_ONLY= # empty
|
2004-02-02 11:08:43 +01:00
|
|
|
USE_LANGUAGES= # empty
|
2000-10-23 19:32:06 +02:00
|
|
|
NO_CONFIGURE= # defined
|
|
|
|
NO_CHECKSUM= # defined
|
1998-06-26 18:39:23 +02:00
|
|
|
|
2004-01-04 05:51:47 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2004-01-04 00:51:08 +01:00
|
|
|
.if ${LOCALBASE} == ${X11BASE}
|
|
|
|
PKG_SKIP_REASON+= "xpkgwedge is not needed when X11BASE is LOCALBASE"
|
|
|
|
.endif
|
|
|
|
|
2004-06-15 04:27:10 +02:00
|
|
|
.if exists(${X11BASE}/bin/mkfontscale)
|
|
|
|
CONFLICTS+= mkfontscale-[0-9]*
|
|
|
|
.endif
|
|
|
|
|
2003-08-31 00:51:11 +02:00
|
|
|
USE_X11= YES
|
|
|
|
USE_PKGINSTALL= YES
|
|
|
|
DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/DEINSTALL
|
|
|
|
INSTALL_EXTRA_TMPL+= ${.CURDIR}/INSTALL
|
2003-11-23 07:46:54 +01:00
|
|
|
INSTALLATION_DIRS= bin lib/X11/config
|
1998-09-17 17:47:08 +02:00
|
|
|
|
2002-02-26 22:49:05 +01:00
|
|
|
# FONT_PROGS are symlinked from ${X11BASE}/bin to ${PREFIX}/bin to allow
|
|
|
|
# ${PREFIX}/bin/${prog} to always work.
|
|
|
|
#
|
2004-06-15 04:27:10 +02:00
|
|
|
FONT_PROGS= bdftopcf fstobdf mkfontdir mkfontscale
|
2002-02-26 22:49:05 +01:00
|
|
|
|
2004-01-04 00:34:19 +01:00
|
|
|
FILES_SUBST+= VIEWBASE=${VIEWBASE}
|
2003-08-30 13:08:22 +02:00
|
|
|
FILES_SUBST+= FONT_PROGS=${FONT_PROGS:Q}
|
|
|
|
FILES_SUBST+= MAKE=${MAKE_PROGRAM:Q}
|
1998-06-26 18:39:23 +02:00
|
|
|
|
2004-07-31 03:42:06 +02:00
|
|
|
post-extract:
|
|
|
|
@${CP} ${FILESDIR}/xpkgwedge.def ${WRKSRC}
|
|
|
|
|
2000-10-23 19:32:06 +02:00
|
|
|
do-build:
|
2003-08-30 13:08:22 +02:00
|
|
|
@${SED} ${FILES_SUBST_SED} ${FILESDIR}/pkgxmkmf.in > ${WRKDIR}/pkgxmkmf
|
1998-06-26 18:39:23 +02:00
|
|
|
|
2004-07-31 03:42:06 +02:00
|
|
|
.if defined(X11_TYPE) && !empty(X11_TYPE:Mxorg) || \
|
|
|
|
defined(X11_TYPE) && !empty(X11_TYPE:MXFree86)
|
2004-08-27 08:29:06 +02:00
|
|
|
X11TYPEFLAGS?= -L${X11BASE}/lib ${COMPILER_RPATH_FLAG}${X11BASE}/lib
|
2004-07-31 03:42:06 +02:00
|
|
|
SUBST_CLASSES= fix
|
|
|
|
SUBST_STAGE.fix= post-patch
|
|
|
|
SUBST_FILES.fix= xpkgwedge.def
|
|
|
|
SUBST_SED.fix= -e "s|@X11TYPEFLAGS@|${X11TYPEFLAGS}|"
|
|
|
|
.else # X11_TYPE == XFree86 || X11_TYPE == xorg.
|
|
|
|
SUBST_CLASSES= foo
|
|
|
|
SUBST_STAGE.foo= post-patch
|
|
|
|
SUBST_FILES.foo= xpkgwedge.def
|
|
|
|
SUBST_SED.foo= -e "s|\#define ExtraLoadFlags @X11TYPEFLAGS@||"
|
|
|
|
.endif # X11_TYPE == native.
|
|
|
|
|
2000-10-23 19:32:06 +02:00
|
|
|
do-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/X11/config
|
2004-07-31 03:42:06 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/xpkgwedge.def ${PREFIX}/lib/X11/config
|
2000-10-23 19:32:06 +02:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/pkgxmkmf ${PREFIX}/bin/pkgxmkmf
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|